MySQL Query
Provides a secure, read-only bridge to MySQL databases, enabling natural language querying across mu...
Gather Your MySQL Database Credentials
- For each environment (local, development, staging, production) you want to connect, you will need the following:
- Host (e.g., localhost, dev.example.com)
- User (database username for the environment)
- Password (database user password)
- Database Name (the database you want to query)
- (Optional) Port (default is 3306)
- (Optional) SSL and certificate-related settings, if your DB requires secure connections
- For each environment (local, development, staging, production) you want to connect, you will need the following:
Access Your Database Provider or Server for Credentials
- If you're self-hosting MySQL: Log in to your server or hosting control panel to retrieve or set up usernames and passwords.
- If using a managed service (e.g. AWS RDS, Azure Database, PlanetScale, Vercel, DigitalOcean):
- Log in to the respective service dashboard.
- Go to the database instance and find the "Connection Details" or similar section to get host, user, password, and database name.
- For most providers, you can create new users and passwords if needed.
Ensure User Has Read-Only Permissions (Recommended)
- For security, use a user account limited to SELECT, SHOW, and DESCRIBE privileges.
- In MySQL, you can create a read-only user with a command similar to:
CREATE USER 'readonly_user'@'%' IDENTIFIED BY 'your_password'; GRANT SELECT, SHOW VIEW ON your_database.* TO 'readonly_user'@'%'; FLUSH PRIVILEGES; - Replace
'readonly_user','your_password', andyour_databaseappropriately.
Copy Values Into FastMCP Connection Interface
- Open your FastMCP environment.
- Click the “Install Now” (or equivalent) button for MySQL Query MCP.
- In the FastMCP connection interface, fill in the required values for each environment you wish to enable:
- LOCAL_DB_HOST, LOCAL_DB_USER, LOCAL_DB_PASS, LOCAL_DB_NAME, LOCAL_DB_PORT (default 3306)
- DEVELOPMENT_DB_HOST, DEVELOPMENT_DB_USER, etc. (if using dev)
- STAGING_DB_HOST, STAGING_DB_USER, etc. (if using staging)
- PRODUCTION_DB_HOST, PRODUCTION_DB_USER, etc. (if using production)
- Optional: Set DEBUG to
trueif you need extra logging. - Optional: Set MCP_MYSQL_SSL to
trueif you’re connecting to a database that requires SSL. - Optional: Set MCP_MYSQL_REJECT_UNAUTHORIZED to
falseif you encounter certificate errors (not recommended for production).
Save and Test the Connection
- Save the configuration.
- Use the query tool or environment info features from your AI assistant to confirm connectivity and access.
Notes:
- Do not abbreviate environment values (must use LOCAL_, DEVELOPMENT_, etc.).
- For sensitive/production environments, manage credentials securely and rotate if compromised.
- Only read-only operations are supported.
Quick Start
Choose Connection Type for
Authentication Required
Please sign in to use FastMCP hosted connections
Configure Environment Variables for
Please provide values for the following environment variables:
started!
The MCP server should open in . If it doesn't open automatically, please check that you have the application installed.
Copy and run this command in your terminal:
Make sure Gemini CLI is installed:
Visit Gemini CLI documentation for installation instructions.
Make sure Claude Code is installed:
Visit Claude Code documentation for installation instructions.
Installation Steps:
Configuration
Installation Failed
More for Database
View All →Supabase MCP Server
Connect Supabase projects directly with AI assistants using the Model Context Protocol (MCP). This server standardizes communication between Large Language Models and Supabase, enabling AI to manage tables, query data, and interact with project features like edge functions, storage, and branching. Customize access with read-only or project-scoped modes and select specific tool groups to fit your needs. Integrated tools cover account management, documentation search, database operations, debugging, and more, empowering AI to assist with development, monitoring, and deployment tasks in your Supabase environment efficiently and securely.
ClickHouse
Unlock powerful analytics with the ClickHouse MCP Server—seamlessly run, explore, and manage SQL queries across ClickHouse clusters or with chDB’s embedded OLAP engine. This server offers easy database and table listing, safe query execution, and flexible access to data from files, URLs, or databases. Built-in health checks ensure reliability, while support for both ClickHouse and chDB enables robust data workflows for any project.
Postgres MCP Pro
Boost your Postgres database performance with Postgres MCP Pro, an AI-driven MCP server offering advanced index tuning, detailed explain plans, and comprehensive health checks. It combines proven optimization algorithms with schema intelligence for safe, context-aware SQL execution. Whether analyzing slow queries or recommending optimal indexes, Postgres MCP Pro empowers developers to improve efficiency and maintain database integrity. Designed for both development and production, it supports flexible transport options and robust access controls, making database management smarter, safer, and easier. Experience deterministic performance insights alongside AI assistance to keep your Postgres running at its best.