Skip to main content

Add your description here

Project description

mcp-server-tidb

MCP server implementation for TiDB (serverless) database.

Prerequisites

  • uv (Python package installer)

Installation

# Clone the repository
git clone https://github.com/c4pt0r/mcp-server-tidb
cd mcp-server-tidb

# Install the package and dependencies using uv
uv venv
uv pip install -e .

Configuration

Go tidbcloud.com to create a free TiDB database cluster

Configuration can be provided through environment variables, or using .env:

  • TIDB_HOST - TiDB host address, e.g. 'gateway01.us-east-1.prod.aws.tidbcloud.com'
  • TIDB_PORT - TiDB port (default: 4000)
  • TIDB_USERNAME - Database username, e.g. 'xxxxxxxxxx.<username>'
  • TIDB_PASSWORD - Database password
  • TIDB_DATABASE - Database name, default is test

Run with Claude Desktop

Config Claude Desktop, HOWTO

claude_desktop_config.json:

{
  "mcpServers": {
      "tidb": {
          "command": "uv",
          "args": [
              "--directory",
              "/path/to/mcp-server-tidb",
              "run",
              "src/main.py"
          ]
      }
  }
}

If you're running mcp-server-tidb in WSL, the claude_desktop_config.json should look like this:

{
  "mcpServers": {
    "tool-with-env-vars": {
      "command": "wsl.exe",
      "args": [
        "bash",
        "-c",
        "/path/to/uv --directory /path/to/mcp-server-tidb run python src/main.py"
      ]
    }
  }
}

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

mseep_mcp_server_tidb-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

mseep_mcp_server_tidb-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mseep_mcp_server_tidb-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for mseep_mcp_server_tidb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 66a9e9b4bc0bc9ad6164e01f726b94b4f9ba1023909d8f1eb9c268cf931caee8
MD5 b228d1340e7d0d87693e4c660dc257b9
BLAKE2b-256 6cd635bbb89cfaf783bc9c554405524b3d7ae3bedfd2e1452999ad230bd11738

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mseep_mcp_server_tidb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f51b4a91429ed14dc97e796586327f439aae559a840f82d5b8d9b0745b495211
MD5 c10440a129878ba98747c931a4e58337
BLAKE2b-256 1e68a8914084b279a4ba31274363530164c8fe2b7a03576171282f04729b69e7

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