mcp-server-mysql / setup / windsurf
Setup guide

Set up mcp-server-mysql in Windsurf

communitystdioneeds caution

这是一款增强型MySQL MCP服务,专为 MySQL 数据库提供完善的只读访问能力。高性能的MCP服务能让大语言模型全面查看数据库结构,高效执行查询、分析,还具备更多高级特性。


01Configuration
{ "mcpServers": { "mcp-server-mysql": { "command": "npx", "args": [ "-y", "@chenlinyang/mcp-server-mysql" ] } } }

Add this to ~/.codeium/windsurf/mcp_config.json. Generated from the captured install method (npx); the mcpServers shape is shared across Claude Desktop, Cursor, Windsurf, Cline, and VS Code.


02Steps
  1. Make sure Windsurf is installed and up to date.
  2. Open ~/.codeium/windsurf/mcp_config.json and add the block above (merge into any existing mcpServers).
  3. Provide any required API keys/credentials as environment variables.
  4. Restart Windsurf and confirm mcp-server-mysql’s tools appear.

03Other runtimes

04Provenance
config_sourcegenerated from captured install method
last_checked2026-08-01 08:50Z
sourcesGitHub repo search [p4]

Next step

Want agents that act within guardrails? Apex is the live governed-agent product — paced, capped, and fully-logged actions with approvals before anything runs.

Explore Apex →

See also: server page · is it safe? · alternatives

Set up mcp-server-mysql MCP in Windsurf — MCPExplorer