# DBCode MCP server

> Allows AI agents to query and explore over 100 different databases using existing DBCode connections.

- Repository: https://github.com/dbcodeio/public
- Page: https://hostedmcp.org/servers/dbcodeio/dbcode
- Official: yes
- Transport: stdio
- Stars: 366
- Latest version: 1.0.1

## Install

### Claude Code

```sh
claude mcp add dbcode -- npx -y @dbcode/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "dbcode": {
      "command": "npx",
      "args": [
        "-y",
        "@dbcode/mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "dbcode": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@dbcode/mcp"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "dbcode": {
      "command": "npx",
      "args": [
        "-y",
        "@dbcode/mcp"
      ]
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.dbcode]
command = "npx"
args = ["-y", "@dbcode/mcp"]
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "dbcode": {
      "command": "npx",
      "args": [
        "-y",
        "@dbcode/mcp"
      ]
    }
  }
}
```

## FAQ

### Which databases are supported by DBCode?

It supports over 100 databases including PostgreSQL, MySQL, SQL Server, Oracle, SQLite, MongoDB, ClickHouse, and Snowflake.

### What are the system requirements for the DBCode MCP server?

You need the DBCode extension installed in an editor like VS Code or Cursor, and Node.js version 22.14 or newer.

### How can I specify which editor's connections the agent should use?

You can use the --app flag followed by the editor name, such as Cursor or Code, to choose which editor's connections are visible.
