MySQL MCP Server
by xiangma9712
Verified
Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
MYSQL_HOST | Yes | Hostname to access MySQL server. Use host.docker.internal to access host services from Docker container. | host.docker.internal |
MYSQL_PORT | Yes | MySQL server port | 3306 |
MYSQL_USER | Yes | MySQL username | |
MYSQL_PASSWORD | Yes | MySQL password |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
query | 読み取り専用のSQLクエリを実行します。 |
test_execute | SQLが実行可能か確認し、最後にロールバックします。 |
list_tables | データベース内のテーブル一覧を取得します。 |
describe_table | テーブルのカラム情報を取得します。 |