---
title: "MCP Servers"
description: "Connect Model Context Protocol servers to extend Cody CLI with external tools"
canonical: "https://docs.ainative.studio/docs/cody-cli/mcp"
last-updated: "2026-10-22T17:48:46.689Z"
---

# MCP Servers

Source: https://docs.ainative.studio/docs/cody-cli/mcp

> Connect Model Context Protocol servers to extend Cody CLI with external tools

# MCP Servers

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

## Adding MCP Servers

### Via CLI

```bash
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:

```json
{
  "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

| Type | Description |
|------|-------------|
| `stdio` | Spawn a local process. Most common for npm packages. |
| `http` | Connect to a remote HTTP MCP server. |
| `sse` | Server-sent events transport for streaming. |
| `ainative-proxy` | Org-managed servers configured in the AINative dashboard. |

## Config Scopes

| Scope | Location | Shared? |
|-------|----------|---------|
| `project` | `.mcp.json` in project root | Yes — commit to share with team |
| `user` | `~/.cody/mcp.json` | No — all your projects |
| `local` | `.cody/mcp.json` (gitignored) | No — private to you |

## Managing Servers

```bash
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.

<Callout type="tip" title="ZeroDB MCP">
The `zerodb-memory` MCP server gives Cody persistent semantic memory powered by ZeroDB. Install with:

```bash
cody mcp add zerodb-memory --transport http --url https://api.ainative.studio/v1/mcp/zerodb-mcp/messages
```
</Callout>
