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-feat-plugin-via-agent-context-example.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 |
| Local GUI | ✅ Full Support | Settings UI + config files | Local GUI |
| OpenHands Cloud | ✅ Full Support | Cloud UI settings | Cloud GUI |
Platform-Specific Differences
- CLI
- SDK
- Local GUI
- 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 MCP Settings
- For SDK integration: See SDK MCP Guide
- For architecture details: See MCP Architecture

