The Apache Doris MCP Server provides a Model Context Protocol interface for Apache Doris, allowing seamless integration with tools that support the MCP standard. This server enables you to interact with your Doris database using natural language processing capabilities.
To use the MCP server for Apache Doris, you'll need to have uv installed on your system. This is a package manager and virtual environment tool that will handle the dependencies.
To use the MCP server with Cursor, add a new command with the following configuration:
Name: doris
Type: command
Command: DORIS_HOST=<doris-host> DORIS_PORT=<port> DORIS_USER=<doris-user> DORIS_PASSWORD=<doris-pwd> uv run --with mcp-doris --python 3.13 mcp-doris
Replace the placeholder values with your actual Apache Doris connection details:
<doris-host>
: Your Doris server hostname or IP address<port>
: The port number for your Doris server<doris-user>
: Your Doris username<doris-pwd>
: Your Doris passwordIf you prefer to run the server directly, you can use the MCP inspector mode:
# Set your Doris connection details
export DORIS_HOST=<doris-host>
export DORIS_PORT=<port>
export DORIS_USER=<doris-user>
export DORIS_PASSWORD=<doris-pwd>
# Run the MCP server
uv run --with mcp-doris --python 3.13 mcp-doris
After the server is running, you can interact with it through any MCP-compatible client, or use the built-in MCP inspector by visiting http://localhost:5173
in your web browser.
If you encounter connection issues:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "doris" '{"command":"uv","args":["run","--with","mcp-doris","--python","3.13","mcp-doris"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"doris": {
"command": "uv",
"args": [
"run",
"--with",
"mcp-doris",
"--python",
"3.13",
"mcp-doris"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"doris": {
"command": "uv",
"args": [
"run",
"--with",
"mcp-doris",
"--python",
"3.13",
"mcp-doris"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect