mysql_mcp_server

MCP server for exploring and querying MySQL from AI clients

Local

Install

See setup instructions on designcomputer.com

What it does

This package is a Model Context Protocol server that lets AI hosts work with MySQL databases through a defined set of tools and prompts. It can list tables, describe schema details, pull small data samples, and run SQL statements, while validating table and database identifiers to reduce injection risk. Two guided prompts walk a client through surveying a whole database or examining a single table.

It is aimed at developers and analysts who want an assistant to inspect or query MySQL without building custom glue code. Setup is done with pip or uvx, and connection settings such as host, port, user, password, optional database, SSL mode, timeouts, and SQL mode are supplied as environment variables. Claude Desktop, Claude Code, and VS Code are shown as example hosts; a custom connector is documented by the provider.

Transports include standard input/output and a Streamable HTTP/SSE mode, which has no built-in authentication and should sit behind an authenticating reverse proxy if exposed. Only single SQL statements are accepted, sampling is capped at 20 rows, and environment files may not be discovered when the server is launched from a client's own directory. SSH tunneling is available for remote databases.

Compatibility and authentication

Connection
Local
Transports
Unspecified
Authentication
Unknown

Security and permissions

  • When you run the server locally, it runs with your user permissions.
  • Authentication type: Unknown.

Repository data

Stars
1,422
Last push
Oct 28, 2026
License
MIT
Archived
No

Other MySQL MCP servers

Compare servers
  • Open-source desktop SQL workspace with an MCP server for AI coding agents.

    • BigQuery
    • ClickHouse
    • DuckDB
    Updated
  • Instant REST and MCP APIs over PostgreSQL or MySQL without writing a backend

    • MySQL
    • PostgreSQL
    Updated
  • Git-versioned codebase index that coding agents read before acting.

    • MySQL
    • PostgreSQL
    Updated
  • SQL query engine for files, databases, and apps, with MCP access for LLMs.

    • MySQL
    • Notion
    • SQLite
    Updated
  • Keyboard-first SQL client for PostgreSQL, MySQL, SQL Server, SQLite and ClickHouse.

    • ClickHouse
    • MySQL
    • PostgreSQL
    Updated
  • Open-source industrial IoT runtime with an MCP tool gateway for AI agents

    • MySQL
    • PostgreSQL
    • Redis
    Updated

FAQ

What license does mysql_mcp_server use?
MIT
Does mysql_mcp_server run locally or remotely?
It runs locally.
Is mysql_mcp_server an official server?
It is listed as a community server.

Comments

No comments yet.

Embed a listing badge

Featured on AI Agents Marketplace
<a href="https://aiagentsmarketplace.dev/mcp/mysql-mcp-server-2"><img src="https://aiagentsmarketplace.dev/badges/featured.svg" alt="Featured on AI Agents Marketplace" width="262" height="36"></a>
See badge options