docs/guides/mcp-setup.md
Agent Zero can connect to external MCP (Model Context Protocol) servers to extend its capabilities with additional tools. This guide shows you how to add MCP servers through the Settings UI.
MCP servers are external tools that Agent Zero can use to perform specialized tasks. Popular examples include:
[!NOTE] This guide covers connecting to external MCP servers as a client. For exposing Agent Zero as an MCP server, see the advanced documentation.
In the JSON editor, add your MCP server configuration. Here's a simple example:
{
"mcpServers": {
"chrome-devtools": {
"command": "npx",
"args": ["-y", "chrome-devtools-mcp@latest"]
}
}
}
chrome_devtools)[!TIP] The first time you run an
npx-based MCP server, it may take a few moments to download and initialize.
{
"mcpServers": {
"sqlite": {
"command": "uvx",
"args": ["mcp-server-sqlite", "--db-path", "/root/db.sqlite"]
}
}
}
{
"mcpServers": {
"external-api": {
"url": "https://api.example.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
If Agent Zero runs in Docker and your MCP server runs on the host:
host.docker.internal in URLsOnce connected, MCP tools become available to Agent Zero automatically. Tools are named with the server prefix, for example:
chrome-devtoolschrome_devtools.navigate_to_urlSimply ask Agent Zero to perform tasks, and it will use the appropriate MCP tools when needed.
For detailed configuration options, server types, environment variables, and troubleshooting, see the Advanced MCP Configuration Guide.
Community-tested and reliable MCP servers:
[!TIP] For browser automation tasks, the built-in
_browserplugin and directbrowsertool cover the default workflow. MCP-based browser tools are still useful when you need a different browser stack, remote browser control, or an alternative to the built-in Playwright Chromium (preinstalled in Docker; on demand viaensure_playwright_binary()in local dev).