Database MCP Server

by arifulislamat

Not rated
GitHub

Description

MCP servers that give AI clients safe, structured access to SQL databases. One installable package per database engine. Every package exposes the same minimal two-tool surface, execute_sql and search_objects, with guardrails on by default: read-only mode, row caps, and statement…

About

MCP servers that give AI clients safe, structured access to SQL databases. One installable package per database engine. Every package exposes the same minimal two-tool surface, execute_sql and search_objects, with guardrails on by default: read-only mode, row caps, and statement timeouts.

Details

Author
arifulislamat
Categories
Database, Other, Developer Tools

Setup

Install Database MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/arifulislamat/database-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

MCP servers that give AI clients safe, structured access to SQL databases. One installable package per database engine. Every package exposes the same minimal two-tool surface, execute_sql and search_objects, with guardrails on by default: read-only mode, row caps, and statement timeouts.

MCP servers that give AI clients safe, structured access to SQL databases.

One installable package per database engine, in TypeScript (npm) and Python (PyPI). Every package exposes the same minimal two-tool surface,execute_sqlandsearch_objects, with guardrails on by default: read-only mode, row caps, and statement timeouts.

Both lines are published and pass the same language-agnostic conformance suite against real databases in CI, so behavior is identical regardless of language. Every engine is also listed on theMCP Registrywith both install options.

Go and Rust implementations are planned.

- Two tools, no more.A tiny tool surface keeps the model's context window clean.search_objectsprogressively discloses schema: call it with no arguments to list tables, with a table name to get columns, indexes, and foreign keys.
- Safe by default.Read-only mode is enforced in two layers: a conservative SQL guard, plus a session-level read-only setting in the database itself. Rows are capped (default 1000) and statements time out (default 30s).
- Configured at launch, never via chat.Connection details come from flags, a YAML config file, or environment variables. Credentials are never accepted through a tool call.
- Secrets never appear in logs.Passwords live in non-printable secret types, DSNs are sanitized before logging, and a redaction filter guards the log boundary.

Pick your engine's package; each README has the full config surface. SQLite via npm:

{ "mcpServers": { "sqlite": { "command": "npx", "args": ["-y", "@database-mcp/sqlite", "--dsn", "/absolute/path/to/database.db"] } } }

Or via PyPI: use"command": "uvx"and"args": ["database-mcp-sqlite", "--dsn", "/absolute/path/to/database.db"]. Flags, environment variables, and YAML config are identical across both lines.

Networked engines take credentials from the environment (MYSQL_,MARIADB_,POSTGRES_/DATABASE_URL,LIBSQL_URL/LIBSQL_AUTH_TOKEN),_FILEmounted secrets, or a YAML file via--config. Never from a chat prompt.

SeeCONTRIBUTING.md. The short version: the conformance suite is the definition of done. A change is mergeable only whenconformance/run.mjspasses against every affected server.

Provides read-only access to Apache Iceberg tables via Apache Impala, allowing LLMs to inspect schemas and execute queries.

MCP server that gives AI agents deep understanding of contemporary or legacy relational databases.

Browse, create, and manage schema projects on the Schematica schema library. 8 MCP tools for AI-powered schema design and data modeling.

AI-powered SQL query builder — natural language to SQL, schema introspection, query optimization, multi-dialect support by MEOK AI Labs

connect a read-only replica, analytics database, or staging database. Keep credentials on your machine while the tool discovers schema, generates safe SQL, previews it for approval, runs the query, and summarizes the result.

MCPg - Production-grade PostgreSQL MCP Server

Safe-by-default PostgreSQL Model Context Protocol server for AI agents.

Official MCP server for dbt (data build tool) providing integration with dbt Core/Cloud CLI, project metadata discovery, model information, and semantic layer querying capabilities.

Query and analyze data with MotherDuck and local DuckDB

A collection of tools for managing the platform, addressing data quality and reading and writing to Teradata Database.

Multi-database agent access (PostgreSQL, SQLite, MySQL, Oracle, SQL Server) with batch queries, pre-configured connections, and SQLGlot-enforced read-only safety

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.