Allows AI agents to query and explore over 100 different databases using existing DBCode connections.
Aussi connu sous dbcodeio/public, @dbcode/mcp
- Étoiles
- 366
- Outils
- —
- Téléchargements, 30 jours
- 359
- Dernière version
- 1.0.1
- Dernier commit
- 10 nov. 2026
- Licence
- —
Qu'est-ce que DBCode MCP ?
DBCode est un serveur MCP. Allows AI agents to query and explore over 100 different databases using existing DBCode connections.
Résumé généré à partir du README du projet
À propos du MCP server DBCode
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.
Ce que vous pouvez faire avec
- 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.
Extrait du README du projet. Chaque cas d'utilisation est vérifié par rapport à une citation du document.
Comment installer DBCode MCP
Formats vérifiés le 10 nov. 2026Installer DBCode MCP dans Claude Code
$ claude mcp add dbcode -- npx -y @dbcode/mcpInstaller DBCode MCP dans Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"dbcode": {
"command": "npx",
"args": [
"-y",
"@dbcode/mcp"
]
}
}
}Installer DBCode MCP dans VS Code
.vscode/mcp.json
{
"servers": {
"dbcode": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dbcode/mcp"
]
}
}
}Installer DBCode MCP dans Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"dbcode": {
"command": "npx",
"args": [
"-y",
"@dbcode/mcp"
]
}
}
}Installer DBCode MCP dans Codex
~/.codex/config.toml
[mcp_servers.dbcode] command = "npx" args = ["-y", "@dbcode/mcp"]
Installer DBCode MCP dans Gemini CLI
~/.gemini/settings.json
{
"mcpServers": {
"dbcode": {
"command": "npx",
"args": [
"-y",
"@dbcode/mcp"
]
}
}
}Vérifications automatisées
Exécuté le 13 nov. 2026Rapport complet →A passé nos vérifications automatisées. Il ne s'agit pas d'un audit de sécurité : lisez le code et donnez au serveur l'accès le plus restreint dont il a besoin. Fonctionnement des vérifications
- Dépôt source lié et accessibleRéussi
- Licence open source (OSI)No licenseFaille
- Commit ou version publiée au cours de l'année écouléeRéussi
- Nom du package non proche d'un package populaireRéussi
- L'endpoint distant utilise HTTPSNon vérifié
- Les outils destructifs sont étiquetésNon vérifié
- Aucune instruction cachée destinée au modèleRéussi
- Aucun avis critique dans le paquet ni ses dépendancesRéussi
README
Voir sur 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.
Questions sur DBCode MCP
Comment ajouter DBCode MCP à Claude Code ?
Exécutez claude mcp add dbcode -- npx -y @dbcode/mcp dans votre terminal. Ajoutez --scope user pour le rendre disponible dans tous les projets.
Comment ajouter DBCode MCP à Cursor ?
Ouvrez ~/.cursor/mcp.json et ajoutez le serveur sous mcpServers, avec la configuration Cursor indiquée dans la section d'installation ci-dessus.
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.