-
Notifications
You must be signed in to change notification settings - Fork 2
Resources
- Execute complex logic via Code Mode, reducing token usage by 70-90%.
- Build AI integrations instantly.
- Empower agents with secure database access.
- Scale operations with robust connection pooling.
- Leverage OAuth 2.1 for enterprise security.
MCP clients access resources automatically. In Claude Desktop or Cursor, reference them directly:
Show me the database health status
→ Uses mysql://health resource
What tables exist in this database?
→ Uses mysql://tables resource
Check the replication lag
→ Uses mysql://replication resource
Show me any locking issues
→ Uses mysql://locks resource
The server supports the MCP resources/subscribe feature. Clients receive real-time notifications when data changes.
| URI Pattern | Event Trigger |
|---|---|
mysql://schema |
Any DDL change (CREATE, ALTER, DROP) across the database |
mysql://tables |
Any DDL change affecting table structures |
mysql://table/{name} |
DDL changes affecting a specific table |
mysql://health |
Periodic health status updates |
Note: Tool executions detect changes. External changes bypassing the MCP server delay notifications.
Shows server information and MCP server capabilities:
- MySQL version and supported features
- JSON support, FULLTEXT, partitioning availability
- All tool groups and meta-groups with tool counts
Comprehensive health dashboard:
- Connection pool utilization and thread activity
- Buffer pool hit ratio and memory usage
- Slow query count
- Query mix (SELECT/INSERT/UPDATE/DELETE counts)
Query performance insights:
- Total queries and slow query count
- Temporary tables to disk ratio
- Full table scan percentage
- Top 10 queries by execution time (if performance_schema enabled)
- Handler statistics (index reads vs table scans)
Index analysis:
- All indexes with cardinality and type
- Unused indexes (never scanned)
- Potential duplicate/redundant indexes
Replication monitoring:
- Server role (source, replica, standalone)
- Binary log position
- Replica I/O and SQL thread status
- Seconds behind source (replication lag)
- GTID configuration
InnoDB engine metrics:
- Buffer pool size and hit ratio
- Page statistics (total, free, dirty)
- Row operations (reads, inserts, updates, deletes)
- I/O statistics
Group Replication & InnoDB Cluster status:
- Member state (ONLINE, RECOVERING)
- Primary/Secondary check
- Cluster topology
High-level performance summary from sys schema:
- Top I/O users
- Worst performing statements
- Host summary
Lock contention analysis:
- Currently blocked transactions
- Blocking transaction ID and query
- Wait duration
Event Scheduler status and scheduled events:
- Scheduler ON/OFF status
- List of scheduled events and their definitions
- Last execution times and statuses
Spatial columns and indexes:
- Table columns with spatial data types
- SRID configurations
- Spatial indexes presence
Document Store collections:
- JSON collection list
- Collection metadata and sizes
- Document count estimates
Business insights and operational knowledge:
- Persistent insights you append via
mysql_append_insight - Contextual memory for multi-session tasks
- Tools - Complete list of all 200+ tools
- Tool-Filtering - Reduce tool count for IDE limits
Unlock autonomous database orchestration with an enterprise-grade MySQL MCP server. Featuring blazing-fast sandboxed Code Mode, uncompromising schema enforcement, and seamless ecosystem integrations to power secure, intelligent AI workflows.
- Installation
- Configuration
- Architecture
- HTTP Transport
- Tool Filtering
- Code Mode
- Tools
- Prompts
- Resources
- Observability & Telemetry