MCP.so
Sign In
Servers

MySQL MCP Server for Smithery (Python)

@aqaranewbiz

Overview

What is MySQL MCP Server for Smithery (Python)?

MySQL MCP Server for Smithery (Python) is a connector that lets you connect to a MySQL database directly from Smithery. It is built with Python and provides tools for listing databases, tables, describing schemas, and executing read-only SQL queries.

How to use MySQL MCP Server for Smithery (Python)?

Add the server in Smithery, then enter your MySQL credentials (host, port, user, password, optional database). Alternatively, clone the repository, install dependencies (npm install, pip install -r requirements.txt), and start with node run.js or python mcp_server.py.

Key features of MySQL MCP Server for Smithery (Python)

  • Connect to MySQL databases with configurable credentials
  • List all accessible databases
  • View all tables in a database
  • Get detailed schema information for tables
  • Execute read-only SQL queries (SELECT, SHOW, DESCRIBE, EXPLAIN)
  • Built‑in query validation blocks write operations

Use cases of MySQL MCP Server for Smithery (Python)

  • Explore the structure of a MySQL database from Smithery
  • Run read-only queries to retrieve data without risk of modification
  • Audit database schemas across multiple databases
  • Integrate database inspection into Smithery workflows

FAQ from MySQL MCP Server for Smithery (Python)

What SQL statements are allowed?

Only SELECT, SHOW, DESCRIBE, and EXPLAIN queries are permitted. INSERT, UPDATE, DELETE, DROP, and other write commands are rejected.

What are the runtime dependencies?

Python 3 with mysql-connector-python>=8.0.0 and Node.js (for the launcher script). Missing modules are auto‑installed if possible.

How do I troubleshoot connection issues?

Verify your database credentials, ensure the MySQL server is running and accessible, and check Smithery’s console log for errors.

Can I run multiple SQL statements in one query?

No. Multiple statements separated by semicolons are not allowed for security reasons.

Does the server require authentication?

Yes, you must provide a valid MySQL username and password. The server does not implement additional authentication layers.

More from Databases