CCM
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Claude Code Marketplaces

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Skill index
  • MCP index
  • Marketplace index
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by mertbuilds.com

Independent project, not affiliated with Anthropic
musaddiq-dev avatar

MySQL MCP Server

musaddiq-dev/mysql-mcp-server
4 toolsauthSTDIOregistry active
Summary

Connects Claude to MySQL databases over a read-only connection by default, exposing tools to list tables, describe schemas, run SELECT queries with row limits, and fetch execution plans. The safety model blocks common write patterns and caps results, but optional write and DDL tools are available if you configure elevated privileges and manual approval. Built for schema exploration and safe querying during development. You configure it with standard MySQL connection parameters and a read-only user, then call tools like mysql_describe_table or mysql_execute_read_query from any MCP client. Requires Python 3.11+ and MySQL 5.7 or newer. Install with uvx mdev-mysql-mcp-server and pass credentials through environment variables in your client config.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →

Tools

Public tool metadata for what this MCP can expose to an agent.

4 tools
list_databasesList all accessible databases on the MySQL server

List all accessible databases on the MySQL server

No parameter schema in public metadata yet.

list_tablesList all tables in a specified database1 params

List all tables in a specified database

Parameters* required
databasestring
Database name (optional, uses default if not specified)
describe_tableShow the schema for a specific table2 params

Show the schema for a specific table

Parameters* required
databasestring
Database name (optional, uses default if not specified)
tablestring
Table name
execute_queryExecute a read-only SQL query2 params

Execute a read-only SQL query

Parameters* required
databasestring
Database name (optional, uses default if not specified)
querystring
SQL query (only SELECT, SHOW, DESCRIBE, and EXPLAIN statements are allowed)

MySQL MCP Server

A Python Model Context Protocol (MCP) server for inspecting and querying MySQL databases from MCP-compatible clients. It provides table discovery, schema inspection, read query execution, DDL lookup, query explanation, and optional write/DDL tools for controlled database administration workflows.

Features

  • List tables and describe table schemas
  • Execute SELECT queries with safety checks
  • Retrieve SHOW CREATE TABLE output
  • Explain query execution plans
  • Summarize tables and row counts
  • Optional write and DDL tools for users who intentionally run with elevated database privileges

Safety Model

mysql_execute_read_query only accepts a single statement beginning with SELECT, rejects common modifying SQL keywords and risky file-read/write forms, and caps returned rows by MYSQL_READ_QUERY_LIMIT. This is a guardrail, not a substitute for database permissions. Use a dedicated read-only MySQL user for safe exploration. The write and DDL tools can modify or destroy data if the configured database user is allowed to do so; keep them on manual approval in your MCP client.

Requirements

  • Python 3.11+
  • MySQL 5.7+ or MySQL 8.0+
  • MCP-compatible client such as Claude Desktop, Cursor, VS Code, or another MCP host

Installation

When published to PyPI, install or run the server like a standard Python MCP package:

uvx mdev-mysql-mcp-server

For local development from source:

git clone https://github.com/musaddiq-dev/mysql-mcp-server.git
cd mysql-mcp-server
python -m venv .venv
source .venv/bin/activate
pip install -e .

Configuration

Copy the example environment file and update it with your database connection details.

cp .env.example .env
VariableDescriptionRequiredDefault
MYSQL_HOSTMySQL hostNolocalhost
MYSQL_PORTMySQL portNo3306
MYSQL_USERMySQL usernameNoroot
MYSQL_PASSWORDMySQL passwordNoEmpty
MYSQL_DATABASEMySQL database nameYesEmpty
MYSQL_POOL_SIZEConnection pool sizeNo5
LOG_LEVELPython logging levelNoINFO
MYSQL_READ_QUERY_LIMITMaximum rows returned by read queriesNo1000

Example read-only user:

CREATE USER 'mcp_readonly'@'localhost' IDENTIFIED BY 'change-me';
GRANT SELECT ON your_database.* TO 'mcp_readonly'@'localhost';
FLUSH PRIVILEGES;

Running

mdev-mysql-mcp-server

From a local checkout before PyPI publication, run:

python -m mysql_mcp_server.server

MCP Client Configuration

For published installs, prefer uvx. MCP servers using stdio must write protocol messages only to stdout; this server writes logs to stderr through Python logging.

Claude Desktop / Cursor / Windsurf / Cline

Most MCP clients accept this mcpServers JSON shape:

