marcelo-ochoa avatar

Mysql

marcelo-ochoa/servers

Gives Claude direct access to your MySQL databases through the Model Context Protocol. You can query tables, inspect schemas, and retrieve data without writing custom integration code. This is a community server from Marcelo Ochoa's collection, so you'll want to review the implementation for your security requirements before pointing it at production databases. Useful when you need to let Claude analyze data patterns, debug queries, or generate reports from your MySQL instances. Connects over stdio, so configuration happens in your MCP client settings.

tools
4
auth
Secret needed
transport
STDIO
env vars
2
last updated
Mar 11, 2026

Tools

4 tools

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

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)

Sponsors

Configuration

MYSQL_USER

MySQL username

MYSQL_PASSWORDsecret

MySQL password

Readme

Model Context Protocol servers

This repository is a collection of reference implementations for the Model Context Protocol (MCP), as well as references to community-built servers and additional resources.

[!IMPORTANT] If you are looking for a list of MCP servers, you can browse published servers on the MCP Registry. The repository served by this README is dedicated to housing just the small number of reference servers maintained by the MCP steering group.

[!WARNING] The servers in this repository are intended as reference implementations to demonstrate MCP features and SDK usage. They are meant to serve as educational examples for developers building their own MCP servers, not as production-ready solutions. Developers should evaluate their own security requirements and implement appropriate safeguards based on their specific threat model and use case.


View the full README on GitHub

Details

Repository
github.com/marcelo-ochoa/servers
Category
Databases
Package
@marcelo-ochoa/server-mysql
Transport
STDIO
Auth
Required
Registry
MCP registry, active

More from marcelo-ochoa

Related Databases MCP servers

View all
1yawlabs avatarRedis MCP Serveryawlabs/redis-mcpRead-first Redis MCP: SCAN key explorer, keyspace/TTL/memory/slowlog stats, DBA advisor2stars
2tharanabope avatarSQL Server MCP (macOS)tharanabope/sql-mcp-mac-windowsSQL Server MCP with RAG capabilities for macOS (Docker SQL Server support)0stars
3aidancorrell avatarSpark SQLaidancorrell/spark-sql-mcp-serverQuery Spark SQL clusters via Thrift/HiveServer2. Works with Spark, EMR, Hive, Impala.0stars
4infoinlet-marketplace avatarMcp Clickhouseinfoinlet-marketplace/marketplaceRead-only ClickHouse for AI agents — analytics queries, table inspection, sizes, health.0stars
5originchaindb avatarOriginChainDBoriginchaindb/mcp-serverConnect an MCP host to an OriginChainDB tenant through four tools: SQL, vector search, full-text search, and schema discovery.0stars
6bytebase avatarDBHubbytebase/dbhubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite3.8Kstars