Install MySQL in Claude Code
claude mcp add gistrec-mysql -e MYSQL_USER=... -e MYSQL_DB=... -- npx -y mcp-mysql-client{
"mcpServers": {
"gistrec-mysql": {
"command": "npx",
"args": [
"-y",
"mcp-mysql-client"
],
"env": {
"MYSQL_USER": "...",
"MYSQL_DB": "..."
}
}
}
}Replace each ... with your own value.
Frequently asked questions
What does the MySQL MCP server do?
MCP server for one MySQL database: schema, read-only queries and guarded writes.
Is the MySQL MCP server free?
Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.
Does MySQL run locally or remotely?
Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.
How do I add MySQL to Claude Code?
Run: claude mcp add gistrec-mysql -e MYSQL_USER=... -e MYSQL_DB=... -- npx -y mcp-mysql-client
More databases MCP servers
View allFlowcore Platform
flowcore-io/mcp-flowcore-platform
Interact with Flowcore to perform actions, ingest data, and analyze and cross-reference data in your own or public data cores.
Mysql
neverinfamous/mysql-mcp
Enterprise-grade MySQL MCP Server with OAuth 2.0, 106 tools, and Docker deployment
Memvid
ferrants/memvid-mcp-server
Local server for memvid storage and semantic search.
Reunion
Hug0x0/mcp-reunion
Open data for La Réunion (French overseas region) from data.gouv.fr and the regional portal: economy, demographics, transport, health, education and more.
SchemaFlow
CryptoRadi/schemaflow-mcp-server
Real-time PostgreSQL & Supabase database schema access for AI-IDEs via Model Context Protocol. Provides live database context through secure SSE connections with three powerful tools: get_schema, analyze_database, and check_schema_alignment. SchemaFlow
Qlik
jwaxman19/qlik-mcp
Query Qlik Cloud apps and sheets and extract data from visualizations, with authentication and rate-limiting support.