Skip to main content
Glama
wangguoxi0814

datasource-mcp

datasource-mcp

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

Install

pip install datasource-mcp
# or
uvx datasource-mcp

Related MCP server: mcp-db-server

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
A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wangguoxi0814/datasource-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server