MySQL Query MCP Server

MySQL Query MCP server for AI assistants - execute read-only MySQL queries

Local serverstdio

What is the MySQL Query MCP Server?

MySQL Query MCP server for AI assistants - execute read-only MySQL queries

What you get

A Model Context Protocol (MCP) server that provides read-only MySQL database queries for AI assistants. Execute queries, explore database structures, and investigate your data directly from your AI-powered tools.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Configuration

VariableDescriptionRequired
LOCAL_DB_HOSTEndpoint or connection string the server talks to.Optional
LOCAL_DB_USERConfiguration value read at startup.Optional
LOCAL_DB_PASSConfiguration value read at startup.Optional
LOCAL_DB_NAMEConfiguration value read at startup.Optional
LOCAL_DB_PORTConfiguration value read at startup.Optional
DEVELOPMENT_DB_HOSTEndpoint or connection string the server talks to.Optional
DEVELOPMENT_DB_USERConfiguration value read at startup.Optional
DEVELOPMENT_DB_PASSConfiguration value read at startup.Optional

Frequently asked questions

Only read‑only SQL statements: SELECT, SHOW