Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI โ†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE โ†— (opens in a new tab)
  • llms.txt โ†— (opens in a new tab)
  • Catalog JSON โ†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub โ†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
ยฉ 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. ๐Ÿ—„๏ธ Databases
  3. MCP Multi Db
MCP Multi Db logo
Health: ActiveRecent health check succeeded.Last checked 9/9/2026, 10:16:39 PM

MCP Multi Db

User RatingsBe the first to rate and review this MCP server!
View Repository1 GitHub StarsTotal stargazers on GitHub for the source repository (1 stars).Visit Website
databasespostgresqlmysqlsqlitedeveloper-tools

Read-only MCP access to PostgreSQL, MySQL, and SQLite databases through one server.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON โ–พ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mahanuj-mcp-multi-db": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-multi-db"
      ]
    }
  }
}

๐Ÿ’ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (4) Directory Badge Claim listing Alternatives๐Ÿ—„๏ธ More in Databases

Overview

This stdio MCP server connects an AI agent to configured PostgreSQL, MySQL, and SQLite databases. It supports database and schema discovery plus read-only SQL queries, with SQL guards, database-level read-only enforcement, row limits, and query timeouts. Use it when an agent needs to inspect or query multiple SQL engines without write access.

Use cases

โ€ขList configured database connections
โ€ขInspect tables and views in a selected database
โ€ขReview column metadata before writing a query
โ€ขRun read-only SELECT, WITH, or EXPLAIN queries
โ€ขQuery PostgreSQL, MySQL, and SQLite through one MCP server

Key features

โ€ขSupports PostgreSQL, MySQL, and SQLite
โ€ขLists configured databases
โ€ขLists tables and views
โ€ขDescribes table column metadata
โ€ขRestricts queries to read-only SQL
โ€ขApplies row limits and query timeouts

Capabilities & Tool Schemas (4) ~49 tokensApproximate context cost of this serverโ€™s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server โ€” may be incomplete or out of date.

Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Multi Db.

list_databases

List configured database connections

list_tables

List tables/views in a database

describe_table

Show column metadata for a table

run_query

Run read-only SQL (`SELECT`, `WITH`, `EXPLAIN`)

Documentation Overview

mcp-multi-db

npm version npm downloads license mcp-multi-db MCP server

One MCP server for all your SQL databases โ€” read-only and safe by default.

mcp-multi-db MCP server card

Connect an AI agent to PostgreSQL, MySQL, and SQLite at the same time through a single Model Context Protocol server. List your databases in one config file and the agent picks which one to query by database_id. Every query is enforced read-only at the database level, so it's safe to point at real data.

  • Multi-engine, one server โ€” Postgres, MySQL, and SQLite side by side; no separate server per database.
  • Read-only & safe by default โ€” two-layer enforcement (SQL-text guard + database-level read-only transactions) plus row limits and query timeouts. See SECURITY.md.
  • Schema-aware โ€” the agent can discover databases, tables/views, and column metadata before it writes a query.
  • Zero query language to learn โ€” just ask in natural language.

Demo: the MCP server listing databases, inspecting schema, running a read-only query, and refusing a write

The clip drives the real server over stdio (via the MCP SDK) against a seeded SQLite database. Regenerate it with npm run build && vhs examples/demo.tape.

Tools

ToolDescription
list_databasesList configured database connections
list_tablesList tables/views in a database
describe_tableShow column metadata for a table
run_queryRun read-only SQL (SELECT, WITH, EXPLAIN)

Quick start

No install needed โ€” npx fetches the package on first use.

1. Create databases.json

Copy the example and edit with your connection details:

bash
cp databases.example.json databases.json
config.json
{
  "databases": [
    {
      "id": "local-sqlite",
      "type": "sqlite",
      "path": "/absolute/path/to/app.db",
      "label": "Local dev SQLite"
    },
    {
      "id": "analytics-pg",
      "type": "postgres",
      "connectionString": "postgresql://user:pass@localhost:5432/analytics",
      "label": "Analytics Warehouse"
    },
    {
      "id": "reporting-mysql",
      "type": "mysql",
      "connectionString": "mysql://user:pass@localhost:3306/reporting",
      "label": "Reporting MySQL"
    }
  ]
}

