mcp-mysql-server

mcp-mysql-server

71

The @f4ww4z/mcp-mysql-server is a Model Context Protocol server specifically designed for AI models to interact with MySQL databases seamlessly. It offers secure connection handling, robust error handling, and supports TypeScript, making it a reliable choice for database operations.

Overview

@f4ww4z/mcp-mysql-server is a Model Context Protocol server that enables interaction with MySQL databases through a standardized interface, specifically designed for AI models. It supports secure connection handling, prepared statements, and comprehensive error handling.

Features

  • Secure connection handling with automatic cleanup
  • Prepared statement support for query parameters
  • Comprehensive error handling and validation
  • TypeScript support
  • Automatic connection management

Usage

Available tools include connecting to the database, executing SELECT and DML queries, listing tables, and describing their structures.

Security

  • Uses prepared statements to avoid SQL injection
  • Supports secure password handling
  • Validates queries before execution
  • Automatically closes connections after use

Installation

Can be installed via Smithery or manually using npx.

Contributing

Contributions are encouraged via Pull Requests to the GitHub repository.

License

MIT