database MCP Server
MCP server that connects AI agents (Claude Desktop, Cursor, Windsurf) directly to your MySQL, PostgreSQL, or SQLite database read-only by default, zero install via npx.
Discovered via github-topic:mcp-server and last synced 3mo ago.
1. Install the package
npx @salmanulfaris/sql-mcp --db mysql://user:password@host:3306/mydb
2. Add to claude_desktop_config.json
{
"mcpServers": {
"-salmanulfaris-sql-mcp": {
"command": "npx",
"args": [
"@salmanulfaris/sql-mcp"
]
}
}
}Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows)
Connection URI
Enable DROP DATABASE
List all tables and views in the database
Full schema for one table: columns, types, indexes, FK
Full database schema dump
Env Var
Description
`DB_URL`
Description
Sample N rows from a table
Execute any SQL statement
Show execution plan + detect performance issues (full scans, missing indexes, filesort, etc.)
Use this skill when designing database schemas, optimizing queries, creating indexes, planning migrations, or choosing between database technologies. Triggers on schema design, normalization, indexing strategies, query optimization, EXPLAIN plans, migrations, partitioning, replication, connection pooling, and any task requiring database architecture or performance decisions.
Database Workflow Bundle workflow skill. Use this skill when the user needs Database development and operations workflow covering SQL, NoSQL, database design, migrations, optimization, and data engineering and the operator should preserve the upstream workflow, copied support files, and provenance before merging or handing off.
database-admin workflow skill. Use this skill when the user needs Expert database administrator specializing in modern cloud databases, automation, and reliability engineering and the operator should preserve the upstream workflow, copied support files, and provenance before merging or handing off.
AppDeploy Skill workflow skill. Use this skill when the user needs Deploy web apps with backend APIs, database, and file storage. Use when the user asks to deploy or publish a website or web app and wants a public URL. Uses HTTP API via curl and the operator should preserve the upstream workflow, copied support files, and provenance before merging or handing off.
open-source agentic AI data assistant for the next generation of AI + Data products.
GenBI (Generative BI) for AI agents, an open-source, governed text-to-SQL through an open context layer that turns natural-language questions into trusted dashboards, charts, and SQL across 20+ data sources, such as BigQuery, Snowflake, PostgreSQL, ClickHouse, Amazon Redshift, Databricks and more.
MCP Toolbox for Databases is an open source MCP server for databases.
The all-in-one, open-source backend platform for agentic coding. InsForge gives your coding agent database, auth, storage, compute, hosting, and AI gateway to ship full-stack apps end-to-end.
Learn how to use the database-engineering Claude skill. Complete guide with installation instructions and examples.
Learn how to use the azure-resource-manager-postgresql-dotnet-v2 Claude skill. Complete guide with installation instructions and examples.
Learn how to use the azure-postgres-ts-v2 Claude skill. Complete guide with installation instructions and examples.