MySQL MCP Server
@kaulvimal
关于 MySQL MCP Server
MCP Server for MySQL
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MySQL MCP Server?
MySQL MCP Server is a read-only Model Context Protocol (MCP) server for interacting with MySQL and PostgreSQL databases. It allows MCP-compatible clients to inspect schemas, retrieve metadata, and execute read-only SQL queries safely.
How to use MySQL MCP Server?
Install Node.js and npm, clone the repository, run npm install and npm run build. Configure environment variables (MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_PORT, PG_HOST, PG_USER, PG_PASSWORD, PG_PORT, PG_DATABASE) in a shell script and make it executable. Integrate with MCP clients like Cursor by pointing to the script.
Key features of MySQL MCP Server
- Read-only SQL query execution.
- Schema inspection and metadata retrieval.
- Visualize schema in JSON, DOT, Mermaid.
- Compare and detect schema changes.
- Discover foreign key relationships.
- Retrieve database performance metrics.
Use cases of MySQL MCP Server
- Database schema exploration for documentation.
- Running read-only analytics queries via AI assistants.
- Comparing two database schemas for migration planning.
- Visualizing table relationships for ER diagrams.
- Monitoring global database performance metrics.
FAQ from MySQL MCP Server
What databases does it support?
MySQL and PostgreSQL.
Is it safe to use in production?
Yes, all operations are read-only to prevent data modification.
What are the prerequisites?
Node.js, npm, and access to a MySQL or PostgreSQL database.
How do I integrate it with Cursor?
Create a shell script with environment variables and configure Cursor’s mcpServers to point to that script.
Does it support query history?
No, the get_query_history tool is a placeholder and not implemented. The server does not provide query-specific history.
数据库 分类下的更多 MCP 服务器
Snowflake MCP Server
isaacwasserman
Redis
modelcontextprotocolModel Context Protocol Servers
MySQL MCP Server
designcomputerA Model Context Protocol (MCP) server that enables secure interaction with MySQL databases

Sqlite
modelcontextprotocolModel Context Protocol Servers
MCP Server for MySQL based on NodeJS
benborlaA Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
评论