Skip to main content

stdio-mysql-mcp

A Model Context Protocol (MCP) server that allows AI assistants like Claude Desktop and GitHub Copilot to connect to and query MySQL databases locally using standard input/output (stdio).

Usage with Claude Desktop / GitHub Copilot

Add this to your MCP configuration file (claude_desktop_config.json or your custom settings):

{
  "mcpServers": {
    "mysql-server": {
      "command": "uvx",
      "args": ["stdio-mysql-mcp"],
      "env": {
        "MYSQL_URL": "mysql://user:password@localhost:3306"
      }
    }
  }
}

Usage with GitHub Copilot

If you're using the GitHub Copilot local/desktop integration (or another Copilot-compatible MCP host) the config format may differ. Here's the example you supplied — it works and shows how to point Copilot to a local Python interpreter and run the MCP server module:

{
  "servers": {
    "my-mysql-server": {
      "command": "check/Scripts/python.exe",
      "args": [
        "-m",
        "stdio_mysql_mcp.server"
      ],
      "env": {
        "MYSQL_URL": "mysql://username:password@localhost:3306"
      }
    }
  }
}

Notes:

  • command should be the full path to the Python executable you want Copilot to use. In virtualenvs on Windows this often looks like path\to\venv\Scripts\python.exe; on macOS/Linux it might be path/to/venv/bin/python.
  • The -m stdio_mysql_mcp.server form runs the package's server module directly from the chosen Python interpreter.
  • Ensure the Python environment has the package (or the source) installed so the module resolves.

Available Tools

  • get_databases: List all databases
  • get_tables_in_db: List tables in a specific database
  • get_records: Get all rows from a table
  • get_specific_column_records: Get specific columns from a table
  • custom_sql_query: Run custom SQL queries

Metadata

Release files for stdio-mysql-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stdio-mysql-mcp 0.1.1
File Size Uploaded Provenance Actions
stdio_mysql_mcp-0.1.1.tar.gz 3.1 kB Without provenance Details for stdio_mysql_mcp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stdio-mysql-mcp 0.1.1
File Interpreter ABI Platform Actions
stdio_mysql_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for stdio_mysql_mcp-0.1.1-py3-none-any.whl

Total release size: 6.6 kB

Release files / stdio_mysql_mcp-0.1.1.tar.gz

Download URL stdio_mysql_mcp-0.1.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9c4669ed08d384785c5ce0db3b0f8e0952b0caedf01b41ad13160b13b9ac296f
BLAKE2b-256 checksum
How to use checksums
2e05a42a83eb0e4c8a99c957aa4c4cf4696a22f571c55ad7425d6f6ec4788156
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / stdio_mysql_mcp-0.1.1-py3-none-any.whl

Download URL stdio_mysql_mcp-0.1.1-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e9aa8c45c4c371ad7c34d3563869884ac0cb7e969b5c734a9cf382477733fe5
BLAKE2b-256 checksum
How to use checksums
b860a12e1b5f9d4137bd540944f1f3f8734998684f1cd2ab0955e7fc0fee47e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for stdio-mysql-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page