Postgres MCP Server
PostgreSQL MCP server for Claude Code, Claude Desktop and Cursor: read-only transactions, schema, EXPLAIN findings, health checks, slow queries. Python. $29.
View Postgres MCP Server
Ask Claude or Cursor about your MySQL data and slow queries, with the database protected: read-only transactions, time limits, row caps and a statement checker.

Let Claude Code, Claude Desktop, Cursor or any MCP client explore and query a MySQL database, and review its performance, without being able to change it.
The screenshot is real output from the kit’s own commands. Tested from a fresh download of this exact zip: ./run_tests.sh ran 23 tests OK on Python 3.13 and 3.10.

| Tool | What it returns |
|---|---|
| list_connections | configured connections (password hidden), server version, default database, whether the login can change data |
| list_databases | databases with table counts, sizes and character sets |
| list_tables | tables and views: engine, estimated rows, size, comment |
| describe_table | columns, keys both ways, check constraints, indexes + usage, engine, collation, view SQL, sample rows |
| read_query | one read statement with ? params; capped rows, truncated flag, timing |
| explain_query | plan + plain-English findings; analyze: true adds real timings (runs the query, read-only) |
| search_schema | tables and columns whose name contains a word |
| db_health | unused and redundant indexes, tables without a primary key, non-InnoDB tables, utf8mb3 columns, auto_increment near its limit, fragmentation, queries without an index, buffer pool hit ratio, connections, long-running statements |
| top_queries | slowest / most frequent query patterns from performance_schema |
| export_csv | up to 100,000 rows of a read query into a new .csv (never overwrites) |
| write_query | only with --allow-writes: one INSERT/UPDATE/DELETE/REPLACE/DDL, committed |
Python 3.9+ and PyMySQL (pure Python, no client libraries needed):
python3 -m pip install PyMySQL # or: python3 -m pip install -r requirements.txtCreate a read-only user (recommended; see examples/read_only_user.sql):
CREATE USER 'mcp_reader'@'%' IDENTIFIED BY 'change-me';
GRANT SELECT, SHOW VIEW ON mydb.* TO 'mcp_reader'@'%';
GRANT SELECT ON performance_schema.* TO 'mcp_reader'@'%'; -- optional: db_health, top_queries, index usage
GRANT PROCESS ON *.* TO 'mcp_reader'@'%'; -- optional: other sessions in long_runningClaude Code
claude mcp add mysql -- python3 /path/to/mysql-mcp-server/server.py --dsn mysql://mcp_reader:PASSWORD@localhost:3306/mydbOr install the folder as a plugin (.claude-plugin/plugin.json, .mcp.json, skill mysql-analyst) and set MYMCP_DSN in your environment.
Claude Desktop / Cursor: copy examples/configs/claude_desktop_config.json or examples/configs/cursor-mcp.json and fill in the path and connection string.
Connection string: mysql://user:password@host:3306/database. Options after ?: ssl_ca=/path/ca.pem (verified TLS; add ssl_verify=true to check the host name), ssl=true (encrypted, certificate not verified), unix_socket=/path/mysqld.sock, charset=utf8mb4. URL-encode special characters in the password (@ is %40). Several servers: repeat --dsn name=mysql://... (or separate them with spaces in MYMCP_DSN). With no DSN, MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE are used.
Options: --max-rows 200 (cap per query), --timeout 10 (seconds per query), --allow-writes (adds write_query; the skill asks before every write).
./run_tests.sh # unit tests, no database needed
MYMCP_TEST_DSN=mysql://root:pw@127.0.0.1:3306/ ./run_tests.sh # + integration tests on a real server
MYMCP_DEMO_DSN=mysql://root:pw@127.0.0.1:3306/ ./demo.sh # MCP session on a fictional shopThe integration tests and the demo recreate database demo_shop (the tests also create user mcp_test_reader). Use a scratch server.
Zip, 38 KB, v1.0, 26 files. You may use and modify this kit for your own work and for clients you serve, including paid client work. Not affiliated with or endorsed by MySQL (Oracle), Anthropic or Cursor (Anysphere).
MySQL MCP server for Claude Code, Claude Desktop and Cursor: read-only transactions, schema, EXPLAIN findings, 11 health checks, slow queries. Python. $29.
PostgreSQL MCP server for Claude Code, Claude Desktop and Cursor: read-only transactions, schema, EXPLAIN findings, health checks, slow queries. Python. $29.
View Postgres MCP ServerTest any MCP server (stdio or HTTP) against MCP 2026-07-28 and 2025-11-25: conformance checks, YAML test cases, JUnit for CI. Python, no dependencies.
View MCP Server Test Harness: Conformance + Test Cases for CIFree tool: convert Cursor .mdc rules and .cursorrules to AGENTS.md, Claude Code rules, Copilot instructions, Devin/Windsurf rules and GEMINI.md, keeping globs.
View Cursor Rules Converter: .mdc to AGENTS.md, CLAUDE.md, Copilot, Devin, GeminiShort weekly digest of new x402 + MCP tools and free kits, including the MCP OAuth Checker. No spam, unsubscribe any time.