Mysql Mcp Server

Mysql Mcp Server

A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases

Add to your client

Claude Code — run this in your terminal:

claude mcp add mysql --env MYSQL_HOST=YOUR_MYSQL_HOST --env MYSQL_PORT=YOUR_MYSQL_PORT --env MYSQL_USER=YOUR_MYSQL_USER --env MYSQL_PASSWORD=YOUR_MYSQL_PASSWORD --env MYSQL_DATABASE=YOUR_MYSQL_DATABASE -- uv --directory path/to/mysql_mcp_server run mysql_mcp_server
Claude Desktop and other clients: paste this into the configuration file
{
  "mcpServers": {
    "mysql": {
      "command": "uv",
      "args": [
        "--directory",
        "path/to/mysql_mcp_server",
        "run",
        "mysql_mcp_server"
      ],
      "env": {
        "MYSQL_HOST": "YOUR_MYSQL_HOST",
        "MYSQL_PORT": "YOUR_MYSQL_PORT",
        "MYSQL_USER": "YOUR_MYSQL_USER",
        "MYSQL_PASSWORD": "YOUR_MYSQL_PASSWORD",
        "MYSQL_DATABASE": "YOUR_MYSQL_DATABASE"
      }
    }
  }
}

After adding, fill in: MYSQL_HOSTMYSQL_PORTMYSQL_USERMYSQL_PASSWORDMYSQL_DATABASE

Built from the configuration example in the project's README. The buttons open the app on your computer, which asks you to confirm before anything is added.

Install

pip install mysql-mcp-server
claude mcp add --transport stdio designcomputer-mysql_mcp_server uvx mysql_mcp_server
pip install -r requirements.txt

Copied from the project's README. Read what it does before you run it.

README scanSafe

Nothing risky found in the commands its README asks you to run.

  • Needs an API key or tokenautohand mcp add mysql env MYSQL_HOST=localhost MYSQL_PORT=3306 MYSQL_USER=your_username MYSQL_PASSWORD=your_password MYSQL_DATABASE=your_database uvx mysql_mcp

We scan the README only, not the code. A clean result is not proof of safety. How we scan

Appears in

Alternatives to Mysql Mcp Server

Listings of the same kind that share the most topics, most-starred first.

Xerj

Xerj

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory a

UnsafeS
Prest

Prest

Instant REST and MCP APIs for PostgreSQL and MySQL, on existing or new databases. CRUD, custom SQL routes, auth and ACL without writing a backend. Low-code, ⚡ realtime, high-performance. Native MySQL

SafeS
Dbhub

Dbhub

Token conscious database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite.

SafeS
Erd Editor

Erd Editor

Design database schemas as ERDs in your browser, VS Code, JetBrains IDEs or Obsidian. Import SQL, DBML and GraphQL, export DDL and code, and let coding agents edit live over MCP.

SafeA
Data Api Builder

Data Api Builder

Data API builder provides modern REST, GraphQL endpoints and MCP tools to your Azure Databases and on-prem stores.

SafeA
Apisql Mcp

Apisql Mcp

一个 MCP Server 连接你的所有数据库,数据库 MCP Server 的瑞士军刀。One MCP Server for all your databases. The Swiss Army Knife of Database MCP Servers.

SafeC
View on GitHub

Repository

Stars
1,417
Forks
261
Last updated
Oct 28, 2026
License
MIT
Language
Python
Created
Dec 3, 2024
Open issues
5
Quality score
A 77/100

designcomputer/mysql_mcp_server

Read from GitHub daily.

See alternatives

Made by

No owner listed.

Sign in to claim this tool.