Provides tools for querying MySQL databases with read-only capabilities, allowing access to table data, schema information, and database structure through SQL queries (SELECT, SHOW, EXPLAIN, DESCRIBE).
MySQL MCP Server
This project implements an MCP (Model Context Protocol) server for working with MySQL database.
Repository
This project is available on GitHub: https://github.com/vitalyDV/mysql-mcp
Clone the repository
add config to mcp.json
Environment Variables
MYSQL_HOST
- MySQL server hostMYSQL_PORT
- MySQL server portMYSQL_USER
- MySQL usernameMYSQL_PASS
- MySQL passwordMYSQL_DB
- MySQL database name
Available MCP tools
query
- execute SQL queries (only SELECT, SHOW, EXPLAIN, DESCRIBE)table-schema
- get table structurelist-tables
- get list of all tables in the database
Available MCP resources
table://{name}
- get data from the specified table (up to 100 rows)
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
An MCP server that allows working with MySQL databases by providing tools for executing read-only SQL queries, getting table schemas, and listing database tables.
Related MCP Servers
- -securityAlicense-qualityAn MCP server that integrates with MySQL databases, enabling secure read and write operations through LLM-driven interfaces with support for transaction handling and performance monitoring.Last updated -13016MIT License
- AsecurityAlicenseAqualityAn MCP server that provides read-only access to MySQL databases.Last updated -423543MIT License
- -securityFlicense-qualityA FastMCP-based server that enables interaction with MySQL databases, supporting client-server communication for querying and analyzing MySQL data.Last updated -
- -securityAlicense-qualityAn MCP server that enables connection to Microsoft SQL Server databases, providing tools for schema inspection and querying through standardized interfaces.Last updated -MIT License