Never commit databases.json โ€” it contains credentials. It's already gitignored if you cloned the repo. Prefer read-only database users (see Security).

2. Register the server with your MCP client

The server speaks MCP over stdio, so it works with any MCP-capable client. Use npx mcp-multi-db as the command and pass MCP_DB_CONFIG (the path to your databases.json). See mcp.example.json and databases.example.json for templates.

Claude Desktop

Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

config.json
{
  "mcpServers": {
    "mcp-multi-db": {
      "command": "npx",
      "args": ["-y", "mcp-multi-db"],
      "env": {
        "MCP_DB_CONFIG": "/absolute/path/to/databases.json"
      }
    }
  }
}

Restart Claude Desktop afterward.

Claude Code
Terminal
claude mcp add mcp-multi-db \
  --env MCP_DB_CONFIG=/absolute/path/to/databases.json \
  -- npx -y mcp-multi-db
Cursor

Add to ~/.cursor/mcp.json (or .cursor/mcp.json in your project), then open Cursor Settings โ†’ Tools & MCP, restart the server, and use Agent mode:

config.json
{
  "mcpServers": {
    "mcp-multi-db": {
      "command": "npx",
      "args": ["-y", "mcp-multi-db"],
      "env": {
        "MCP_DB_CONFIG": "/absolute/path/to/databases.json"
      }
    }
  }
}
Cline / Windsurf / other MCP clients

Any client that supports stdio MCP servers uses the same shape: command npx, args ["-y", "mcp-multi-db"], and env MCP_DB_CONFIG pointing at your databases.json. Consult your client's docs for where its MCP config lives.

Prefer a pinned global install? npm install -g mcp-multi-db, then use command mcp-multi-db with no args.

Configuration reference

Config is loaded from one of two environment variables, in order:

  1. MCP_DB_CONFIG โ€” path to a JSON file (recommended).
  2. MCP_DATABASES โ€” inline JSON (useful when a file path is awkward).

The JSON may be either { "databases": [ ... ] } or a bare array. Each entry:

FieldRequiredNotes
idyesUnique; the agent references this as database_id
typeyespostgres | mysql | sqlite
connectionStringpostgres/mysqlStandard connection URI
pathsqliteAbsolute path to the .db file
labelnoHuman-friendly name shown to the agent
descriptionnoExtra context shown to the agent

Example prompts

  • "List my configured databases"
  • "What tables are in local-sqlite?"
  • "Describe the users table in analytics-pg"
  • "Run SELECT COUNT(*) FROM orders on reporting-mysql"

Security

  • Read-only only. INSERT, UPDATE, DELETE, DDL, etc. are blocked โ€” both by a SQL-text guard and by running each query inside a database-level read-only transaction (SQLite opens read-only). A SELECT that calls a side-effecting function is still refused.
  • Row limits. Results are capped (default 100, max 1000).
  • Query timeouts. Statements are bounded (30s) to avoid runaway queries.
  • Use least privilege anyway. Prefer dedicated read-only DB users and read replicas. Full details and reporting in SECURITY.md.

Docker

A multi-stage Dockerfile is included. Build and run with your databases.json mounted in:

Terminal
docker build -t mcp-multi-db .

docker run --rm -i \
  -v /absolute/path/to/databases.json:/config/databases.json:ro \
  mcp-multi-db

The image runs as a non-root user, ships only the built JS and runtime node_modules (no toolchain), and speaks MCP over stdio just like the npx install โ€” so it slots into any MCP client by replacing the command and args with the appropriate docker run -i invocation.

Development

Terminal
npm install
npm run build     # tsc -> build/, the artifact MCP clients run
npm test          # builds, then runs the node:test suite

Tests use Node's built-in test runner (no extra dependencies) and cover the read-only SQL guard and the SQLite adapter end to end. CI runs build + tests on every push and pull request.

