Configuration Format
MCP servers are configured undertools.mcpServers:
Transport Modes
Nanobot supports two MCP transport modes:Stdio (Local Process)
Launch a local MCP server as a subprocess.Transport type. Auto-detected if
command is present.Command to run (e.g.
"npx", "uvx", "python").Command arguments.
Environment variables to pass to the subprocess.
Timeout in seconds for each tool call.
HTTP/SSE (Remote Server)
Connect to a remote MCP server over HTTP.Transport type:
"sse"— Server-Sent Events (URLs ending with/sse)"streamableHttp"— Streamable HTTP (default for other URLs)
url is present.Server endpoint URL.
Custom HTTP headers (e.g. authentication).
Timeout in seconds for each tool call.
Tool Naming
MCP tools are automatically prefixed to avoid naming conflicts:- Server:
filesystem - Tool:
read_file - Registered as:
mcp_filesystem_read_file
Configuration Examples
Official MCP Servers
Filesystem
Filesystem
Access local files and directories.Provides:
read_file, write_file, list_directory, etc.GitHub
GitHub
Interact with GitHub repositories.Provides: Repository operations, issue management, PR creation, etc.
Google Drive
Google Drive
Access Google Drive files.Note: Requires OAuth authentication flow on first run.
PostgreSQL
PostgreSQL
Query PostgreSQL databases.
Brave Search
Brave Search
Web search via Brave Search API.
Multiple Servers
Run multiple MCP servers simultaneously:Tool Timeouts
By default, tool calls timeout after 30 seconds. Override for slow operations:Built-in Tools Configuration
In addition to MCP servers, nanobot has built-in tools with their own configuration:Web Search
Brave Search API key for web search functionality.
Maximum number of search results to return.
HTTP/SOCKS5 proxy for web requests (e.g.
"http://127.0.0.1:7890").Shell Execution
Timeout in seconds for shell commands.
Extra directories to append to
PATH (e.g. "/usr/sbin:/opt/bin").Workspace Restriction
When
true, restricts all agent tools (shell, file read/write/edit, list) to the workspace directory. Prevents path traversal and out-of-scope access.Complete Example
Full configuration with built-in tools and MCP servers:Compatibility
The MCP configuration format is compatible with:- Claude Desktop
- Cursor IDE
- Any MCP-compatible client
Troubleshooting
Tools not appearing
Tools not appearing
Check the gateway logs for connection errors:Common issues:
- Missing
commandorurl - Server process fails to start
- Network issues for remote servers
- Missing environment variables
Tool calls timing out
Tool calls timing out
Increase
toolTimeout for slow operations:Authentication errors
Authentication errors
Verify authentication credentials:
- Stdio: Check
envvariables are set correctly - HTTP: Verify
headerscontain valid tokens
Next Steps
Security
Configure access controls and sandboxing
MCP Documentation
Learn more about the Model Context Protocol