DB MCP Server
Overview
Description from the maker (original English)
Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.
What you can do with it
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
- Connection: Runs on your computer
- Transport: stdio
- Category: Databases & datasets
- You need to fill in: DB_TYPE, DB_DATABASE, DB_PASSWORD, DB_URL, SSH_PASSWORD
Install
Pick the AI app you use, then copy the settings.
Passed 1/2 checks · Runs on your computer
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
You need a DB MCP Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Install Python (uv)
One time only; it works for every server that needs Python (uv)
Sign up and create a DB MCP Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
How to get a key is in the maker’s README below
Open the Claude desktop app’s settings file
SettingsDeveloperEdit Config
Paste these settings and save the file
{ "mcpServers": { "db": { "command": "uvx", "args": [ "db-mcp-server" ], "env": { "DB_TYPE": "your-value", "DB_DATABASE": "your-value", "DB_MODE": "your-value", "DB_HOST": "your-value", "DB_PORT": "your-value", "DB_USER": "your-value", "DB_PASSWORD": "your-value", "DB_URL": "your-value", "SSH_HOST": "your-value", "SSH_PORT": "your-value", "SSH_USER": "your-value", "SSH_KEY": "your-value", "SSH_PASSWORD": "your-value" } } } }Paste the key only into the app’s field, never into a chat or to anyone
Quit Claude and open it again
Try it
Use DB MCP Server and tell me what you can do for me, then show me one thing✓ If Claude says it is using DB MCP Server or shows a DB MCP Server tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect DB MCP Server yet
DB MCP Server runs on your computer, but ChatGPT can only connect servers that run on the web
What you can do instead
A · Use an app that can connect DB MCP Server
- You need a DB MCP Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
- You need a DB MCP Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time)
- You need a DB MCP Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time)
- You need a DB MCP Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time)
B · Others in Databases & datasets that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
- Supabase✓ ChatGPT
- Appwrite MCP✓ ChatGPT
- Pg Aiguide✓ ChatGPT
Works with Claude Code, with some setup first
You need a DB MCP Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time)
Install Python (uv)
One time only; it works for every server that needs Python (uv)
Sign up and create a DB MCP Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
How to get a key is in the maker’s README below
Open Terminal
Mac: press Command+Space and type Terminal · Windows: open PowerShell
Paste this command and press Enter
claude mcp add db --env DB_TYPE=your-value --env DB_DATABASE=your-value --env DB_MODE=your-value --env DB_HOST=your-value --env DB_PORT=your-value --env DB_USER=your-value --env DB_PASSWORD=your-value --env DB_URL=your-value --env SSH_HOST=your-value --env SSH_PORT=your-value --env SSH_USER=your-value --env SSH_KEY=your-value --env SSH_PASSWORD=your-value -- uvx db-mcp-serverReplace “your-value” with your key before pressing Enter
Paste the key only into the app’s field, never into a chat or to anyone
Type /mcp in Claude Code
You should see DB MCP Server listed as connected
Try it
Use DB MCP Server and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using DB MCP Server or shows a DB MCP Server tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
You need a DB MCP Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time)
Install Python (uv)
One time only; it works for every server that needs Python (uv)
Sign up and create a DB MCP Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
How to get a key is in the maker’s README below
Fill in your key
In the DB MCP Server settings, DB_TYPE, DB_DATABASE, DB_MODE, DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_URL, SSH_HOST, SSH_PORT, SSH_USER, SSH_KEY, SSH_PASSWORD is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in Cursor in Agent mode
Try it
Use DB MCP Server and tell me what you can do for me, then show me one thing✓ If Cursor says it is using DB MCP Server or shows a DB MCP Server tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
You need a DB MCP Server key (sign up on the maker’s site, may cost money) · Install Python (uv) on your computer first (one time)
Install Python (uv)
One time only; it works for every server that needs Python (uv)
Sign up and create a DB MCP Server key
Open the maker’s site, sign up and create an API key for the next step. It may cost money.
How to get a key is in the maker’s README below
Fill in your key
In the DB MCP Server settings, DB_TYPE, DB_DATABASE, DB_MODE, DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_URL, SSH_HOST, SSH_PORT, SSH_USER, SSH_KEY, SSH_PASSWORD is empty; add your key and save
Paste the key only into the app’s field, never into a chat or to anyone
Open the AI chat in VS Code in Agent mode
Try it
Use DB MCP Server and tell me what you can do for me, then show me one thing✓ If VS Code says it is using DB MCP Server or shows a DB MCP Server tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
For developers: Terminal commands and JSON settings
Installed on your computer
Claude Code
claude mcp add db --env DB_TYPE=your-value --env DB_DATABASE=your-value --env DB_MODE=your-value --env DB_HOST=your-value --env DB_PORT=your-value --env DB_USER=your-value --env DB_PASSWORD=your-value --env DB_URL=your-value --env SSH_HOST=your-value --env SSH_PORT=your-value --env SSH_USER=your-value --env SSH_KEY=your-value --env SSH_PASSWORD=your-value -- uvx db-mcp-serverClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"db": {
"command": "uvx",
"args": [
"db-mcp-server"
],
"env": {
"DB_TYPE": "your-value",
"DB_DATABASE": "your-value",
"DB_MODE": "your-value",
"DB_HOST": "your-value",
"DB_PORT": "your-value",
"DB_USER": "your-value",
"DB_PASSWORD": "your-value",
"DB_URL": "your-value",
"SSH_HOST": "your-value",
"SSH_PORT": "your-value",
"SSH_USER": "your-value",
"SSH_KEY": "your-value",
"SSH_PASSWORD": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"db": {
"command": "uvx",
"args": [
"db-mcp-server"
],
"env": {
"DB_TYPE": "your-value",
"DB_DATABASE": "your-value",
"DB_MODE": "your-value",
"DB_HOST": "your-value",
"DB_PORT": "your-value",
"DB_USER": "your-value",
"DB_PASSWORD": "your-value",
"DB_URL": "your-value",
"SSH_HOST": "your-value",
"SSH_PORT": "your-value",
"SSH_USER": "your-value",
"SSH_KEY": "your-value",
"SSH_PASSWORD": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"db": {
"type": "stdio",
"command": "uvx",
"args": [
"db-mcp-server"
],
"env": {
"DB_TYPE": "your-value",
"DB_DATABASE": "your-value",
"DB_MODE": "your-value",
"DB_HOST": "your-value",
"DB_PORT": "your-value",
"DB_USER": "your-value",
"DB_PASSWORD": "your-value",
"DB_URL": "your-value",
"SSH_HOST": "your-value",
"SSH_PORT": "your-value",
"SSH_USER": "your-value",
"SSH_KEY": "your-value",
"SSH_PASSWORD": "your-value"
}
}
}
}Values you fill in
DB_TYPErequired envDatabase typeDB_DATABASErequired envDatabase nameDB_MODEenvAccess modeDB_HOSTenvDatabase host (MySQL/PostgreSQL)DB_PORTenvDatabase port (MySQL: 3306, PostgreSQL: 5432)DB_USERenvDatabase user (MySQL default: root, PostgreSQL default: postgres)DB_PASSWORDsecret envDatabase password (MySQL/PostgreSQL, optional)DB_URLsecret envMongoDB connection URL (required for MongoDB, e.g. mongodb://...)SSH_HOSTenvSSH bastion host for tunneling (MySQL/PostgreSQL only)SSH_PORTenvSSH portSSH_USERenvSSH username (default: current OS user)SSH_KEYenvPath to SSH private key (e.g. ~/.ssh/id_rsa)SSH_PASSWORDsecret envSSH password (if no key provided)
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
At a glance
Which apps can use it
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Related guides
What it can do
Runs on your computer; the tool list appears in your AI app after you install it.
Basic checksi
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 11, 2026
- ✓ Pass
Maker matches the repo
The registry name was verified with the GitHub account stucchi, which owns the repo
- ! Caution
Still maintained
Code last changed 8 months ago, more than 6 months ago
- … Not checked yet
Has a licence
We have not read this repo from GitHub yet
- – Not applicable
Endpoint responds
This one runs on your computer; there is no internet endpoint
- – Not applicable
Sign-in with OAuth
Runs on your computer and uses local settings instead
- … Not checked yet
No hidden instructions in tool descriptions
Runs on your computer; we can only read tool lists from internet endpoints
Discussion
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
User reviews
No reviews yet
Compared with others in Databases & datasetsi
- More stars than 79% of the other 1163 servers in this category
- Published to the registry more recently than 7% of the other 1163 servers in this category
- Basic checks equal to or better than 22% of the other 1163 servers in this category
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
Common questions
Is DB MCP Server safe?
It passed 1 of 2 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
What keys or codes does it need?
You need to fill in: DB_TYPE, DB_DATABASE, DB_PASSWORD, DB_URL, SSH_PASSWORD
Does it run on my computer or in the cloud?
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
Is it still maintained?
The GitHub repo last changed 8 months ago, and the latest version (1.2.1) reached the registry 8 months ago.
Which apps can use it?
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
What can I use instead?
In the same category: Dbx, MCP Toolbox for Databases, MCP Toolbox for Databases
Alternatives
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
MCP Toolbox for Databases
MCP Toolbox for Databases enables your agent to connect to your database.
MCP Toolbox for Databases
MCP Toolbox for Databases enables your agent to connect to your database.
README from the maker
Open the README
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
db-mcp-server
MCP server for MySQL, PostgreSQL, MongoDB, and SQLite databases. One instance per database, no Docker required.
Installation
uvx db-mcp-server
Configuration
Configure via environment variables. Each instance connects to a single database.
MySQL
| Variable | Required | Default | Description |
|---|---|---|---|
DB_TYPE | Yes | — | mysql |
DB_DATABASE | Yes | — | Database name |
DB_PASSWORD | Yes | — | Password |
DB_HOST | No | localhost | Host |
DB_PORT | No | 3306 | Port |
DB_USER | No | root | User |
DB_MODE | No | read-only | read-only or read-write |
PostgreSQL
| Variable | Required | Default | Description |
|---|---|---|---|
DB_TYPE | Yes | — | postgresql |
DB_DATABASE | Yes | — | Database name |
DB_PASSWORD | Yes | — | Password |
DB_HOST | No | localhost | Host |
DB_PORT | No | 5432 | Port |
DB_USER | No | postgres | User |
DB_MODE | No | read-only | read-only or read-write |
MongoDB
| Variable | Required | Default | Description |
|---|---|---|---|
DB_TYPE | Yes | — | mongodb |
DB_DATABASE | Yes | — | Database name |
DB_URL | Yes | — | Connection URL (mongodb://...) |
DB_MODE | No | read-only | read-only or read-write |
SQLite
| Variable | Required | Default | Description |
|---|---|---|---|
DB_TYPE | Yes | — | sqlite |
DB_PATH | Yes | — | Path to .db file (local or remote with SSH) |
DB_DATABASE | No | filename | Display name |
DB_MODE | No | read-only | read-only or read-write |
SSH Tunnel (MySQL / PostgreSQL)
Optionally connect through an SSH bastion host. Set SSH_HOST to activate.
For SQLite over SSH, the remote .db file is downloaded via SFTP before querying. In read-write mode, changes are uploaded back on shutdown.
| Variable | Required | Default | Description |
|---|---|---|---|
SSH_HOST | No | — | SSH bastion host (activates tunneling) |
SSH_PORT | No | 22 | SSH port |
SSH_USER | No | Current OS user | SSH username |
SSH_KEY | No | — | Path to private key (~/.ssh/id_rsa) |
SSH_PASSWORD | No | — | SSH password (if no key) |
At least one of SSH_KEY or SSH_PASSWORD is required when SSH_HOST is set. SSH tunneling is not supported for MongoDB.
Usage in .mcp.json
SQLite (local)
{
"mcpServers": { "db-local": { "command": "uvx", "args": ["db-mcp-server"], "env": { "DB_TYPE": "sqlite", "DB_PATH": "/path/to/database.db" } } } }
SQLite over SSH
{
"mcpServers": { "db-remote": { "command": "uvx", "args": ["db-mcp-server"], "env": { "DB_TYPE": "sqlite", "DB_PATH": "/remote/path/to/database.db", "SSH_HOST": "server.example.com", "SSH_USER": "deploy", "SSH_KEY": "~/.ssh/id_rsa" } } } }
{
"mcpServers": { "db-prod": { "command": "uvx", "args": ["db-mcp-server"], "env": { "DB_TYPE": "mysql", "DB_MODE": "read-only", "DB_HOST": "db.example.com", "DB_PORT": "3306", "DB_USER": "root", "DB_PASSWORD": "secret", "DB_DATABASE": "myapp" } } } }
With SSH tunnel
{
"mcpServers": { "db-behind-bastion": { "command": "uvx", "args": ["db-mcp-server"], "env": { "DB_TYPE": "postgresql", "DB_HOST": "10.0.0.5", "DB_PORT": "5432", "DB_USER": "postgres", "DB_PASSWORD": "secret", "DB_DATABASE": "myapp", "SSH_HOST": "bastion.example.com", "SSH_USER": "deploy", "SSH_KEY": "~/.ssh/id_rsa" } } } }
For multiple databases, add multiple instances:
{
"mcpServers": { "db-prod": { "command": "uvx", "args": ["db-mcp-server"], "env": { "DB_TYPE": "mysql", "DB_DATABASE": "prod", "..." : "..." } }, "db-analytics": { "command": "uvx", "args": ["db-mcp-server"], "env": { "DB_TYPE": "postgresql", "DB_DATABASE": "analytics", "..." : "..." } }, "db-staging": { "command": "uvx", "args": ["db-mcp-server"], "env": { "DB_TYPE": "mongodb", "DB_DATABASE": "staging", "..." : "..." } } } }
Tools
MySQL
- query — Execute read-only SQL (SELECT, SHOW, DESCRIBE, EXPLAIN, WITH)
- execute — Execute write SQL (INSERT, UPDATE, DELETE) — requires
DB_MODE=read-write - describe — Describe table structure
- list_tables — List all tables
- status — Show connection info
PostgreSQL
- query — Execute read-only SQL (SELECT, SHOW, DESCRIBE, EXPLAIN, WITH)
- execute — Execute write SQL (INSERT, UPDATE, DELETE) — requires
DB_MODE=read-write - describe — Describe table structure (column info from information_schema)
- list_tables — List all tables in the public schema
- status — Show connection info
SQLite
- query — Execute read-only SQL (SELECT, SHOW, DESCRIBE, EXPLAIN, WITH)
- execute — Execute write SQL (INSERT, UPDATE, DELETE) — requires
DB_MODE=read-write - describe — Describe table structure (PRAGMA table_info)
- list_tables — List all tables
- status — Show connection info
MongoDB
- query — Find documents in a collection
- describe — Collection stats ($collStats)
- list_collections — List all collections
- aggregate — Execute aggregation pipelines ($out/$merge blocked on read-only)
- status — Show connection info
License
MIT