Skip to main content

An MCP server for MySQL databases using stdio

Project description

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"
      }
    }
  }
}

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stdio_mysql_mcp-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stdio_mysql_mcp-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file stdio_mysql_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: stdio_mysql_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for stdio_mysql_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2fb4153005ade6f30421bc45639cbf38bee68200f7447948a9aaf6850058787e
MD5 5f4f9d0a8eceef7f8cb6c59e241ab37d
BLAKE2b-256 0129a411c2d5fe0b89a248a93abdd77af250bf35caaa6f2dbb3d9dd5c21774bc

See more details on using hashes here.

File details

Details for the file stdio_mysql_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for stdio_mysql_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7216e4059e774b4d7d0995e61874ab51c99301ab410e41bcbbf6ab02d213999c
MD5 ad7af0572ee6d91a72b2553d273ef9e2
BLAKE2b-256 1f75d32fee7863ba3d181699429c8c36a5d8dd16818bcaf8a27f17746f255ee7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page