{
  "mcpServers": {
    "mysql": {
      "command": "uvx",
      "args": ["mdev-mysql-mcp-server"],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "mcp_readonly",
        "MYSQL_PASSWORD": "change-me",
        "MYSQL_DATABASE": "your_database"
      }
    }
  }
}

For local development from this repository, use the installed console script path instead:

{
  "mcpServers": {
    "mysql": {
      "command": "/absolute/path/to/mysql-mcp-server/.venv/bin/mdev-mysql-mcp-server",
      "args": [],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "mcp_readonly",
        "MYSQL_PASSWORD": "change-me",
        "MYSQL_DATABASE": "your_database"
      }
    }
  }
}

Claude Code CLI

claude mcp add mysql \
  --env MYSQL_HOST=localhost \
  --env MYSQL_PORT=3306 \
  --env MYSQL_USER=mcp_readonly \
  --env MYSQL_PASSWORD=change-me \
  --env MYSQL_DATABASE=your_database \
  -- uvx mdev-mysql-mcp-server

VS Code MCP

VS Code uses the same command/args/env model in its MCP configuration:

{
  "servers": {
    "mysql": {
      "type": "stdio",
      "command": "uvx",
      "args": ["mdev-mysql-mcp-server"],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "mcp_readonly",
        "MYSQL_PASSWORD": "change-me",
        "MYSQL_DATABASE": "your_database"
      }
    }
  }
}

Tools

ToolPurposeSafety
mysql_list_tablesList tables in the configured databaseRead-only
mysql_describe_tableShow schema for a tableRead-only
mysql_execute_read_queryExecute a single bounded SELECT queryRead-only guardrail
mysql_execute_write_queryExecute a single INSERT, UPDATE, or DELETEDestructive
mysql_execute_ddlExecute a single CREATE, DROP, ALTER, or TRUNCATEDestructive
mysql_get_table_ddlReturn SHOW CREATE TABLE outputRead-only
mysql_explain_queryRun EXPLAIN for a single queryRead-only
mysql_get_database_summaryReturn table list and row countsRead-only

Smoke Check

Without a database, verify syntax with:

python -m py_compile src/mysql_mcp_server/server.py

With a configured database, start the server and use your MCP client to call list_tables.

Distribution

This server is published through the standard Python MCP distribution path:

  • PyPI package: mdev-mysql-mcp-server
  • MCP Registry name: io.github.musaddiq-dev/mysql-mcp-server
  • Runtime hint: uvx
  • Transport: stdio

The mcp-name marker at the top of this README is required for MCP Registry ownership verification. Users should prefer uvx mdev-mysql-mcp-server in local MCP client configurations.

Security Notes

  • Do not commit .env or MCP client configs containing credentials.
  • Use least-privilege database users.
  • Keep execute_write_query and execute_ddl on explicit manual approval.
  • Do not expose this server over an untrusted network without additional authentication and transport security.

License

MIT

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →

Configuration

MYSQL_HOSTdefault: localhost

MySQL host

MYSQL_PORTdefault: 3306

MySQL port

MYSQL_USERdefault: root

MySQL username

MYSQL_PASSWORDsecret

MySQL password

MYSQL_DATABASE*

MySQL database name

MYSQL_POOL_SIZEdefault: 5

MySQL connection pool size

LOG_LEVELdefault: INFO

Python logging level

MYSQL_READ_QUERY_LIMITdefault: 1000

Maximum rows returned by read queries

Categories
Databases
Registryactive
Packagemdev-mysql-mcp-server
TransportSTDIO
AuthRequired
UpdatedMay 23, 2026
View on GitHub

More from musaddiq-dev

  • PostgreSQL MCP Server
  • AWS CLI MCP Server

Related Databases MCP Servers

View all →
musaddiq-dev avatar
PostgreSQL MCP Server

musaddiq-dev/postgresql-mcp-server

Python MCP server for PostgreSQL database inspection and querying
firebase avatar
Firebase Mcp

io.github.firebase/firebase-mcp

Gives AI development tools Firebase-specific capabilities and expertise.
4.4k
crystaldba avatar
Postgres MCP Pro

crystaldba/postgres-mcp

Postgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.
2.8k
supabase avatar
Supabase

supabase-community/supabase-mcp

MCP server for interacting with the Supabase platform
2.7k
benborla avatar
MCP Server MySQL

benborla/mcp-server-mysql

Provides an MCP server to access MySQL databases via SSH tunnels with controlled read/write capabilities.
1.7k
designcomputer avatar
MySQL

designcomputer/mysql_mcp_server

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