How does read‑only access work?
All queries are executed inside a READ ONLY transaction. The server enforces read‑only semantics and supports prepared statements for parameterised queries.
@zhaoxin34
基本信息
暂无概览
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-server-mysql-zhaoxin34": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"install",
"@benborla29/mcp-server-mysql",
"--client",
"claude"
]
}
}
}Execute read-only SQL queries against the connected database
A Model Context Protocol server that provides read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries. It is designed for developers and AI applications that need safe, structured database interaction.
Install via Smithery (npx -y @smithery/cli@latest install @benborla29/mcp-server-mysql), MCP Get, or manually with npm/pnpm (npm install -g @benborla29/mcp-server-mysql). Configure using environment variables (e.g., MYSQL_HOST, MYSQL_PORT) and invoke the mysql_query tool with a read-only SQL string.
All queries are executed inside a READ ONLY transaction. The server enforces read‑only semantics and supports prepared statements for parameterised queries.
You need Node.js and a MySQL server (supports `caching_sha2_password` and `mysql_native_password`). The server can be installed globally via npm or run via npx.
At minimum: `MYSQL_HOST`, `MYSQL_PORT`, `MYSQL_USER`, `MYSQL_PASS`, and optionally `MYSQL_DB`. Advanced options for pooling, timeouts, caching, rate limiting, SSL, and logging are also available.
Yes. Set `MYSQL_SSL` to `true` to enable encrypted connections.
Verify MySQL is running, check credentials and permissions, and ensure the correct authentication plugin is used. For MySQL 8.0+ you may need a user created with `mysql_native_password`. Use Smithery diagnostics (`smithery diagnose`) or manual log checking.

Verified golf club data for AI agents: holes, par, address, phone, booking links, facilities, visitor rules and green fees for golf clubs in Spain (Canary Islands and mainland), expanding across Europe. Every fact comes

Oracle MCP server with no run-sql tool: It generates tools for each of the PL/SQL procedures, tables and approved SQL you choose. The server doesn't expose a SQL prompt, and can't reveal how it's connected to Oracle.

nuzur is a model-first database platform for MySQL and PostgreSQL. The MCP server lets any AI assistant or agent (Claude, Cursor, Gemini, or anything else that speaks MCP) design your schema, query your data, generate mi
Postgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.
A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
评论