> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/tech/en/mcp.md).

# MaiAgent Build｜MCP and External Services

- [MCP (Model Context Protocol)](https://docs.maiagent.ai/tech/en/mcp/mcp-model-context-protocol.md): What is MCP (Model Context Protocol): an open protocol for connecting AI applications to external tools and data sources. Covers how it works, its core value, and connecting to an MCP Server with MCP
- [MaiAgent MCP: Let External AI Tools Operate the Platform](https://docs.maiagent.ai/tech/en/mcp/maiagent-mcp.md): Use MaiAgent MCP to operate the platform from MCP-compatible AI tools such as Claude and Cursor: service endpoint and available tools, API Key and OAuth connections, verification, and troubleshooting
- [Self-Hosted MCP Server Integration Specifications](https://docs.maiagent.ai/tech/en/mcp/self-hosted-mcp-server.md): Wrap your own system as an MCP Server for MaiAgent Agents to call：supported transports and URL requirements, authentication (static headers, contact credentials, OAuth dynamic registration), allowed t
- [Remote MCP Service Overview](https://docs.maiagent.ai/tech/en/mcp/remote-mcp.md): 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
- [Composio Integration](https://docs.maiagent.ai/tech/en/mcp/composio.md): Composio integration: obtain an MCP Server URL from the Composio MCP directory, connect third-party accounts, and create MCP tools in MaiAgent for Agents to use.
- [Zapier Integration](https://docs.maiagent.ai/tech/en/mcp/zapier.md): Zapier MCP integration: create an MCP Server in the Zapier MCP console, select the Actions available to AI, copy the endpoint, and create an MCP tool in MaiAgent.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.maiagent.ai/tech/en/mcp.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
