This page outlines how to configure and use the Model Context Protocol (MCP) in OpenHands, allowing you to extend the agent’s capabilities with custom tools.
MCP
tab.config.toml
file under the [mcp]
section if not using the UI.supergateway
instead of direct stdio connections.
SuperGateway is a popular MCP proxy that converts stdio MCP servers to HTTP/SSE endpoints:
Start the proxy servers separately:
url
(required)
str
api_key
(optional)
str
url
(required)
str
api_key
(optional)
str
name
(required)
str
command
(required)
str
args
(optional)
list of str
[]
env
(optional)
dict of str to str
{}