Remote MCP Service Overview
The concept of Remote MCP services and how MaiAgent connects to hosted services such as Composio and Zapier and self-hosted MCP servers: transport, authentication, tool scope, timeouts, records, and u
This page assumes you understand the basics of MCP. See MCP (Model Context Protocol).
1. Why Choose a Remote MCP Service?
MCP servers generally run in one of two ways: the client starts them locally (stdio), or they are deployed as network services that clients connect to over HTTP. The latter is called Remote MCP. Hosted services such as Composio and Zapier deploy servers for you and manage authorization for SaaS applications. You only need a server URL to get started.
Deployment and operations
You deploy, monitor, and update it
The service provider handles them
Third-party authorization
You implement OAuth or manage keys
Usually managed by the provider; the server URL or headers represent your authorization
Available tools
Developed for your system's needs
Determined by the applications and actions the provider supports
Data flow
Data passes only through your server
Tool arguments and results pass through the provider
Common use cases:
Office automation: Read or send Gmail messages, manage Google Calendar events, search Google Drive documents, and update Google Sheets.
Customer service and tickets: Look up customer data and create or update tickets in systems such as Zendesk and Salesforce.
Project and development collaboration: Create issues and update task statuses in Jira, Asana, Linear, and GitHub.
2. How MaiAgent Connects to Remote MCP
MaiAgent is an MCP Client: the Agent only decides which tool to call and which arguments to use; the platform makes the actual connection. Hosted services and your self-hosted servers use the same connection mechanism.
Transport
Supports Streamable HTTP and SSE, determined by the URL: SSE is used when the path ends with /sse, contains /sse/, or the query string includes transport=sse; otherwise Streamable HTTP is used. Neither stdio nor WebSocket is supported.
URL
Must be an https:// address accessible from the internet. Internal network addresses cannot be saved. Contact MaiAgent if you need them for an on-premises deployment.
Authentication
Three options: authorization embedded in the URL (as with server URLs from Composio and Zapier); a fixed API Key in "Headers (JSON)"; or an OAuth connector, through which the platform handles authorization and automatically refreshes tokens. If each user needs to use their own token, you can also configure contact MCP credentials.
When the tool list is retrieved
Whenever the Agent's tools are assembled, the platform calls tools/list on the server. Actions removed on the server are therefore no longer provided to the model on the next reply.
Tool scope
Each MCP tool (one server URL) has its own "Allowed tools (JSON array)" list. Once bound to this MCP tool, an Agent can only call tools on that list. New actions on the server are not enabled automatically. Return to the tool settings, click "Fetch again", and enable them.
Timeouts and retries
The MCP session read timeout is 30 seconds. For temporary errors such as connection interruptions, only read tools (safe to resend) are retried automatically, up to 3 times.
Records and billing
Each call is written to a tool execution record (tool, actual MCP tool name called, input arguments, output or error, and duration). Successful calls deduct Credits according to whether the tool reads or writes. Calls are not sent if Credits are insufficient.
For the complete specifications on connections, authentication, retries, and error handling, see Self-Hosted MCP Server Integration Specifications.
Two Entry Points
Agent MCP tools: Create an MCP tool in the admin interface, enter the server URL and authentication method, and bind it to an Agent. This is suitable for customer-facing support Agents or Agents for specific purposes.
MaiGPT connectors: After an administrator enables a connector, members authorize it themselves and toggle its use in MaiGPT conversations.
3. Limitations and Notes
The server URL is a credential: Server URLs generated by services such as Composio and Zapier contain authorization. Anyone who obtains the URL can call tools using your account. Enter it only in MaiAgent's tool settings; do not put it in role instructions, conversations, or public documentation. If leaked, regenerate it with the provider.
All users share the same account: When using URL or fixed-header authentication, all users who chat through this Agent perform operations using the account originally authorized with the provider. For services tied to personal accounts (personal mailboxes or calendars), use OAuth connectors with individual contact authorization, or use only internal Agents.
Create separate MCP tools when different Agents need different permissions: The allowed tools list is configured on the MCP tool. Agents bound to the same MCP tool share the same list.
Data passes through third parties: Hosted services generally handle tool arguments and results. Evaluate this according to your data classification and regulatory requirements.
Enable reads before writes: Only enable actions the Agent needs. Write actions are not retried automatically, but the model may still call them repeatedly. Check the service's behavior for actions such as creating, sending, and deleting.
Local MCP servers need a remote version: MCP servers started locally with commands such as
npxornodecannot be used directly. Use the provider's remote version or deploy one yourself as an HTTP service.
4. See the User Manual for Instructions
Create an MCP Tool: URL, headers, OAuth connectors, allowed tools
For provider setup steps, see Composio Integration and Zapier Integration.
Reference Links
Last updated
Was this helpful?