MCP servers for databases

A database MCP server lets an assistant look at your schema, write a query, run it and read the result, all in one conversation. For analysts that turns a question in plain English into an answer with the SQL attached. For developers it means an assistant that can check the real data shape before it writes a migration. This list ranks the database servers in SkillScout's catalogue by GitHub stars.

One database or many

Some servers are built for one engine, such as Postgres, MySQL or MongoDB, and go deep on it. Others cover many engines behind one interface, which is simpler if you work across several.

Look for schema browsing, read-only modes, row limits and query timeouts. Those features decide whether a server is safe to point at real data.

Give the assistant the schema notes you already have, such as table comments or a short glossary. The same question gets a much better query when the model knows what each column means.

Keep production safe

Connect with a read-only user wherever you can, ideally to a replica, and keep write access for development databases. A model that misreads a request can write a bad UPDATE as fluently as a good SELECT.

Watch what data goes into the conversation. Query results are sent to the model, so mask personal fields or use a sample when the data is sensitive.

SkillScout's copy of the official MCP Registry had 760 servers that mention a database on 27 October 2026.

The list

From SkillScout's catalogue, counted on 27 October 2026: 53 entries matched this topic, and these are the 12 with the most GitHub stars, one per project, after a review for false matches. Descriptions are each project's own. Stars show popularity, not fit.

  1. mcp-toolbox

    MCP server · GitHub · 14,992 stars

    MCP Toolbox for Databases is an open source MCP server for databases.

    Get the code, then follow its README: git clone https://github.com/googleapis/mcp-toolbox

  2. prest

    MCP server · GitHub · 4,557 stars

    PostgreSQL REST, low-code, simplify and accelerate development, instant, realtime, high-performance on any Postgres application, existing or new, MCP server

    Get the code, then follow its README: git clone https://github.com/prest/prest

  3. dbhub

    MCP server · GitHub · 3,018 stars

    Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.

    Add it to Claude Code (from the official MCP Registry): claude mcp add dbhub -- npx -y @bytebase/dbhub

  4. anyquery

    MCP server · GitHub · 1,726 stars

    Query anything (GitHub, Notion, +40 more) with SQL and let LLMs (ChatGPT, Claude) connect to using MCP

    Get the code, then follow its README: git clone https://github.com/julien040/anyquery

  5. gridex

    MCP server · GitHub · 1,526 stars

    Connects to PostgreSQL, MySQL, SQLite, Redis, MongoDB, SQL Server, and ClickHouse through a single native desktop application with a built-in MCP server...

    Get the code, then follow its README: git clone https://github.com/gridex/gridex

  6. data-api-builder

    MCP server · GitHub · 1,396 stars

    Data API builder provides modern REST, GraphQL endpoints and MCP tools to your Azure Databases and on-prem stores.

    Get the code, then follow its README: git clone https://github.com/Azure/data-api-builder

  7. mysql_mcp_server

    MCP server · GitHub · 1,348 stars

    A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases

    Get the code, then follow its README: git clone https://github.com/designcomputer/mysql_mcp_server

  8. tabularis

    Open-source tool · GitHub · 1,290 stars

    A lightweight, cross-platform database client for developers. Supports MySQL, PostgreSQL and SQLite. Hackable with plugins. Built for speed, security, and aesthetics.

    Get the code, then follow its README: git clone https://github.com/TabularisDB/tabularis

  9. mongodb-mcp-server

    MCP server · GitHub · 1,013 stars

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

    Get the code, then follow its README: git clone https://github.com/mongodb-js/mongodb-mcp-server

  10. restheart

    Open-source tool · GitHub · 874 stars

    The Agent-Ready Backend for MongoDB.

    Get the code, then follow its README: git clone https://github.com/SoftInstigate/restheart

  11. mcp-server-neon

    MCP server · GitHub · 596 stars

    MCP server for interacting with Neon Management API and databases

    Get the code, then follow its README: git clone https://github.com/neondatabase/mcp-server-neon

  12. mcp-redis

    MCP server · GitHub · 507 stars

    The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently

    Get the code, then follow its README: git clone https://github.com/redis/mcp-redis

Questions

Can Claude query my Postgres database?

Yes, through a Postgres or multi-database MCP server. Give it a read-only connection string, and it can list tables, write SQL and explain the results.

Is it safe to connect AI to a database?

It can be, with a read-only user, a replica or sample data, row limits and care about personal data. Do not give an assistant write access to production.

Related

Your own list

This page ranks by popularity. SkillScout's scan ranks by fit: the AI you already use writes a short profile of how you work, and SkillScout scores about 22,000 AI tools against your gaps and hands back a short list with install steps. It is free, and the server never saves your profile.

Run your scan