FAQ
MCP Server

MCP Server

Welcome to the hub of viaSocket MCP Server!

Youtube  ViaSocket.svg

What is viaSocket MCP Server?

viaSocket MCP lets you use viaSocket’s 1,000+ app integrations with your AI system. You can connect apps like Slack, Gmail, Google Calendar, HubSpot, and more, all through your AI.

At viaSocket, we believe in empowering our users to create and automate workflows without restrictions. We want you to leverage our platform to its full potential, without being limited by arbitrary thresholds.

Our goal is to provide a smooth and efficient experience, so you can focus on building intelligent and seamless integrations.

Guiding Principles

While we do not impose hard usage limits on the number of requests or the volume of interactions you can have through viaSocket's Model Context Protocol (MCP), we ask that users adhere to the following guidelines to ensure that everyone can benefit from a fair and efficient service:

  1. Responsible Usage: We encourage users to interact with the platform in a manner that does not impact the experience of others. Excessive or malicious usage that disrupts the platform or its services may be subject to review.

  2. Security and Integrity: Ensure that your usage complies with our security standards. We prohibit any activity that would compromise the platform’s integrity, including, but not limited to, unauthorized data scraping, attacks, or any other forms of malicious activities.

  3. Fairness: While we don’t set hard caps, please avoid automating actions that could unintentionally overload the system, such as excessive API calls or spam-like behaviors. Use the platform responsibly to maintain optimal performance for all users.

  4. Compliance: Users must ensure that they are in compliance with all applicable laws and regulations, including but not limited to data privacy laws like GDPR, CCPA, and others. All data processed via the platform must be done with the necessary permissions and rights.

What We Do Not Tolerate

We take violations of our terms seriously. The following activities are strictly prohibited and could lead to suspension of access to viaSocket MCP:

  • Malicious Activity: Including attempts to exploit the platform or compromise its security.

  • Misuse of Data: Engaging in any activity that violates data privacy or intellectual property laws.

  • Spamming or Fraudulent Behavior: Sending unsolicited communications or attempting to mislead others.

  • Service Disruptions: Engaging in any actions that would intentionally degrade the quality or availability of the service for other users.

A Commitment to Growth

We are dedicated to growing alongside our users. We understand that as you scale your business, your needs may evolve. If your usage is expanding beyond typical operations, or if you require additional support or resources, we are here to help.

Please reach out to our support team at

[email protected]

, and we’ll be happy to assist you in optimizing your experience.

Fair Usage Policy
Apr 30, 2025

AI Agent Action Methods: MCP vs viaSocket Embed

There are two primary ways for AI agents to take actions:

  1. MCP (Model Context Protocol)

  2. viaSocket Embed

Both methods offer unique advantages depending on the specific use case of your platform. Below is a detailed comparison of the two approaches:

MCP (Model Context Protocol)

In this model, your platform will operate as an MCP client, and the user is responsible for finding and connecting to an MCP server. This approach is best suited for scenarios where the AI agent is solving a broad, general-purpose problem and the types of actions users might take are unpredictable.

viaSocket Embed

This method is characterized by the tight coupling of both the platform and the AI agent within the same environment, streamlining the process significantly. It’s ideal when your AI agent is designed to address specific industry problems and you can anticipate the actions users may need.

Quick Comparison Guide :

Basis

MCP

viaSocket Embed

Purpose

A standard protocol to connect AI Assistants to external resources.

viaSocket embed simplifies connecting AI assistants to thousands of apps, eliminating the need for custom API integrations.

Authentication Management

Users are required to manage multiple authentications for different apps/tools.

viaSocket Embed handles all authentications, freeing users from manual management.

Error Handling

Users might encounter timeouts or connection errors, and must handle them themselves.

viaSocket Embed ensures seamless operation with no such errors, offering a smooth experience.

Configuration Process

Users must visit third-party MCP platforms to generate a URL, configure actions, and manually paste the configuration into their LLM and AI agent platforms.

