1. Conduid
  2. Data
  3. mysql-server
MCP server · Data

mysql-server

MySQL MCP Server - Simple Model Context Protocol server for MySQL database operations

Unclaimed data
39Low

Scored 5 months ago · breakdown

About mysql-server

mysql-server is an MCP server published by git+ImRieul in the Data category: mySQL MCP Server - Simple Model Context Protocol server for MySQL database operations.

Install

Install
npx @imrieul/mysql-mcp-server
Claude Code
claude mcp add mysql-mcp-server-gitimrie -- npx -y @imrieul/mysql-mcp-server
npx
npx -y @imrieul/mysql-mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (6)

describe_all_tablesShow all table schemas at once

Parameters not published.

describe_tableShow table schema

Parameters not published.

executeExecute INSERT, UPDATE, DELETE, DDL

Parameters not published.

list_databasesList all databases

Parameters not published.

list_tablesList tables in a database

Parameters not published.

queryExecute SELECT, SHOW, DESCRIBE, EXPLAIN

Parameters not published.

Ask AI

✦

Ask AI about mysql-server

Powered by Claude · Grounded in docs

I know everything about mysql-server. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

4 checks have not been run yet.

README

@imrieul/mysql-mcp-server

한국어 | 日本語 | 中文 | Español | Português | Français | Русский

A simple MySQL MCP server.

Features

  • LLM-friendly — compact column/row format, auto LIMIT, error hints with next-action suggestions
  • Bulk schema — describe_all_tables returns entire DB schema in one call
  • Read-only mode — app-level prefix check + DB-level SET SESSION TRANSACTION READ ONLY
  • Query timeout — Promise.race() based timeout with guaranteed connection cleanup
  • SSL support — one env var to enable encrypted connections
  • Minimal — 3 dependencies, zero config required

Quick Start

Add to your MCP config (.mcp.json or claude_desktop_config.json):

{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": ["-y", "@imrieul/mysql-mcp-server"],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "root",
        "MYSQL_PASSWORD": "your-password",
        "MYSQL_DATABASE": "your-database"
      }
    }
  }
}

Or with a connection string:

{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": ["-y", "@imrieul/mysql-mcp-server", "mysql://root:password@localhost:3306/mydb"]
    }
  }
}

Read-only mode with SSL

{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": ["-y", "@imrieul/mysql-mcp-server", "--readonly"],
      "env": {
        "MYSQL_HOST": "db.example.com",
        "MYSQL_USER": "readonly_user",
        "MYSQL_PASSWORD": "password",
        "MYSQL_DATABASE": "production",
        "MYSQL_SSL": "true",
        "MYSQL_QUERY_TIMEOUT": "10000"
      }
    }
  }
}

Tools

Tool Description Read-only mode
query Execute SELECT, SHOW, DESCRIBE, EXPLAIN Allowed
execute Execute INSERT, UPDATE, DELETE, DDL Blocked
list_databases List all databases Allowed
list_tables List tables in a database Allowed
describe_table Show table schema Allowed
describe_all_tables Show all table schemas at once Allowed

Configuration

Environment variables

Variable Required Default Description
MYSQL_HOST Yes — MySQL host
MYSQL_USER Yes — MySQL user
MYSQL_PASSWORD Yes — MySQL password
MYSQL_PORT No 3306 MySQL port
MYSQL_DATABASE No — Default database
MYSQL_READONLY No false Read-only mode
MYSQL_MAX_ROWS No 100 Auto LIMIT for SELECT queries
MYSQL_QUERY_TIMEOUT No 30000 Query timeout in ms (0 to disable)
MYSQL_SSL No false Enable SSL connection

Connection string

mysql://user:password@host:port/database

Passed as the first CLI argument. Takes priority over environment variables.

License

MIT

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About mysql-server

How do I install mysql-server?

Run npx @imrieul/mysql-mcp-server, then add the server to your MCP client's configuration.

Is mysql-server safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 1 of the 2 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is mysql-server still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.