Best MCP Servers for Databases (2026)

The best MCP servers for connecting AI agents to SQL and NoSQL databases — query, inspect schemas, and safely read or write real records from Claude, Cursor, and other clients.

Top 10 · ranked by installs, upvotes, stars and views · refreshed hourly

  1. Why it’s hereMost popular in this category on AllMCPs

    Query databases from AI agents using connections configured in DBX.

    Upvotes: 0Installs: 0GitHub stars: 28k
    Install
  2. Why it’s hereCommunity pick

    Minimal Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB

    Upvotes: 0Installs: 0GitHub stars: 3.7k
    Install
  3. Why it’s hereCommunity pick

    A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.

    Upvotes: 0Installs: 0GitHub stars: 1.2k
    Install
  4. Why it’s hereCommunity pick

    MySQL database integration in NodeJS with configurable access controls and schema inspection

    Upvotes: 0Installs: 0GitHub stars: 2.2k
    Install
  5. MCP Server Neon logo

    #5 MCP Server Neon

    neondatabase

    Why it’s hereCommunity pick

    An MCP Server for creating and managing Postgres databases using Neon Serverless Postgres

    Upvotes: 0Installs: 0GitHub stars: 655
    Install
  6. Why it’s hereCommunity pick

    Airtable database integration with schema inspection, read and write capabilities

    Upvotes: 0Installs: 0GitHub stars: 455
    Install
  7. Why it’s hereCommunity pick

    Connected tables, relations, workflows and markdown documents in one SQLite file, over MCP.

    Upvotes: 0Installs: 0GitHub stars: 14
    Install
  8. Why it’s hereCommunity pick

    SQL-native query and provisioning engine for cloud infrastructure, served over MCP.

    Upvotes: 0Installs: 0GitHub stars: 1.1k
    Install
  9. Why it’s hereCommunity pick

    Manage FireCMS Cloud from an AI agent: Firestore data, collections, schemas and users.

    Upvotes: 0Installs: 0GitHub stars: 1.3k
    Install
  10. Why it’s hereCommunity pick

    Firebase services including Auth, Firestore and Storage.

    Upvotes: 0Installs: 0GitHub stars: 247
    Install

Which Databases MCP server should you use?

Start with the engine-specific page for your database (Postgres, MySQL, MongoDB, SQLite) rather than a generic multi-database server — a purpose-built server usually has better schema introspection and fewer surprises than a lowest-common-denominator wrapper.

The single biggest decision is read vs. write access. Most database MCP servers default to read-only, which is the right starting point: connect with a database role that can only SELECT, watch how the agent actually uses it for a while, and only grant write access to specific tables once you trust the workflow.

Never point one of these at a database credential with admin/superuser rights. Create a dedicated, least-privilege user for the MCP server — most engines support scoping a role to specific schemas or tables, which limits the blast radius if a prompt goes wrong.

Frequently asked questions about Databases MCP servers

What is the best MCP server for databases?

It depends on your database. For Postgres, the official modelcontextprotocol/server-postgres and crystaldba/postgres-mcp are the most widely installed. The ranking on this page is ordered by real usage across the AllMCPs directory.

Can an MCP server write to my database, or only read?

Most database MCP servers default to read-only access for safety; several offer an opt-in write mode. Always check the server’s README and connect with a least-privilege, scoped database credential.

How do I connect Claude to a database with MCP?

Install a database MCP server in your client config (e.g. under mcpServers in claude_desktop_config.json), give it a connection string via environment variables, and restart the client. Each listing links to its setup instructions.