MCP Server for MySQL

MCP Server for MySQL

Public
zhaoxin34/mcp-server-mysql

Provides read-only Model Context Protocol access to MySQL databases, enabling LLMs to inspect schemas, execute secure read-only queries with prepared statements, and leverage features like query caching, performance monitoring, and advanced security controls.

typescript
0 tools
May 30, 2025
Updated Jun 4, 2025

Supercharge Your AI with MCP Server for MySQL

MCP Server

Unlock the full potential of MCP Server for MySQL through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.

Unified API Access
Complete Tracing
Instant Setup
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests
Configuration Requirements
none
Configure authentication and required variables to access this MCP server
Required Environment Variables
MYSQL_DB
Optional
string

Target database name

PATH
Optional
string

Path to node binaries and other executables

MYSQL_POOL_SIZE
Optional
string

Connection pool size

Default: 10
MYSQL_CACHE_TTL
Optional
string

Cache time-to-live in milliseconds

Default: 60000
MYSQL_ENABLE_LOGGING
Optional
string

Enable query logging

Default: false
MYSQL_HOST
Optional
string

MySQL server host

Default: 127.0.0.1
MYSQL_PORT
Optional
string

MySQL server port

Default: 3306
MYSQL_RATE_LIMIT
Optional
string

Maximum queries per minute

Default: 100
MYSQL_USER
Optional
string

MySQL username

Default: root
MYSQL_MAX_QUERY_COMPLEXITY
Optional
string

Maximum query complexity score

Default: 1000
MYSQL_LOG_LEVEL
Optional
string

Logging level

Default: info
MYSQL_QUERY_TIMEOUT
Optional
string

Query timeout in milliseconds

Default: 30000
MYSQL_PASS
Optional
string

MySQL password

MYSQL_METRICS_ENABLED
Optional
string

Enable performance metrics

Default: false
MYSQL_SSL
Optional
string

Enable SSL/TLS encryption

Default: false

Security Notice

Your environment variables and credentials are securely stored and encrypted. LangDB never shares these configuration values with third parties.

Related MCPs5
  • MCP Server for MySQL

    Provides read-only access to MySQL databases via Model Context Protocol, enabling LLMs to inspect database schemas and execute secure read-only SQL queries for seamless data exploration.

    Added May 30, 2025
  • MySQL MCP Server

    Provides read-only access to MySQL databases via Model Context Protocol, enabling LLMs to inspect database schemas and execute secure read-only SQL queries with authentication support.

    Added May 29, 2025
  • MySQL MCP Server

    Provides read-only access to MySQL databases for LLMs via the Model Context Protocol, enabling schema discovery and secure execution of SELECT queries with automatic SQL validation and simple configuration.

    Added May 30, 2025
  • PostgreSQL MCP Server

    Provides read-only access to PostgreSQL databases via Model Context Protocol, enabling LLMs to inspect database schemas and execute secure read-only SQL queries for efficient data retrieval.

    Added May 30, 2025
  • PostgreSQL MCP Server

    Provides read-only access to PostgreSQL databases via Model Context Protocol, enabling LLMs to inspect database schemas and execute secure, read-only SQL queries for enhanced data analysis and integration.

    Added May 30, 2025