Skip to main content

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

Metadata

Release files for datasource-mcp 0.1.0

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

Source distribution (sdist)

Source distribution for datasource-mcp 0.1.0
File Size Uploaded Provenance
datasource_mcp-0.1.0.tar.gz 3.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for datasource-mcp 0.1.0
File Interpreter ABI Platform
datasource_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / datasource_mcp-0.1.0.tar.gz

Download URL datasource_mcp-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ca4ed8cf1b088bc1668043055b9abf57173f8cd9547f658f74803593eb79df93
BLAKE2b-256 checksum
How to use checksums
6be147a4d3f6f414f00f6dc463d363fc40b8c9a8592c6ac7d41117814e4ac08b
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / datasource_mcp-0.1.0-py3-none-any.whl

Download URL datasource_mcp-0.1.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
301b6115bfee99409afc1be36b320aa2a37a4338a8c474b2f83468d7533a0762
BLAKE2b-256 checksum
How to use checksums
1f4d197e165448e3ae9c9255ea36734ec28a6994a61e9488184ea10c0d69b531
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for datasource-mcp 0.1.0

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.0 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