Skip to content
Kitbay
Submit
MCP server

mysql-mcp-server

Runs locallyMITUpdated on Oct 28, 20261,415GitHub starsCan change dataNeeds an API key

A Python MCP server for MySQL, installed from PyPI as mysql-mcp-server. It lists tables as resources, reads their contents, samples data, reports schema details and runs SQL statements one at a time.

What it does

A Python MCP server for MySQL, installed from PyPI as mysql-mcp-server. It lists tables as resources, reads their contents, samples data, reports schema details and runs SQL statements one at a time. When no default database is set it works across all user databases with fully qualified table names. Connection details, TLS mode and an optional SSH tunnel are set through environment variables or a .env file. It runs locally over stdio, for example through uvx from Claude Code, or as an SSE server for self-hosted setups; the README also mentions a third-party hosted option.

Capabilities

  • List MySQL tables and read their contents
  • Run SQL statements
  • Show schema details and sample table data
  • Work across several databases
  • Connect through an SSH tunnel