Users can directly view a list of apps and actions within their own platform UI, enabling easy configuration without switching between platforms.

MCP Client Setup

Setting up an MCP client requires significant time reading documentation and developing the necessary infrastructure.

No setup required in viaSocket Embed. Users gain access to 1,000+ pre-configured MCP servers,  enabling quick and efficient connections without development work.

Implementation

Complex implementation with substantial effort required for configuration and maintenance.

Easy implementation with minimal effort needed, ensuring a fast setup and operation.

For Users

Users must either find a server or build their own.

Everything is handled within your own app; no additional steps are needed from users.

Action Control

The list of actions is uncontrolled, which can introduce vulnerabilities.

Only verified actions are available, ensuring safer operations with a limited but trusted set of actions.

Protocol Support

Supports only MCP protocol.

viaSocket Embed supports both MCP protocol or RESTful APIs, but using MCP is not recommended as it introduces additional overhead."

Who Should Use

Best for general-purpose AI agents where flexibility is prioritized over simplicity.

Ideal for industry-specific AI agents, where anticipated actions can be pre-configured for an optimized user experience.

Use Cases

Manage memory/state across LLM sessions:

Example: Remember a user’s preferences.

Automate the business processes. Example :

  • Find, add, or update rows in your PostgreSQL database.

  • Send a reminder message to all members in your Circle community about today's call.

  • Create a calendar event and send an email invite with meeting details.
    and more all with your AI Assistant.

User Experience

More cumbersome for users due to the need for manual configurations and error handling.

Significantly better user experience with seamless integration, minimizing setup and manual tasks.

Cost Effective

Users will need to pay separately to MCP server providers.

With viaSocket Embed, you pay a nominal fee on behalf of your users.

Bring Your Own MCP Client

If you choose to bring your own MCP client, you can provide your users with our MCP server link:

https://viasocket.com/mcp

This service is

free with fair usage policies.

Conclusion:

  • MCP is ideal for general-purpose AI agents that require flexibility but come with the trade-off of complexity and user maintenance.

  • viaSocket Embed, on the other hand, provides a streamlined, user-friendly experience with less complexity, making it perfect for industry-specific AI agents where actions can be anticipated and controlled.

MCP vs viaSocket Embed
Apr 30, 2025

Use the TypeScript client to connect to your MCP server.

Installation

To install the required package:

npm install @modelcontextprotocol/sdk

Or with pnpm:

pnpm add @modelcontextprotocol/sdk

Caution: Treat your MCP server URL like a password! It can be used to run tools attached to this server and access your data.

Usage Example

import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";

// Initialize the client with your details
const client = new Client(
  {
    name: "mcp-typescript-client",
    version: "1.0.0",
  },
  {
    capabilities: {},
  }
);

// Replace with your viaSocket MCP server URL
const serverUrl =
  "https://mcp.viasocket.com/****************/sse";
const transport = new SSEClientTransport(new URL(serverUrl));

async function main() {
  // Connect to the server
  console.log("Connecting to viaSocket MCP server...");
  await client.connect(transport);
  console.log("Connected to viaSocket MCP server");

  // List available tools
  console.log("Fetching available tools...");
  const tools = await client.listTools();

  console.log("Available tools:", tools);
  // Tools returned would look like:
  //   No custom tools available yet. Add tools via the MCP UI.

  // Add tools to the server when none are configured
  console.log('No tools configured. Adding a sample tool...');
  const result = await client.callTool({
    name: 'add_tools',
    arguments: {
      instructions: "Add a new tool to the server"
    },
  });
  console.log("Add tools result:\n", result);

  // Close the connection
  await client.transport?.close();
  await client.close();
}

main();

Notes:

  • Server URL: Replace serverUrl with your viaSocket MCP server URL.

  • Tools Fetching: The listTools() method fetches available tools from your MCP server. If no tools are configured, you can add them with the callTool() method.

This setup will connect to the viaSocket MCP server, list available tools, and allow you to add new tools to the server.

TypeScript Client Integration
Jun 6, 2025
Prev