Allows AI agents to query and explore over 100 different databases using existing DBCode connections.
Also known as dbcodeio/public, @dbcode/mcp
- Stars
- 366
- Tools
- —
- Downloads, 30 days
- 359
- Latest version
- 1.0.1
- Last commit
- Nov 10, 2026
- License
- —
What is DBCode MCP?
DBCode is an MCP server. Allows AI agents to query and explore over 100 different databases using existing DBCode connections.
Summary generated from the project's README
About DBCode MCP server
Querying and exploring your existing database connections through an AI agent is what DBCode enables. It allows developers to interact with over 100 different database types, such as PostgreSQL, MySQL, SQL Server, Oracle, SQLite, MongoDB, ClickHouse, and Snowflake, using the connections already configured in your DBCode extension.
To use this server, you must have the DBCode extension installed in editors like VS Code, Cursor, Windsurf, Antigravity, or Kiro, along with Node.js 22.14 or newer. The server runs locally and can either work through an open editor or read your saved connections directly if no editor is active. You can specify a particular application like Cursor or VSCodium using the --app argument if you use DBCode across multiple editors. This setup works with clients including Claude Desktop, Gemini CLI, GitHub Copilot CLI, and Codex.
What you can do with it
- 1Querying diverse database typesAsk an AI agent to run queries against specific databases like MongoDB or Snowflake using your existing setup.
- 2Managing multiple editor connectionsDirect an AI agent to use the specific database connections associated with a particular IDE.
- 3Exploring databases without an active editorLet an AI agent access your saved database credentials even when you do not have a code editor open.
Written from the project's README. Every use case is checked against a quote from it.
How to install DBCode MCP
Formats verified 10 Nov 2026Install DBCode MCP in Claude Code
$ claude mcp add dbcode -- npx -y @dbcode/mcpInstall DBCode MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"dbcode": {
"command": "npx",
"args": [
"-y",
"@dbcode/mcp"
]
}
}
}Install DBCode MCP in VS Code
.vscode/mcp.json
{
"servers": {
"dbcode": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dbcode/mcp"
]
}
}
}Install DBCode MCP in Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"dbcode": {
"command": "npx",
"args": [
"-y",
"@dbcode/mcp"
]
}
}
}Install DBCode MCP in Codex
~/.codex/config.toml
[mcp_servers.dbcode] command = "npx" args = ["-y", "@dbcode/mcp"]
Install DBCode MCP in Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"dbcode": {
"command": "npx",
"args": [
"-y",
"@dbcode/mcp"
]
}
}
}Automated checks
Ran Nov 13, 2026Full report →Passed our automated checks. That is not a security audit: read the code and give the server the narrowest access it needs. How checks work
- Source repository linked and reachablePass
- Open source license (OSI)No licenseFinding
- Commit or release in the last yearPass
- Package name not close to a popular packagePass
- Remote endpoint uses HTTPSNot checked
- Destructive tools are labelledNot checked
- No hidden instructions to the modelPass
- No critical advisory in the package or its dependenciesPass
README
View on GitHubDBCode MCP server
Let your AI agent query your databases through DBCode, using the connections you already have in DBCode.
DBCode works with 100+ databases, including PostgreSQL, MySQL, SQL Server, Oracle, SQLite, MongoDB, ClickHouse and Snowflake.
Requirements
- The DBCode extension, installed in VS Code, Cursor, Windsurf, Antigravity or Kiro. Install DBCode.
- Node.js 22.14 or newer.
Setup
Claude Code
claude mcp add dbcode -- npx -y @dbcode/mcp
Codex
codex mcp add dbcode -- npx -y @dbcode/mcp
GitHub Copilot CLI
Add this to ~/.copilot/mcp-config.json:
{
"mcpServers": {
"dbcode": {
"type": "local",
"command": "npx",
"args": ["-y", "@dbcode/mcp"],
"tools": ["*"]
}
}
}
Gemini CLI, Claude Desktop, Cursor, Windsurf and other clients
Add this to the client's MCP configuration (for Gemini CLI, ~/.gemini/settings.json; for Claude Desktop, claude_desktop_config.json):
{
"mcpServers": {
"dbcode": {
"command": "npx",
"args": ["-y", "@dbcode/mcp"]
}
}
}
Cursor, VS Code, Windsurf, Antigravity and Kiro can also connect DBCode to their built-in agent without this package. See DBCode's MCP docs.
How it works
The package finds the newest DBCode installed on your machine and starts its MCP server. When an editor with DBCode is open, the agent works through it. With no editor open, the server reads your saved DBCode connections directly.
If you use DBCode in more than one editor, choose which editor's connections the agent sees with --app:
"args": ["-y", "@dbcode/mcp", "--app", "Cursor"]
Values (not case-sensitive): Code, Code - Insiders, Cursor, Windsurf, VSCodium, Antigravity IDE, Antigravity, Kiro.
DBCode MCP questions
How do I add DBCode MCP to Claude Code?
Run claude mcp add dbcode -- npx -y @dbcode/mcp in your terminal. Add --scope user to make it available in every project.
How do I add DBCode MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
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.