local-mysql
Provides read-only access to a MySQL database, allowing queries, listing databases, tables, and describing table schemas.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@local-mysqllist tables in the product_db database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Local MySQL MCP Server
This is a small read-only MCP server for a MySQL database running on your machine.
1. Install dependencies
cd C:\Users\ADMIN\Documents\1st\mysql-mcp
npm.cmd installRelated MCP server: MySQL MCP Server
2. Create a restricted MySQL user
Run this in MySQL, replacing the database name and password:
CREATE USER 'mcp_reader'@'localhost' IDENTIFIED BY 'strong_password_here';
GRANT SELECT, SHOW VIEW ON your_database.* TO 'mcp_reader'@'localhost';
FLUSH PRIVILEGES;Avoid using root for MCP access.
3. Configure your MCP client
Use this server command in your MCP client configuration:
{
"mcpServers": {
"local-mysql": {
"command": "node",
"args": [
"C:\\Users\\ADMIN\\Documents\\1st\\mysql-mcp\\src\\index.js"
],
"env": {
"MYSQL_HOST": "127.0.0.1",
"MYSQL_PORT": "3306",
"MYSQL_USER": "mcp_reader",
"MYSQL_PASSWORD": "strong_password_here",
"MYSQL_DATABASE": "your_database",
"MYSQL_MAX_ROWS": "200"
}
}
}
}Tools
query: runs one read-only SQL statement.list_databases: lists databases visible to the MySQL user.list_tables: lists tables in the configured database or a named database.describe_table: shows column metadata for a table.
Current database snapshot
The configured product_db database currently includes these tables:
categoriescustomersordersproductssuppliers
Customer chart
A customer order-count pie chart is available at:
..\customers_pie_chart.svgThe chart shows 5 customers with 1 order each, so every customer represents 20% of the total order count.
Safety
The server rejects non-read-only statements and should still be paired with a restricted MySQL user. Database permissions are the final safety boundary.
Smoke test
This verifies that the MCP server starts and exposes tools. It does not query MySQL.
cd C:\Users\ADMIN\Documents\1st\mysql-mcp
npm.cmd run smokeMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides secure, read-only access to MariaDB/MySQL databases, allowing users to list databases, explore table schemas, and execute SQL queries with built-in security measures.Last updated4884MIT
- Alicense-qualityDmaintenanceProvides read-only access to MySQL databases with automatic schema discovery and secure query execution. Enables users to explore database structure and execute SELECT queries through natural language interactions.Last updatedMIT
- Flicense-qualityDmaintenanceEnables safe interaction with MySQL databases through SELECT queries, table structure inspection, and database schema exploration. Provides read-only access to query data and examine database metadata.Last updated1
- AlicenseAqualityCmaintenanceEnables read-only MySQL database connectivity, allowing execution of SELECT queries, listing tables, and describing table structures via natural language.Last updated333MIT
Related MCP Connectors
Explore your Messages SQLite database to browse tables and inspect schemas with ease. Run flexible…
Read-only MCP server for Muovi, Argentina's trust-first local services marketplace (6 tools).
Run SOQL queries to explore and retrieve Salesforce data. Inspect records, fields, and relationshi…
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/myexperimenthub/Day12'
If you have feedback or need assistance with the MCP directory API, please join our Discord server