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-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 CLI usage: See CLI MCP Servers
- For SDK integration: See SDK MCP Guide
- For architecture details: See MCP Architecture

