# MySQL MCP Server Spring Boot server implementing Model Context Protocol (MCP) for MySQL database operations. ## Features - Execute SELECT queries -
Connect MySQL to Claude, Cursor or any other MCP client and it stops being a tab you switch to. # MySQL MCP Server Spring Boot server implementing Model Context Protocol (MCP) for MySQL database operations. ## Features - Execute SELECT queries - List all tables in database - Get table schema information ## API ### Tools - query -. The mysql mcp server is what makes that connection.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
query — Execute a SELECT SQL query and return resultsInput — sql (string)Returns — List of query results (truncated after 4000 characters)Note — Only SELECT queries are allowedlistAllTablesName — List all table names in the databasegetTableSchema — Get schema information for a specific tableTools — The Tools tool exposed by this serverConfiguration is passed through the environment: SPRING_DATASOURCE_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MySQL's toolset — query, Input, Returns and 4 more — is a fair guide to whether it matches your workflow. It is maintained by kioyong; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against MySQL's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| query | Execute a SELECT SQL query and return results |
| Input | sql (string) |
| Returns | List of query results (truncated after 4000 characters) |
| Note | Only SELECT queries are allowed |
| listAllTablesName | List all table names in the database |
| getTableSchema | Get schema information for a specific table |
| Tools | The Tools tool exposed by this server. |
| Variable | Description | Required |
|---|---|---|
| SPRING_DATASOURCE_URL | Endpoint or connection string the server talks to. | Yes |
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.