Discover and explore top open-source AI tools and projects—updated daily.
benborlaMCP server for LLM access to MySQL databases
Top 40.7% on SourcePulse
This project provides a Model Context Protocol (MCP) server for MySQL databases, enabling Large Language Models (LLMs) to inspect schemas and execute SQL queries. It targets developers integrating LLMs with relational databases, offering a secure and configurable bridge for data interaction.
How It Works
The server acts as an intermediary, translating LLM requests into SQL queries executed against a MySQL database. It leverages Node.js and supports various integration methods, including direct configuration for tools like Claude Desktop and Cursor, or via package managers like npm/pnpm. Security is a key focus, with features like prepared statements, query timeouts, rate limiting, and configurable write operations (INSERT, UPDATE, DELETE) disabled by default.
Quick Start & Requirements
npx -y @benborla29/mcp-server-mysql (via Smithery) or npm install -g @benborla29/mcp-server-mysql.Highlighted Details
MYSQL_DB is not set, requiring schema-qualified queries.Maintenance & Community
The project is actively developed, with a roadmap including enhanced query capabilities, advanced security, performance optimizations, and expanded schema information. Contributions are welcomed via pull requests.
Licensing & Compatibility
Licensed under the MIT License, permitting commercial use and integration with closed-source applications.
Limitations & Caveats
MySQL 8.0+ authentication plugin caching_sha2_password might require specific user configuration or a fallback to mysql_native_password. Some users have reported issues with module resolution (dotenv) that may require specific workarounds.
1 month ago
1 day