MySQL MCP Server
Connects AI agents to a MySQL database, exposing tools to discover databases and tables, inspect schemas, run safe SELECT queries and custom SQL, export tables/queries to CSV, manage schema (DDL), indexes, constraints, transactions and seed data, with permission/category-based access control and protected HTTP transport.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MySQL MCP Server show me the schema of the users table"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MySQL MCP Server
A production-ready Model Context Protocol (MCP) server for MySQL database integration with AI agents
Last Updated: 2026-10-26 16:39:47
Installation · Quick Start · Configuration · Remote Access · Permissions · Tools · Documentation
TL;DR - Quick Setup
Run directly with npx:
npx @berthojoris/mcp-mysql-server mysql://user:pass@localhost:3306/mydb "list,read,utility"Add to your AI agent config (.mcp.json, .cursor/mcp.json, etc.):
{
"mcpServers": {
"mysql": {
"command": "npx",
"type": "stdio",
"args": [
"-y",
"@berthojoris/mcp-mysql-server",
"mysql://user:pass@localhost:3306/mydb",
"list,read,utility"
]
}
}
}For dual-layer and environment-variable configuration, see DOCUMENTATIONS.md → Configuration. To connect remote clients such as ChatGPT over HTTP, see Remote Access.
Related MCP server: MySQL MCP Server
Installation
Option 1: Quick Start with npx (Recommended)
No installation required - run directly:
npx @berthojoris/mcp-mysql-server mysql://user:pass@localhost:3306/db "list,read,utility"Option 2: Global Installation
npm install -g @berthojoris/mcp-mysql-server
mcp-mysql mysql://user:pass@localhost:3306/db "list,read,utility"Credentials with special characters: if your username or password contains characters that have a special meaning in URLs (
@,:,/,?,#,%,&, etc.), URL-encode them before putting them in the connection string. For example, the passwordp@ss:w0rdbecomesp%40ss%3Aw0rd, givingmysql://user:p%40ss%3Aw0rd@host:3306/db. The server decodes both the username and password before connecting.
Quick Start
1. Set Up Environment (Optional)
Create .env file for local development:
DB_HOST=localhost
DB_PORT=3306
DB_USER=root
DB_PASSWORD=yourpassword
DB_NAME=yourdatabase
MCP_CONFIG=list,read,utility2. Build Project (If Cloned Locally)
npm install
npm run build3. Configure Your AI Agent
See AI Agent Configuration section below.
4. Restart Your AI Agent
Completely restart your AI agent application to load the MCP server.
5. Test It!
Try asking your AI:
"What databases are available?" "Show me all tables in my database" "What's the structure of the users table?" "Show me the first 5 records from users"
AI Agent Configuration
Standard JSON Configuration
Most AI agents use a similar JSON configuration format (the file location varies by tool).
The examples below use the default stdio transport, where the AI agent starts the server itself. Remote clients connect over HTTP instead; see Remote Access.
Universal Configuration Template:
Option 1: Single-Layer (Permissions Only) - Simple Setup
{
"mcpServers": {
"mysql": {
"command": "npx",
"type": "stdio",
"args": [
"-y",
"@berthojoris/mcp-mysql-server",
"mysql://user:password@localhost:3306/database",
"list,read,utility,create,update,ddl"
]
}
}
}Option 2: Dual-Layer (Permissions + Categories) - Recommended for Fine Control
{
"mcpServers": {
"mysql": {
"command": "npx",
"type": "stdio",
"args": [
"-y",
"@berthojoris/mcp-mysql-server",
"mysql://user:password@localhost:3306/database_name_here",
"list,read,utility,create,update,ddl,transaction",
"database_discovery,crud_operations,custom_queries,schema_management,index_management,constraint_management,table_maintenance,query_optimization,analysis,seed_operations"
]
}
}
}💡 Tip: The dual-layer approach provides granular control. The 4th argument (permissions) controls broad access levels, while the 5th argument (categories) fine-tunes which specific tools are available.
Environment Variables Configuration
Alternative approach using environment variables instead of connection string:
Option 1: Permissions Only (Simple)
{
"mcpServers": {
"mysql": {
"command": "npx",
"type": "stdio",
"args": ["-y", "@berthojoris/mcp-mysql-server"],
"env": {
"DB_HOST": "localhost",
"DB_PORT": "3306",
"DB_USER": "root",
"DB_PASSWORD": "your_password",
"DB_NAME": "your_database",
"MCP_PERMISSIONS": "list,read,utility,create,update,delete"
}
}
}
}Option 2: Permissions + Categories (Recommended)
{
"mcpServers": {
"mysql": {
"command": "npx",
"type": "stdio",
"args": ["-y", "@berthojoris/mcp-mysql-server"],
"env": {
"DB_HOST": "localhost",
"DB_PORT": "3306",
"DB_USER": "root",
"DB_PASSWORD": "your_password",
"DB_NAME": "your_database",
"MCP_PERMISSIONS": "list,read,utility,create,update,delete",
"MCP_CATEGORIES": "database_discovery,custom_queries,analysis"
}
}
}
}More configuration details are in DOCUMENTATIONS.md → Configuration.
Cursor Compatibility Bridge
If a Cursor MCP wrapper can call tools but cannot send arguments, use the no-argument cursor_execute_request bridge. Create .cursor/mysql-mcp-request.json in the workspace, then call cursor_execute_request:
{
"tool": "execute_ddl",
"arguments": {
"query": "DROP TABLE IF EXISTS spark_processes;"
}
}For direct SQL, the bridge can infer the right SQL tool:
{
"query": "DROP TABLE IF EXISTS spark_processes;",
"mode": "auto"
}Set MYSQL_MCP_CURSOR_REQUEST_FILE to override the request file path.
AI Agent Tool Discovery
For Codex, Claude Code CLI, Cursor, Droid CLI, and other MCP agents, call list_all_tools first. It returns the live runtime catalog, enabled/disabled status, active permission/category profile, and recommended workflows for schema exploration, safe SELECT queries, CSV exports, transactions, and data changes.
Use export_table_to_csv for table-based exports and export_query_to_csv for SELECT query exports.
Remote Access (ChatGPT & other remote MCP clients)
stdio stays the default. For remote clients such as ChatGPT connectors / developer mode, you can enable the Streamable HTTP transport with a flag or an environment variable, the same way you set permissions. Remove the flag, or set MCP_TRANSPORT=stdio, to turn it off again.
# Read-only MySQL account + bearer token, bound to localhost
export MCP_HTTP_AUTH=token
export MCP_HTTP_AUTH_TOKENS=$(openssl rand -hex 32) # give this token to your clients
npx -y @berthojoris/mcp-mysql-server mysql://mcp_reader:pass@localhost:3306/app "list,read,utility" --transport=http --port=3000Endpoint:
http://127.0.0.1:3000/mcp, plusGET /health. Publish it over HTTPS with a reverse proxy or tunnel, and setMCP_HTTP_PUBLIC_URL.Auth:
MCP_HTTP_AUTH=token(bearer tokens) oroauth(OAuth 2.1 JWT validation against your authorization server, with RFC 9728 metadata, as needed by ChatGPT).noneonly works on loopback.Isolation:
Host/Originchecks (DNS-rebinding protection). Each session is bound to its identity, and each transaction to its session. A session's open transactions are rolled back when it closes or expires.Startup checks: invalid or unsafe HTTP settings stop the server with an error.
MCP_HTTP_*settings are ignored over stdio.Tool annotations: every tool reports
readOnlyHintanddestructiveHint.
Protection defaults
Protections are on by default in HTTP mode and off by default over stdio, so existing stdio setups behave as before. Every value can be overridden with an environment variable on either transport.
Variable | stdio default | HTTP default | What it does |
|
|
| Cancels longer statements on the MySQL server with |
|
|
| Tool calls per client per minute. The client is the auth identity, or the IP when there is none |
|
|
| Maximum result size. Row arrays are truncated to fit; other oversized results return an error |
|
|
|
|
|
|
|
|
HTTP settings
Variable / flag | Default | What it does |
|
| Turns the HTTP transport on or off |
|
| Bind address |
|
| Port |
|
| Endpoint path |
| – | Public HTTPS base URL. Required for |
|
|
|
| – | Comma-separated bearer tokens, at least 32 characters each |
| – / resource URL / discovered / – | OAuth 2.1 token validation |
| loopback names when bound to loopback |
|
| loopback origins when bound to loopback | Browser |
|
| Take the client IP from |
|
| Allow |
|
| Maximum concurrent sessions ( |
|
| Idle sessions close after this time, and their transactions roll back ( |
|
| Maximum request body size ( |
In HTTP mode the server runs as a standalone service, so put the settings in .env (or your process manager) instead of an MCP client's command config:
DB_HOST=localhost
DB_USER=mcp_reader
DB_PASSWORD=pass
DB_NAME=app
MCP_PERMISSIONS=list,read,utility
MCP_TRANSPORT=http
MCP_HTTP_PORT=3000
MCP_HTTP_AUTH=token
MCP_HTTP_AUTH_TOKENS=<64-hex-token>
MCP_QUERY_TIMEOUT_MS=15000
MCP_AUDIT_LOG=logs/mcp-audit.logFrom the directory that holds .env, start it with node dist/mcp-server.js (from a clone) or the npx command above (a connection string argument overrides the DB_* values). Then point clients that support remote MCP servers at the URL. For example, in Claude Code's .mcp.json:
{
"mcpServers": {
"mysql-remote": {
"type": "http",
"url": "http://127.0.0.1:3000/mcp",
"headers": { "Authorization": "Bearer <64-hex-token>" }
}
}
}Full details (OAuth setup, sessions, read-only user SQL) are in DOCUMENTATIONS.md → Remote Access.
Permission System
Control database access with a dual-layer filtering system that provides both broad and fine-grained control:
Layer 1 (Permissions): Broad operation-level control using legacy categories
Layer 2 (Categories): Optional fine-grained tool-level filtering using documentation categories
Filtering Logic: Tool enabled = (Has Permission) AND (Has Category OR No categories specified)
Permissions
Permission | Operations | Use Case |
| List databases, tables, schemas | Database exploration |
| SELECT queries, read data | Analytics, reporting |
| INSERT new records | Data entry |
| UPDATE existing records | Data maintenance |
| DELETE records | Data cleanup |
| Execute custom INSERT/UPDATE SQL (DELETE requires | Complex write operations |
| CREATE/ALTER/DROP tables; optimize, repair, and flush tables | Schema management |
| Stored procedures (CREATE/DROP/EXECUTE) | Procedure management |
| BEGIN, COMMIT, ROLLBACK | ACID operations |
| Connection testing, diagnostics | Troubleshooting |
Security changes in v1.46.0 (review before upgrading):
optimize_table,repair_table,flush_table, andoptimize_fulltextnow requireddlinstead ofutility, so the read-only default no longer includes them.flush_tableis limited to the connected database and no longer acceptswith_read_lock.run_select_querydrops invalid optimizer hint values and validates the query again after hints are applied.System schema names are detected with whitespace around the dot (e.g.
mysql . user).
Changes in v1.44.0 (review before upgrading):
Read-only by default: with no permissions and no categories, the server now enables only
list,read,utility(previously every tool). To keep full access, passlist,read,create,update,delete,execute,ddl,utility,transaction,procedure.No implicit
mysqlschema: without a database in the connection string orDB_NAME, database-scoped tools report "No database specified" instead of using themysqlsystem schema.Query cache off by default: opt in with
CACHE_ENABLED=true. Any write and every transaction commit now clears the cache.SQL validation:
#,;, and--inside string values (e.g.'#fff') are no longer rejected.WITH(CTE) queries are supported and, like derived tables, needexecutein read queries.
Security changes in v1.43.4:
EXPLAIN ANALYZEruns the statement it wraps (MySQL 8.0.18+), so it now requires that statement's permission:deletefor DELETE,updateorexecutefor UPDATE,readfor SELECT. Plan-onlyEXPLAINstill needs justlistorread.
Security changes in v1.43.3:
CSV exports require both
utilityandread; enable theutilitiescategory when filtering categories.SQL within a transaction requires the corresponding operation permission.
transactionalone does not permit reads or writes.execute_write_queryaccepts only INSERT/UPDATE/DELETE. DDL requires enabled DDL tools.Disabled tools cannot be called directly or through the Cursor bridge. The bridge requires
utilityand an enabled destination tool.executedoes not bypass mandatory SQL safety restrictions, including file access and account/privilege changes.
Report suspected security issues privately via Private Vulnerability Reporting; see SECURITY.md for the policy.
Filtering rules and per-permission details are documented in DOCUMENTATIONS.md → Permission System.
Documentation Categories (Recommended)
Use documentation categories to fine-tune which tools are exposed (Layer 2):
Category List | Use Case | List Tools |
| Explore databases, tables, and schema structure |
|
| Create, read, update, delete operations on data |
|
| High-performance batch processing operations |
|
| FK-aware relational dummy data seeding |
|
| Execute custom SQL queries and advanced operations |
|
| Manage database schema, tables, and structure |
|
| Database utilities, diagnostics, and helper functions |
|
| Handle ACID transactions and rollback operations |
|
| Create, execute, and manage stored procedures |
|
| Create and manage database views |
|
| Create and manage database triggers |
|
| Optimize performance with index and fulltext management |
|
| Manage data integrity constraints |
|
| Table optimization, repair, and maintenance |
|
| Analyze and optimize SQL queries |
|
| Data analysis, schema discovery, and reporting tools |
|
database_discovery,crud_operations,bulk_operations,seed_operations,custom_queries,schema_management,utilities,transaction_management,stored_procedures,views_management,triggers_management,index_management,constraint_management,table_maintenance,query_optimization,analysisTool descriptions per category are in DOCUMENTATIONS.md → Tool Categories.
Available Tools
The server exposes 88 tools organized into categories (CRUD, seed, schema, discovery, and utilities).
Complete list of tools: DOCUMENTATIONS.md → Tool Categories
Every tool carries MCP annotations (
readOnlyHint,destructiveHint,idempotentHint); see DOCUMENTATIONS.md → Tool annotations
Detailed Documentation
For comprehensive documentation, see DOCUMENTATIONS.md:
Remote Access - Streamable HTTP transport, bearer/OAuth authentication, sessions, protection settings, audit log
DDL Operations - Create, alter, and drop tables
Data Export Tools - Export data to CSV format
Relational Data Seeder - Plan, preview, execute, validate, infer rules, and template FK-aware dummy data
Full-Text Search - Create and search FULLTEXT indexes with multiple search modes
Transaction Management - ACID transactions
Stored Procedures - Create and execute with IN/OUT/INOUT parameters
Views & Triggers - Manage database views and triggers
Index & Constraint Management - Optimize performance and enforce data integrity
Table Maintenance - Analyze, optimize, check, and repair tables
Query Logging - See all SQL queries executed automatically
Security Features - Built-in security and best practices
Bulk Operations - High-performance batch processing
Troubleshooting - Common issues and solutions
MySQL MCP vs Manual Database Access
This MySQL MCP is a powerful intermediary layer between AI assistants and MySQL databases.
For full feature coverage and usage examples, see DOCUMENTATIONS.md.
License
MIT License - see LICENSE file for details.
Made with care for the AI development community
Enabling AI agents to interact with MySQL databases safely and efficiently
Available Tools
49 toolsanalyze_indexCIdempotent
Analyzes a table to update index statistics.
Inputs: table_name (required), database.
analyze_queryARead-onlyIdempotent
🔍 Analyzes a SQL query using EXPLAIN and provides optimization suggestions: missing indexes, inefficient operations, cost estimates. Returns actionable recommendations. Use before running expensive queries.
Inputs: query (required).
analyze_tableBIdempotent
Analyzes a table to update index statistics for the query optimizer.
Inputs: table_name (required), database.
check_tableCRead-onlyIdempotent
Checks a table for errors.
Inputs: table_name (required), database, check_type.
cursor_execute_requestADestructive
Cursor compatibility bridge for clients that can call MCP tools but cannot send arguments. Requires utility permission and an enabled destination tool. Reads .cursor/mysql-mcp-request.json (or MYSQL_MCP_CURSOR_REQUEST_FILE) and dispatches to the requested MySQL MCP tool. The request file supports {"tool":"execute_ddl","arguments":{"query":"DROP TABLE IF EXISTS t;"}} or direct SQL with {"query":"...","mode":"auto"}.
Inputs: no named parameters.
describe_connectionARead-onlyIdempotent
Returns current database connection details: host, database name, user, port, and connection status. Use to verify which database you're connected to.
Inputs: no named parameters.
export_query_to_csvBRead-onlyIdempotent
📄 Executes a SELECT query and exports results to CSV format. Requires both utility and read permissions. Supports complex queries with JOINs and aggregations.
Inputs: query (required), params, include_headers.
export_table_to_csvBRead-onlyIdempotent
📄 Exports table data to CSV format with filtering, pagination, and sorting. Requires both utility and read permissions.
Inputs: table_name (required), filters, sorting, pagination, +1 more.
find_tables_by_keywordARead-onlyIdempotent
🔎 Schema discovery: finds candidate tables for a concept or keyword by searching table names, column names, TABLE_COMMENT, and COLUMN_COMMENT metadata. Use when users ask 'which table stores X?' before reading sample data.
Inputs: keyword (required), limit, database, search_in.
fulltext_searchBRead-onlyIdempotent
Performs full-text search on a table using MATCH AGAINST clause. Supports natural language, boolean mode, and query expansion. Returns results ordered by relevance score. Use this for efficient text search on indexed columns.
Inputs: table_name (required), search_term (required), mode, limit, +5 more.
generate_seed_previewARead-onlyIdempotent
🌱 RELATIONAL SEEDER: Generates deterministic dummy row previews from a seed plan without writing to the database. Shows symbolic foreign-key placeholders for review before execution.
Inputs: plan_id (required), locale, realistic, email_domain, +1 more.
get_all_tables_relationshipsARead-onlyIdempotent
Gets ALL table foreign key relationships in the entire database in a single efficient query. Returns a comprehensive relationship map showing parent-child connections between all tables. Much faster than querying table-by-table.
Inputs: database.
get_column_statisticsARead-onlyIdempotent
Returns detailed statistics for a specific column: min/max values, average, distinct count, null percentage, and value distribution. Use to understand data quality and ranges in a column before writing queries.
Inputs: table_name (required), column_name (required), database.
get_database_summaryARead-onlyIdempotent
📊 Returns a high-level overview of the database including all tables, their columns, data types, row counts, and relationships. RECOMMENDED: Use this first when exploring a new database to understand its structure quickly. Features: database overview, per-table breakdown with primary keys, columns with nullable info and foreign key references, optional relationship summary, and configurable table limits.
Inputs: database, max_tables, include_relationships.
get_fulltext_infoARead-onlyIdempotent
Retrieves information about FULLTEXT indexes on a table including index names, columns, and parser details. Use this to discover what fulltext indexes exist on a table.
Inputs: table_name (required), database, index_name.
get_fulltext_statsARead-onlyIdempotent
Retrieves statistics for FULLTEXT indexes on a table including document count, size, and key length. Use this to analyze index performance and size.
Inputs: table_name (required), database.
get_index_infoCRead-onlyIdempotent
Gets detailed information about a specific index.
Inputs: index_name (required), table_name (required), database.
get_optimization_hintsBRead-onlyIdempotent
Get suggested MySQL optimizer hints for a specific optimization goal (SPEED, MEMORY, or STABILITY).
Inputs: goal (required).
get_schema_erdARead-onlyIdempotent
📈 Generates a visual Mermaid.js ER diagram showing tables and their relationships. Perfect for visualizing database structure and foreign key connections. Use when users ask to 'visualize' or 'diagram' the database.
Inputs: database.
get_schema_rag_contextBRead-onlyIdempotent
🎯 AI-OPTIMIZED: Returns ultra-compact schema information (tables, columns, keys, relationships, comments, row estimates) designed specifically for LLM context windows. Use keyword_filter for concept-focused schema discovery.
Inputs: database, max_tables, max_columns, keyword_filter, +2 more.
get_stored_procedure_infoBRead-onlyIdempotent
Gets detailed information about a specific stored procedure including parameters and metadata.
Inputs: procedure_name (required), database.
get_table_sizeARead-onlyIdempotent
Gets size information for one or all tables including data and index sizes.
Inputs: database, table_name.
get_table_statusBRead-onlyIdempotent
Gets detailed status and statistics for one or all tables.
Inputs: database, table_name.
get_trigger_infoCRead-onlyIdempotent
Gets detailed information about a specific trigger.
Inputs: trigger_name (required), database.
get_view_infoBRead-onlyIdempotent
Gets detailed information about a specific view including columns and definition.
Inputs: view_name (required), database.
infer_seed_rulesARead-onlyIdempotent
🌱 ADVANCED SEEDER: Infers safe seed generator rules from schema metadata, sample row patterns, unique constraints, and optional ecommerce/POS/CRM domain presets without returning raw PII samples.
Inputs: domain, tables, database, max_tables, +1 more.
list_all_toolsARead-onlyIdempotent
📋 Returns complete catalog of all available tools with names, descriptions, parameters, and current permissions. Use to discover tool capabilities or when users ask 'what can you do?'.
Inputs: no named parameters.
list_constraintsBRead-onlyIdempotent
Lists all constraints (PRIMARY KEY, FOREIGN KEY, UNIQUE, CHECK) for a table.
Inputs: table_name (required), database.
list_databasesARead-onlyIdempotent
Lists all databases available on the MySQL server. Use this to discover what databases exist before querying them.
Inputs: no named parameters.
list_foreign_keysCRead-onlyIdempotent
Lists all foreign key constraints for a table.
Inputs: table_name (required), database.
list_indexesBRead-onlyIdempotent
Lists all indexes for a specific table.
Inputs: table_name (required), database.
list_stored_proceduresARead-onlyIdempotent
Lists all stored procedures in the specified database.
Inputs: database.
list_tablesARead-onlyIdempotent
Lists all tables in the connected database. Use this as the first step when exploring an unfamiliar database to see available tables.
Inputs: database.
list_triggersBRead-onlyIdempotent
Lists all triggers in the database, optionally filtered by table.
Inputs: database, table_name.
list_viewsBRead-onlyIdempotent
Lists all views in the connected database.
Inputs: database.
plan_seed_dataARead-onlyIdempotent
🌱 RELATIONAL SEEDER: Analyzes target tables, foreign keys, constraints, and row counts to build a safe parent-first seed plan. Use this before generating preview or inserting dummy relational data.
Inputs: target_tables (required), database, strategy, seed_rules, +9 more.
read_changelogARead-onlyIdempotent
Reads the MySQL MCP Server changelog to see version history, new features, bug fixes, and breaking changes. Useful for understanding tool capabilities and recent updates.
Inputs: limit, version.
read_recordsARead-onlyIdempotent
Reads records from a table with built-in filtering, pagination, and sorting. Use this for simple data retrieval. For complex queries with JOINs or aggregations, use run_select_query instead.
Inputs: table_name (required), filters, sorting, pagination.
read_table_schemaARead-onlyIdempotent
Returns complete schema definition for a table: columns, data types, constraints, keys, indexes, and defaults. Use when you need detailed structural information about a specific table.
Inputs: table_name (required).
repair_queryARead-onlyIdempotent
🔧 Diagnoses SQL query errors and suggests fixes. Analyzes syntax errors, missing columns/tables, and logic issues. Provide the query and optional error message to get repair recommendations. Use when a query fails or needs debugging.
Inputs: query (required), error_message.
run_select_queryARead-onlyIdempotent
⚡ PRIMARY TOOL FOR SELECT QUERIES. Executes read-only SELECT statements with parameterization, optimizer hints, query caching, and dry-run mode. Supports complex queries with JOINs, subqueries, and aggregations. ⚠️ ONLY for SELECT - use execute_write_query for INSERT/UPDATE, use execute_ddl for CREATE/ALTER/DROP.
Inputs: query (required), hints, params, dry_run, +1 more.
search_data_across_tablesARead-onlyIdempotent
🔍 Guarded read-only keyword scan across text-like table data. Use only when schema metadata does not reveal where a concept is stored; enforces max table and per-table result limits.
Inputs: keyword (required), tables, columns, database, +2 more.
search_schemaARead-onlyIdempotent
🧭 Unified schema discovery for natural-language 'where is X?' questions. Searches schema metadata by default and can optionally perform a guarded sample-data scan when mode sample_data is requested.
Inputs: query (required), modes, tables, columns, +4 more.
seed_from_templateBRead-onlyIdempotent
🌱 TEMPLATE SEEDER: Creates a plan-first FK-aware seed workflow from ecommerce, POS, or CRM templates. It detects matching tables, applies domain rules, and returns a seed plan for preview/execution.
Inputs: template (required), scale, exclude, include, +7 more.
show_create_procedureCRead-onlyIdempotent
Shows the CREATE statement for a stored procedure.
Inputs: procedure_name (required), database.
show_create_triggerBRead-onlyIdempotent
Shows the CREATE statement for a trigger.
Inputs: trigger_name (required), database.
show_create_viewBRead-onlyIdempotent
Shows the CREATE statement for a view.
Inputs: view_name (required), database.
test_connectionARead-onlyIdempotent
Tests database connectivity and measures latency. Returns connection status and response time. Use to troubleshoot connection issues or check database availability.
Inputs: no named parameters.
validate_seed_integrityARead-onlyIdempotent
🌱 RELATIONAL SEEDER: Validates seed results with FK orphan checks, required-column checks, unique-collision checks, and inserted row-count checks.
Inputs: plan_id (required), tables, check_orphans, check_row_counts, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 49 tools
Many tools overlap heavily on schema discovery and data lookup: get_database_summary, get_schema_rag_context, find_tables_by_keyword, search_schema, search_data_across_tables, and get_all_tables_relationships all compete for similar 'where is X?' questions. Read/query boundaries are also blurry among read_records, run_select_query, fulltext_search, and search_data_across_tables, while analyze_table, analyze_index, and check_table are easy to confuse.
Almost all tools use snake_case, and most follow a recognizable verb_noun pattern such as list_tables, get_view_info, show_create_view, and read_records. There are minor deviations like cursor_execute_request, fulltext_search, and get_all_tables_relationships, but naming remains readable and mostly predictable.
At 49 tools, the surface is far beyond the typical well-scoped 3-15 range and includes many specialized discovery, seeder, export, and utility tools. The count feels heavy for a MySQL MCP server and increases selection complexity.
The read and schema-exploration surface is broad, but core write/DDL operations appear missing: run_select_query references execute_write_query and execute_ddl, yet those tools are not listed. Seeder tools cover planning, previewing, and validation but no explicit seed execution/insert tool is present, leaving significant workflow gaps.
Maintenance
Related MCP Connectors
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
Work with your database from AI tools: ask, export, approved changes, and scheduled jobs.
PostgreSQL, MySQL, OpenAPI/Swagger, and shared Agent Memory with scoped access.
Query Postgres, MySQL, SQL Server, Oracle, BigQuery, ClickHouse and Redshift from your AI client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to securely connect to and manage MySQL databases with support for multiple database connections, complete CRUD operations, schema inspection, and dynamic connection management through natural language.15 npm81MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to securely interact with MySQL databases through tools for query execution, schema inspection, and transaction management. It features built-in safety controls like row limits and query validation to ensure safe and standardized database access.716 npm-
- AlicenseBqualityDmaintenanceEnables AI assistants to securely interact with MariaDB and MySQL databases using granular per-connection read/write permissions and transaction support. It allows users to manage multiple database connections, explore schemas, and execute controlled SQL queries through a standardized interface.625 npm5MIT
- AlicenseAqualityDmaintenanceEnables AI agents to safely interact with MySQL/MariaDB databases, supporting read-only queries by default with optional write operations and access control.8MIT