How do I configure mcp-mysql-server?
Create a `config.ini` file in the same directory (or specify its path with `--config`) containing `[mysql]` section with `host`, `user`, `password`, `database`, and optionally `port` (defaults to 3306).
@tonycai
基本情報
MySQL Database Integration using Python script with configurable access controls and schema inspection, using stdio mode to suitable local deployment.
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mcp-mysql-server-tonycai": {
"command": "python",
"args": [
"mcp-mysql-server.py",
"--config",
"config.ini"
]
}
}
}ツール一覧はまだありません
この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
mcp-mysql-server is a Python script that provides a command-line interface for interacting with a local MySQL database via standard input/output (stdio) using FastMCP. It allows querying, inspecting schema, and performing data operations on a MySQL database, designed for local development environments.
Install Python 3.x and a local MySQL server. Install dependencies with pip install -r requirements.txt. Create a config.ini file with MySQL connection parameters (host, user, password, database; port optional). Run the script using python mcp-mysql-server.py --config config.ini. The script exposes tools such as test_connection, list_tables, read_table, write_table, get_table_schema, and execute_sql. Docker Compose support is also available.
Create a `config.ini` file in the same directory (or specify its path with `--config`) containing `[mysql]` section with `host`, `user`, `password`, `database`, and optionally `port` (defaults to 3306).
It exposes six tools: `test_connection`, `list_tables`, `read_table`, `write_table`, `get_table_schema`, and `execute_sql`. Each performs a specific database operation.
Yes. Use `docker-compose up -d` to start a MySQL container with sample data and the MCP MySQL Server container. A special configuration file (`config.docker.ini`) is used for Docker.
Python 3.x, a local MySQL server instance, and the Python libraries listed in `requirements.txt` (installed via `pip install -r requirements.txt`).
Run `cp mcp-mysql-server.py mcp_mysql_server.py && python -m unittest tests.py` locally. For Docker, use `docker-compose -f docker-compose.test.yml up --build`. Tests use mocking and do not require a real database.

Oracle MCP server with no run-sql tool: It generates tools for each of the PL/SQL procedures, tables and approved SQL you choose. The server doesn't expose a SQL prompt, and can't reveal how it's connected to Oracle.
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Local MCP server for DuckDB and MotherDuck
MCP server for interacting with Neon Management API and databases

nuzur is a model-first database platform for MySQL and PostgreSQL. The MCP server lets any AI assistant or agent (Claude, Cursor, Gemini, or anything else that speaks MCP) design your schema, query your data, generate mi
コメント