mysql-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DEBUG | No | Enable debug mode (default: false) | false |
| TIMEOUT | No | Timeout in ms (default: 60000) | 60000 |
| MYSQL_HOST | No | MySQL server host (default: localhost) | localhost |
| MYSQL_PORT | No | MySQL server port (default: 3306) | 3306 |
| MYSQL_USER | No | MySQL user (default: root) | root |
| MYSQL_DATABASE | No | Default database name | |
| MYSQL_PASSWORD | No | MySQL password | |
| ACQUIRE_TIMEOUT | No | Acquire timeout in ms (default: 60000) | 60000 |
| CONNECTION_LIMIT | No | Connection pool limit (default: 10) | 10 |
| DOCKER_MYSQL_PORT | No | Docker MySQL port | |
| DOCKER_CONTAINER_NAME | No | Docker container name for MySQL |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| database_connectC | Connect to a MySQL or PostgreSQL database |
| database_execute_sqlA | Execute a single SQL statement on the active database connection |
| database_execute_scriptB | Execute a SQL script with multiple statements on the active database connection |
| database_execute_batchB | Execute multiple SQL statements as a batch on the active database connection |
| database_get_schemaA | Get the database schema (tables, columns, indexes, foreign keys, views) |
| database_test_connectionB | Test the active database connection |
| database_disconnectB | Close the active database connection |
| database_detect_projectB | Detect database configuration from a project directory |
| database_list_environmentsA | List detected database environments for the current project |
| database_connect_environmentB | Connect to a specific detected database environment |
| database_switch_environmentB | Switch to a different detected database environment |
| database_list_sessionsB | List active database sessions |
| database_get_project_summaryB | Get summary of the currently detected project |
| check_node_versionB | Check Node.js version |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/eeantoss/mysql-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server