How do I install and build the server?
Run `npm install` to install dependencies, then `npm run build` to compile the TypeScript project. For development with auto-rebuild, use `npm run watch`.
@xianzong85
基本信息
暂无概览
Execute SQL queries
The mysql-server MCP Server is a TypeScript-based Model Context Protocol server that provides tools for querying MySQL databases. It connects to a MySQL server using environment variables and is intended for use with MCP-compatible hosts like Claude Desktop.
Install dependencies with npm install, then build the server with npm run build. Configure the environment variables MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, and MYSQL_DATABASE in your MCP host configuration (e.g., Claude Desktop’s claude_desktop_config.json). Invoke the query tool with a SQL query string to execute queries and receive results.
query toolRun `npm install` to install dependencies, then `npm run build` to compile the TypeScript project. For development with auto-rebuild, use `npm run watch`.
Set the environment variables MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, and MYSQL_DATABASE in your MCP server configuration file (e.g., Claude Desktop’s `claude_desktop_config.json`).
The `query` tool takes a SQL query string as a required parameter and returns the results of executing that query against the configured MySQL database.
Use the MCP Inspector by running `npm run inspector`. The Inspector provides a URL with debugging tools for the server, which communicates over stdio.
The server is a TypeScript project and requires Node.js to install dependencies and run the compiled JavaScript.
A MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like SQLite, Postgresql, MySQL & MariaDB, Oracle, and MS-SQL.

Model Context Protocol Servers
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
An official Qdrant Model Context Protocol (MCP) server implementation

Model Context Protocol Servers
评论