Skip to content
plugmcp
DirectorySkillsCategoriesBlog
EN/中文
Sign inSign up
Home/Servers/Database MCP Mysql

Database MCP Mysql

I
by io.github.arifulislamat

MCP server for MySQL. Read-only by default, row caps, statement timeouts, secrets never logged.

Power your agent

Add this server

The publisher's own command. Not a PlugMCP endpoint.

Local command
npx -y @database-mcp/[email protected]
Credentials from the publisher
  • MYSQL_HOST — Database host
  • MYSQL_USER — Database user (a read-only user is recommended)
  • MYSQL_PASSWORD — Database password (or use MYSQL_PASSWORD_FILE)
  • MYSQL_DATABASE — Database name
Provider
Claude Code
MYSQL_HOST=<value> MYSQL_USER=<value> MYSQL_PASSWORD=<secret> MYSQL_DATABASE=<value> claude mcp add io.github.arifulislamat-database-mcp-mysql -- npx -y @database-mcp/[email protected]

Run in a terminal.

Claude Desktop
{
  "mcpServers": {
    "io.github.arifulislamat-database-mcp-mysql": {
      "command": "npx",
      "args": [
        "-y",
        "@database-mcp/[email protected]"
      ],
      "env": {
        "MYSQL_HOST": "<value>",
        "MYSQL_USER": "<value>",
        "MYSQL_PASSWORD": "<secret>",
        "MYSQL_DATABASE": "<value>"
      }
    }
  }
}

claude_desktop_config.json

Step-by-step: add this in Claude

Remote URL or a command on your machine? How the two installs differ

Run on PlugMCP

Host a copy with our keys and logs.

A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.

Launch

Related MCP

View more
  • Firecrawl🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
  • N
    NotionToken-auth Notion MCP: pages, databases, blocks, comments, files. Runs headless in CI and agents.
  • Context7Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

Related skills

View all
  • reaReverse engineer anything with agents, from app behavior down to native binaries.
  • rea-changelog-updatePrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.
  • rea-tool-designDesign or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.

MCP server for MySQL. Read-only by default, row caps, statement timeouts, secrets never logged.

database-mcp

MCP servers that give AI clients safe, structured access to SQL databases.

One installable package per database engine, in TypeScript (npm), Python (PyPI), and Rust (crates.io). Every package exposes the same minimal two-tool surface, execute_sql and search_objects, with guardrails on by default: read-only mode, row caps, and statement timeouts.

Packages

EngineTypeScript (npm)Python (PyPI)Rust (crates.io)
SQLite@database-mcp/sqlite database-mcp-sqlite database-mcp-rs-sqlite
libSQL@database-mcp/libsql database-mcp-libsql database-mcp-rs-libsql
MySQL@database-mcp/mysql database-mcp-mysql database-mcp-rs-mysql
MariaDB@database-mcp/mariadb database-mcp-mariadb database-mcp-rs-mariadb
Postgres@database-mcp/postgres database-mcp-postgres database-mcp-rs-postgres

All three lines are published and pass the same language-agnostic conformance suite against real databases in CI, so behavior is identical regardless of language. Every engine is also listed on the MCP Registry with all three install options: npm, PyPI, and cargo.

Rust crates are named database-mcp-rs-<engine> because the plain names are taken on crates.io; the command each one installs is still database-mcp-<engine>. Go is planned.

Design principles

  • Two tools, no more. A tiny tool surface keeps the model's context window clean. search_objects progressively discloses schema: call it with no arguments to list tables, with a table name to get columns, indexes, and foreign keys.
  • Safe by default. Read-only mode is enforced in two layers: a conservative SQL guard, plus a session-level read-only setting in the database itself. Rows are capped (default 1000) and statements time out (default 30s).
  • Configured at launch, never via chat. Connection details come from flags, a YAML config file, or environment variables. Credentials are never accepted through a tool call.
  • Secrets never appear in logs. Passwords live in non-printable secret types, DSNs are sanitized before logging, and a redaction filter guards the log boundary.

Quick start

Pick your engine's package; each README has the full config surface. SQLite via npm:

{
  "mcpServers": {
    "sqlite": {
      "command": "npx",
      "args": ["-y", "@database-mcp/sqlite", "--dsn", "/absolute/path/to/database.db"]
    }
  }
}

Or via PyPI: use "command": "uvx" and "args": ["database-mcp-sqlite", "--dsn", "/absolute/path/to/database.db"].

Or as a native binary, with no Node or Python runtime: run cargo install database-mcp-rs-sqlite, then use "command": "database-mcp-sqlite" with the same args minus the package name.

Flags, environment variables, and YAML config are identical across all three lines.

Networked engines take credentials from the environment (MYSQL_*, MARIADB_*, POSTGRES_*/DATABASE_URL, LIBSQL_URL/LIBSQL_AUTH_TOKEN), *_FILE mounted secrets, or a YAML file via --config. Never from a chat prompt.

Contributing

See CONTRIBUTING.md. The short version: the conformance suite is the definition of done. A change is mergeable only when conformance/run.mjs passes against every affected server.

License

MIT

How do I install Database MCP Mysql?
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
Does Database MCP Mysql need an API key?
The publisher lists these environment variables: MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE.
What transport does Database MCP Mysql use?
Database MCP Mysql runs locally over stdio.
When was Database MCP Mysql last checked?
Last checked 2026-10-16. MCP server for MySQL. Read-only by default, row caps, statement timeouts, secrets never logged.

No tool list yet. Remote servers get one after the first health check.

plugmcp

Plug any tool into any agent. MCP servers for people who do not write servers. Gateway for volume, n8n for apps.

  • github.com/TODO
  • x.com/TODO
  • linkedin.com/company/TODO

PlugMCP, 2026

Product
  • Browse
  • Install
  • Host your own
  • Voice mode
  • Browser
Directory
  • All MCP servers
  • Agent skills
  • Categories
  • New
  • Voice
  • Submit a server
Developers
  • Docs
  • Blog
  • What is MCP
  • What is WebMCP
  • Status
Company
  • About
  • Contact
  • Terms
  • Privacy
  • DPA