docs/guides/configure-mcp-tools.md
This guide adds an MCP server to nanobot so the agent can use external tools through the Model Context Protocol.
~/.nanobot/config.jsonUse MCP when the capability you need already exists as an MCP server, or when you want external tools to be managed outside nanobot core.
python -m pip install nanobot-ai
nanobot onboard --wizard
nanobot agent -m "Hello!"
Install the MCP server runtime separately. Many examples use npx, uvx, or a
remote HTTP endpoint.
For local interactive setup:
nanobot webui and open Apps.@ in the next message and ask for a small test action.For manual or deployment-managed config, add this to ~/.nanobot/config.json:
{
"tools": {
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"],
"enabledTools": ["read_file"]
}
}
}
}
Restart nanobot and ask a question that requires the MCP tool.
enabledTools over exposing every tool by default.toolTimeout for slow MCP operations.tools.ssrfWhitelist CIDRs.nanobot gateway --verbose and inspect tool registration logs.