MCP Server
M0 docs include a built-in Model Context Protocol (MCP) server that lets AI assistants query, search, and navigate the documentation programmatically.
What is MCP?
MCP is an open protocol that standardizes how AI applications connect to external data sources and tools. By connecting your AI assistant to the M0 MCP server, it gains direct access to all M0 documentation — no copy-pasting required.
Available Tools
The M0 MCP server exposes the following tools:
Documentation Tools
| Tool | Description |
|---|---|
list-pages | Lists all documentation pages with title, path, and description |
get-page | Retrieves the full markdown content of a specific page by path |
search-docs | Full-text search across all documentation pages |
get-section | Get all pages in a specific section (get-started, build, issuers, protocol, api-reference, resources, agents) |
Reference Tools
| Tool | Description |
|---|---|
get-glossary | Look up M0 protocol terminology definitions |
get-addresses | Look up contract addresses across all supported chains |
Configuration
Add the M0 MCP server to your AI assistant:
claude mcp add m0-docs --transport sse https://docs.m0.org/mcp/sse
Add to your claude_desktop_config.json:
{
"mcpServers": {
"m0-docs": {
"url": "https://docs.m0.org/mcp/sse"
}
}
}
Add to your .cursor/mcp.json:
{
"mcpServers": {
"m0-docs": {
"url": "https://docs.m0.org/mcp/sse"
}
}
}
Add to your .vscode/mcp.json:
{
"servers": {
"m0-docs": {
"url": "https://docs.m0.org/mcp/sse"
}
}
}
Add to your ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"m0-docs": {
"serverUrl": "https://docs.m0.org/mcp/sse"
}
}
}
Usage Examples
Once connected, you can ask your AI assistant questions like:
- "Search M0 docs for how minting works"
- "Look up the M token address on Base"
- "What does TTG mean in M0?"
- "Show me all protocol documentation pages"
- "Get the full content of the getting started guide"
The assistant will use the appropriate MCP tools to fetch accurate, up-to-date information directly from the docs.