Skip to main content

MCP server for Apache Doris database - connect AI clients to Doris

Project description

MCP-Doris

MCP server for Apache Doris database. Lets AI clients (Claude Desktop, Cursor, etc.) query and manage Doris databases through the Model Context Protocol.

Install

git clone <repo-url>
cd mcp-doris
pip install -e .

Usage

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "doris": {
      "command": "uv",
      "args": [
        "run",
        "--directory", "/path/to/mcp-doris",
        "python", "-m", "mcp_doris",
        "--host", "192.168.1.100",
        "--port", "9030"
      ],
      "env": {
        "DORIS_USER": "admin",
        "DORIS_PASSWORD": "your_password"
      }
    }
  }
}

You can also configure via environment variables only (no CLI args):

Variable Default
DORIS_HOST 127.0.0.1
DORIS_PORT 9030
DORIS_USER root
DORIS_PASSWORD (empty)
DORIS_CHARSET utf8mb4
DORIS_DATABASE (none)
DORIS_TIMEOUT 30

Tools

Tool Description
list_databases List all databases
list_tables List all tables in a database
describe_table Show CREATE TABLE statement with Doris specifics
execute_query Execute SELECT queries (default limit: 100 rows)
execute_statement Execute DDL/DML (INSERT, UPDATE, DELETE, CREATE)

Resources

Resource Description
schema://{database}/{table} Table schema info

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

mcp_doris_xues87-0.1.1.tar.gz (84.0 kB view details)

Uploaded Source

Built Distribution

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

mcp_doris_xues87-0.1.1-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file mcp_doris_xues87-0.1.1.tar.gz.

File metadata

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

File hashes

Hashes for mcp_doris_xues87-0.1.1.tar.gz
Algorithm Hash digest
SHA256 65549a12432da9ca6cea52103d37070fb383041b8e23c209c266c27165404f05
MD5 a810895a95098c11f4f75669a0de138b
BLAKE2b-256 0954288f51a1da0b21a8b7be6eb7d7393a23c41e4450fe0307e2f452464c355d

See more details on using hashes here.

File details

Details for the file mcp_doris_xues87-0.1.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for mcp_doris_xues87-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0f953db140f604e9c3739901ec48df2683ca63e6d8025bc7de784483edff3945
MD5 4c395788e1722200a4fb47d06c2a8098
BLAKE2b-256 5e2a380dbc170ae60cc50f7effd34cd9f8cce73cc9affbffa6797dfbab63b004

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