Model Context Protocol (MCP) is an open standard that allows OpenHands to communicate with external tool servers, extending the agent’s capabilities with custom tools, specialized data processing, external API access, and more. MCP is based on the open standard defined at modelcontextprotocol.io.Documentation Index
Fetch the complete documentation index at: https://allhandsai-docs-agent-canvas-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
How MCP Works
When OpenHands starts, it:- Reads the MCP configuration
- Connects to configured servers (SSE, SHTTP, or stdio)
- Registers tools provided by these servers with the agent
- Routes tool calls to appropriate MCP servers during execution
MCP Support Matrix
| Platform | Support Level | Configuration Method | Documentation |
|---|---|---|---|
| CLI | ✅ Full Support | ~/.openhands/mcp.json file | CLI MCP Servers |
| SDK | ✅ Full Support | Programmatic configuration | SDK MCP Guide |
| Agent Canvas | ✅ Full Support | Customize > MCP Servers | Customize and Settings |
| OpenHands Cloud | ✅ Full Support | Cloud UI settings | Cloud GUI |
Platform-Specific Differences
- CLI
- SDK
- Agent Canvas
- OpenHands Cloud
- Configuration via
~/.openhands/mcp.jsonfile - Real-time status monitoring with
/mcpcommand - Supports all MCP transport protocols (SSE, SHTTP, stdio)
- Manual configuration required
Getting Started with MCP
- For detailed configuration: See Customize and Settings
- For CLI usage: See CLI MCP Servers
- For SDK integration: See SDK MCP Guide
- For architecture details: See MCP Architecture