Adding another database engine is a contained change: add the config variant in src/config.ts, implement the SqlDatabasePort interface in a new adapter under src/adapters/, and register it in the adapter factory. New adapters must enforce read-only at the connection level โ€” not rely on the text guard alone. See docs/extending.md for the full checklist.

Documentation

  • Architecture โ€” components, request lifecycle, and the port-family design (with diagrams).
  • Extending โ€” add a SQL engine or a non-SQL family.
  • Security โ€” the two-layer read-only model and safe deployment.

The full index is in docs/.

Contributing

Issues and pull requests are welcome โ€” see CONTRIBUTING.md for setup, the read-only invariants, and how to add a database engine.

License

ISC โ€” see LICENSE.

Read the full README โ†’View source on GitHub โ†’

Related MCP Servers

View all in Databases View all alternatives
  • MCP Datalink logoMCP Datalink

    MCP server for secure database access (PostgreSQL, MySQL, SQLite) with parameterized queries and schema inspection

    ๐Ÿ—„๏ธ Databases1 views
    Compare vs MCP Datalink โ†’
  • ClickHouse logoClickHouse

    Read-only MCP server for ClickHouse metadata, parameterized queries, and plan analysis.

    ๐Ÿ—„๏ธ Databases3 views
    Compare vs ClickHouse โ†’
  • Dbridge MCP logoDbridge MCP

    Query SQLite, PostgreSQL, and MySQL in plain language โ€” read-only by design, with column hiding/masking, row caps, per-query timeouts, cost-based rejection, and rate limiting.

    ๐Ÿ—„๏ธ Databases3 views
    Compare vs Dbridge MCP โ†’
  • Postgres MCP logoPostgres MCP

    PostgreSQL MCP server with 14 tools for querying, schema exploration, and table analysis. Features security-first design with SQL injection prevention and read-only by default.

    ๐Ÿ—„๏ธ Databases3 views
    Compare vs Postgres MCP โ†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks โ€” not a rating.

GitHub stars
1
Stargazers on the source repository.
npm downloads
72
Package downloads in the last 30 days.
Last commit
12d ago
Most recent push to the default branch.
Tools exposed
4
Callable tools this server registers over MCP.
Directory activity
1 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet โ€” be the first to share how this listing worked for you.

Frequently Asked Questions about MCP Multi Db

The server supports PostgreSQL, MySQL, and SQLite.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Multi Db AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mahanuj-mcp-multi-db?style=directory)](https://allmcps.com/mcp/mahanuj-mcp-multi-db)
HTML Embed
<a href="https://allmcps.com/mcp/mahanuj-mcp-multi-db"><img src="https://allmcps.com/api/badge/mahanuj-mcp-multi-db?style=directory" alt="MCP Multi Db on AllMCPs" /></a>

Technical Specs & Signals

Category๐Ÿ—„๏ธDatabases
PricingFree
More technical detailsExpand โ–พ
TransportSTDIO
RuntimeNode.js
AuthOther
ClientsClaude Desktop, Cursor, Windsurf, Cline / VS Code
Last updatedAug 30, 2026
11/11 checks healthy over the last 32d
Views1
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars1
GitHub Star CountTotal stargazers on GitHub representing community popularity (1 stars).
Last commit12d ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Aug 30, 2026
npm downloads72/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
60Quality signal: Good ยท 60/100How this signal is calculated โ–พ
Server availabilityNot measured

Not scored for repo-hosted servers โ€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools29/30
Adoption & activity6/15
Community engagement0/10

A guidance signal from public completeness & health data โ€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 27d ago via OSV.dev ยท mcp-multi-db (npm)

โ˜… FeaturedAllMCPs Server logo

AllMCPs Server

The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 10,000+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

Explore Server โ†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge โ€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it โ€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in ๐Ÿ—„๏ธ Databases โ†’Best MCP servers for Databases โ†’Alternatives to MCP Multi Db โ†’Install in Claude DesktopInstall in CursorInstall in VS Code