A Model Context Protocol (MCP) server that provides AI agents with direct access to MySQL databases. This server enables AI models to query, search
If you want an AI assistant working directly with Go Mysql, the go mysql mcp server is the bridge. A Model Context Protocol (MCP) server that provides AI agents with direct access to MySQL databases. This server enables AI models to query, search, and analyze MySQL database content through a set of well-defined tools.
A Model Context Protocol (MCP) server that provides AI agents with direct access to MySQL databases. This server enables AI models to query, search, and analyze MySQL database content through a set of well-defined tools.
Once connected, the assistant can call these 7 tools directly:
Prerequisites — The Prerequisites tool exposed by this serverlist_schemas — Parameters: - page (optional): Page number for pagination (default: 1) - page_size (optional): Number of items per page (default: 20, max: 100)list_tables — Parameters: - schema (required): The schema/database name - page (optional): Page number for pagination - page_size (optional): Number of items per pageget_table_structure — Parameters: - schema (required): The schema/database name - table (required): The table nameget_table_create — Parameters: - schema (required): The schema/database name - table (required): The table nameexecute_query — Parameters: - query (required): The SQL query to execute - limit (optional): Maximum rows to return (default: 100)search_table — Parameters: - schema (required): The schema/database name - table (required): The table name - search_term (required): The term to search for - limitSetup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.
The server reads 5 environment variables: MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE. Keep credentials in your client's env block or a secrets manager rather than committing them.
Database servers turn schema archaeology and ad-hoc reporting into conversation, which is why they tend to be the second or third server people install. Go Mysql sits in that group, and the shape of its toolset — Prerequisites, list_schemas, list_tables among others — tells you what it is really for. Worth comparing against the other databases servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
| Tool | What it does |
|---|---|
| Prerequisites | The Prerequisites tool exposed by this server. |
| list_schemas | Parameters: - page (optional): Page number for pagination (default: 1) - page_size (optional): Number of items per page (default: 20, max: 100) |
| list_tables | Parameters: - schema (required): The schema/database name - page (optional): Page number for pagination - page_size (optional): Number of items per page |
| get_table_structure | Parameters: - schema (required): The schema/database name - table (required): The table name |
| get_table_create | Parameters: - schema (required): The schema/database name - table (required): The table name |
| execute_query | Parameters: - query (required): The SQL query to execute - limit (optional): Maximum rows to return (default: 100) |
| search_table | Parameters: - schema (required): The schema/database name - table (required): The table name - search_term (required): The term to search for - limit (optional): Maximum rows to return (default: 100) |
| Variable | Description | Required |
|---|---|---|
| MYSQL_HOST | Endpoint or connection string the server talks to. | Optional |
| MYSQL_PORT | Configuration value read at startup. | Optional |
| MYSQL_USER | Configuration value read at startup. | Optional |
| MYSQL_PASSWORD | Configuration value read at startup. | Optional |
| MYSQL_DATABASE | Configuration value read at startup. | Optional |
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.