Skip to main content

MySQL datasource MCP server for AI clients

Project description

datasource-mcp

MySQL datasource MCP server for AI clients (Cursor, Claude Desktop, etc.).

Install

pip install datasource-mcp
# or
uvx datasource-mcp

Cursor / MCP Client Config

{
  "mcpServers": {
    "datasource-mcp": {
      "command": "datasource-mcp",
      "env": {
        "DB_HOST": "127.0.0.1",
        "DB_PORT": "3306",
        "DB_USER": "root",
        "DB_PASSWORD": "your_password",
        "DB_NAME": "your_database"
      }
    }
  }
}

Environment Variables

Variable Default Description
DB_HOST 127.0.0.1 MySQL host
DB_PORT 3306 MySQL port
DB_USER root MySQL user
DB_PASSWORD root MySQL password
DB_NAME aix Database name
DB_CONNECT_TIMEOUT 5 Connection timeout (seconds)

Tools

db_exe

Execute SQL and return a JSON string:

{"success": true, "row_count": 1, "truncated": false, "rows": [...]}

Local Development

uv sync
uv run datasource-mcp
# or
uv run python -m datasource_mcp

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

datasource_mcp-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

datasource_mcp-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datasource_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for datasource_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ca4ed8cf1b088bc1668043055b9abf57173f8cd9547f658f74803593eb79df93
MD5 0555573d495cee9a8377873fc5a1df50
BLAKE2b-256 6be147a4d3f6f414f00f6dc463d363fc40b8c9a8592c6ac7d41117814e4ac08b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: datasource_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for datasource_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 301b6115bfee99409afc1be36b320aa2a37a4338a8c474b2f83468d7533a0762
MD5 eb904fe37fca8092dc8a2c5f6365cacd
BLAKE2b-256 1f4d197e165448e3ae9c9255ea36734ec28a6994a61e9488184ea10c0d69b531

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