MySQL Database Integration using Python script with configurable access controls and schema inspection, using stdio mode to suitable local deployment.
MySQL Database Integration using Python script with configurable access controls and schema inspection, using stdio mode to suitable local deployment. That is what the mcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.
A simple Python script for interacting with a local MySQL database via standard input/output (stdio), based on FastMCP.
mcp-mysql-server provides a command-line interface for querying and inspecting the schema of a local MySQL database. It is designed for ease of use in local development environments where a lightweight, script-based interaction is preferred. The script utilizes standard input and output for commands and results, making it easy to integrate with other command-line tools and workflows.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
The server publishes 10 tools. What each one is for:
test_connection — Tests the connection to the database and returns server informationlist_tables — Lists all tables in the current databaseread_table — Reads and returns all data from a specified tablewrite_table — Inserts a new row of data into a specified tableget_table_schema — Returns the schema (column definitions) for a specified tableexecute_sql — Executes a custom SQL query and returns the resultsPrerequisites — The Prerequisites tool exposed by this serverInstallation — The Installation tool exposed by this serverConfiguration — 1. Create a configuration file (e.g., config.ini) in the same directory as the script or specify the path when running the script. The configurationUsage — Run the script with the following command, specifying the path to your configuration file:Plenty of database access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. MCP's toolset — test_connection, list_tables, read_table and 7 more — is a fair guide to whether it matches your workflow. It is maintained by tonycai; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| test_connection | Tests the connection to the database and returns server information. |
| list_tables | Lists all tables in the current database. |
| read_table | Reads and returns all data from a specified table. |
| write_table | Inserts a new row of data into a specified table. |
| get_table_schema | Returns the schema (column definitions) for a specified table. |
| execute_sql | Executes a custom SQL query and returns the results. |
| Prerequisites | The Prerequisites tool exposed by this server. |
| Installation | The Installation tool exposed by this server. |
| Configuration | 1. Create a configuration file (e.g., config.ini) in the same directory as the script or specify the path when running the script. The configuration file should have the following format: |
| Usage | Run the script with the following command, specifying the path to your configuration file: |
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.