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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_doris_xues87-0.2.0.tar.gz.
File metadata
- Download URL: mcp_doris_xues87-0.2.0.tar.gz
- Upload date:
- Size: 83.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0988a0bae6aa49cd7ba453c1bfcdd09616245d1918f5961010e31c1e13bf470
|
|
| MD5 |
9399a6a8e23955cc42de68513fc36570
|
|
| BLAKE2b-256 |
de4349d8c999da3419e38feabeb7cf8de7758237fcbf28ab1cb6e3f47c4f7f71
|
File details
Details for the file mcp_doris_xues87-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mcp_doris_xues87-0.2.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac82e73e78c7827539f0ab204579a2a40230268607af4a01def719c19a7e1736
|
|
| MD5 |
a3c311b46f243753cc301de6322aa964
|
|
| BLAKE2b-256 |
f34465e26eff4865303b6804883e88c434b8183e7e8961bde98b0e62e140953c
|