Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
MYSQL_HOST | No | MySQL server hostname | localhost |
MYSQL_PORT | No | MySQL server port | 3306 |
MYSQL_USER | No | MySQL username | mcp101 |
MYSQL_DATABASE | No | MySQL database name | mcpdb |
MYSQL_PASSWORD | No | MySQL password | 123qwe |
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 |
---|---|
run_sql_query | 执行只读 SQL 查询(仅限 SELECT 语句) |
create_table | 在 MySQL 数据库中创建新表 |
insert_data | 向 MySQL 数据库表插入数据 |
update_data | 更新 MySQL 数据库表中的数据 |
delete_data | 从 MySQL 数据库表中删除数据 |
execute_sql | 执行任意非 SELECT 的 SQL 语句(如 ALTER TABLE、DROP 等) |