Skip to main content

MCP Servers

Model Context Protocol (MCP) servers extend Cody with external tools — databases, APIs, file systems, and more.

Adding MCP Servers

Via CLI

cody mcp add <name> --transport http --url https://your-mcp-server.com

Via config file

Add to .cody/mcp.json in your project or ~/.cody/mcp.json globally:

{
"mcpServers": {
"my-server": {
"type": "http",
"url": "https://your-mcp-server.com/mcp"
},
"local-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@my/mcp-server"]
}
}
}

Transport Types

TypeDescription
stdioSpawn a local process. Most common for npm packages.
httpConnect to a remote HTTP MCP server.
sseServer-sent events transport for streaming.
ainative-proxyOrg-managed servers configured in the AINative dashboard.

Config Scopes

ScopeLocationShared?
project.mcp.json in project rootYes — commit to share with team
user~/.cody/mcp.jsonNo — all your projects
local.cody/mcp.json (gitignored)No — private to you

Managing Servers

cody mcp list           # list configured servers
cody mcp remove <name> # remove a server
/mcp # open MCP panel in interactive mode

Official Registry

Browse verified MCP servers via the in-app registry: open /mcp → Browse in interactive mode.

💡ZeroDB MCP

The zerodb-memory MCP server gives Cody persistent semantic memory powered by ZeroDB. Install with:

cody mcp add zerodb-memory --transport http --url https://api.ainative.studio/v1/mcp/zerodb-mcp/messages