@salmanulfaris/sql-mcp

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.

VerifiedInstall Ready
databasedatabasepostgresqlmysql
5 views9 stars0 forksv0.4.1MIT

Why This Matters

Discovered via github-topic:mcp-server and last synced 3mo ago.

VerifiedInstall Ready
Source
github-topic:mcp-server
Stars
9
Last synced
3mo ago
Install
Instructions detected

Install

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)

12
Tools
0
Resources
0
Prompts
Standard I/O
Transport

Available Tools (12)

Database

Connection URI

false

Enable DROP DATABASE

list_tables

List all tables and views in the database

describe_table

Full schema for one table: columns, types, indexes, FK

get_schema

Full database schema dump

Flag

Env Var

Default

Description

DB_URL

`DB_URL`

Tool

Description

get_sample_data

Sample N rows from a table

query

Execute any SQL statement

analyze_query

Show execution plan + detect performance issues (full scans, missing indexes, filesort, etc.)

Works Well With - Skills