Basic information
About MySQLReader MCP Server
This is a MCP server about read data from mysql databsase .
MySQLReader is a MCP server in the Other category listed in the AddMCP.net directory, published by ChenRongpeng1998. Supported transport: stdio. Runtime: python. License: Apache-2.0. Source code is hosted on github.com.
Setup
{
"mcpServers": {
"MySQLReader": {
"command": "uv",
"args": [
"sync",
"#",
"同步环境"
]
}
}
}
{
"mcpServers": {
"MySQLReader": {
"command": "uv",
"args": [
"sync",
"#",
"同步环境"
]
}
}
}
{
"servers": {
"MySQLReader": {
"command": "uv",
"args": [
"sync",
"#",
"同步环境"
]
}
}
}
MySQLReader MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"MySQLReader": {
"command": "uv",
"args": [
"sync",
"#",
"同步环境"
]
}
}
}
MySQLReader MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MySQLReader?
MySQLReader is an MCP server that enables read‑only access to MySQL databases. It uses the pymysql library and supports three authentication methods: environment variables, plaintext files, and RSA‑encrypted files. This server is designed for security‑conscious environments where only SELECT queries are permitted.
How to use MySQLReader?
Install uv, clone the repository, run uv sync, and activate the virtual environment. The main script is mysql_reader.py, which requires host and db arguments. Authentication can be configured with --authentication-method (ev, file, or efile) and additional flags like --evname-user, --file-path, or --private_key_file_name. For Claude Desktop, add a mysql_reader entry to claude_desktop_config.json with appropriate arguments.
Key features of MySQLReader
- Read‑only MySQL queries (no INSERT, UPDATE, DELETE)
- Three credential storage methods: env, file, encrypted file
- RSA‑encrypted credential file support (
efile) - Works with Claude Desktop via MCP configuration
- Built on
pymysqlfor database connectivity
Use cases of MySQLReader
- Safely query a MySQL database without exposing credentials in plaintext
- Integrate MySQL read access with Claude Desktop for data‑driven conversations
- Use encrypted credential storage for compliance‑sensitive environments
- Provide a restricted database interface for AI agents
Frequently asked questions
1 What authentication methods are supported?
Three methods: ev (environment variables), file (plaintext file), and efile (RSA‑encrypted file). The default is ev.
2 Is the `file` method secure?
No. The README explicitly warns that storing credentials in a plaintext file is insecure and not recommended.
3 How do I generate encrypted credentials for the `efile` method?
Use the provided RSA_key_generator.py script. It can generate a new RSA key pair or use an existing public key to encrypt the username and password into a .enc file.
4 What are the required arguments for `mysql_reader.py`?
Host and database name are required. Authentication‑method and related flags are optional (with defaults).
5 Can I modify data (INSERT/UPDATE/DELETE) through this server?
No. The server is intentionally limited to read‑only queries for security reasons.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In