Doris MCP Server Integration
Connect FlowHunt agents to Apache Doris with the Doris MCP Server for secure, efficient database access, advanced analytics, and streamlined natural language workflows.

What does “Doris” MCP Server do?
Doris MCP (Model Context Protocol) Server is a backend service built with Python and FastAPI designed to connect AI assistants and clients with Apache Doris databases. By implementing the MCP standard, it facilitates secure and efficient interactions between language models and external data sources. Doris MCP Server enables tasks such as converting natural language queries to SQL (NL2SQL), executing database queries, retrieving and managing metadata, and performing advanced monitoring and analytics. Its modular architecture includes dedicated managers for tools, prompts, and resources, making it a robust solution for enhancing data development workflows, automating database management, and integrating AI-driven insights into enterprise systems.
List of Prompts
- Intelligent prompt templates for data analysis
(These are managed by the Prompts Manager and are designed to standardize LLM interactions for data analysis tasks. Specific templates are referenced but not listed individually in the available documentation.)
List of Resources
- Resource Management and Metadata Exposure
(Exposes Doris database metadata and resources to AI clients via the Resources Manager.) - Catalog Federation Support
(Allows access to both internal Doris tables and external sources like Hive and MySQL.) - Comprehensive Database Metadata
(Provides detailed metadata extraction for use as LLM context.) - Query Analytics Artifacts
(Exports query explain and profiling results for LLM attachment and analysis.)
List of Tools
- Enhanced Monitoring Tools
(Advanced memory tracking, metrics collection, and backend node discovery.) - Query Information Tools
(Provides SQL explain, profiling, and analytics features.) - Tools Manager
(Central tool registration and routing interface for orchestrating tool calls through MCP.) - Resources Manager
(Handles resource exposure and metadata management.) - Prompts Manager
(Manages and serves prompt templates for AI and LLM workflows.)
Use Cases of this MCP Server
- Natural Language to SQL (NL2SQL):
Enables developers to convert human language queries into SQL statements for Doris databases, streamlining data access and analysis. - Advanced Query Monitoring and Profiling:
Provides in-depth SQL explain, performance profiling, and analytics tools, aiding in performance tuning and diagnostics. - Metadata Exploration and Management:
Allows AI-powered systems to explore database schemas, catalogs, and resources, supporting tasks like documentation generation or automated data mapping. - Multi-Source Data Integration:
Supports catalog federation, enabling seamless integration with external data sources (e.g., Hive, MySQL) for comprehensive analytics workflows. - Secure Data Operations:
Implements robust security, access control, and data masking, ensuring safe interactions between LLMs and sensitive enterprise data.
How to set it up
Windsurf
Ensure Python 3.12+ is installed.
Install the package:
pip install mcp-doris-server@latest
Edit the Windsurf configuration file to add the Doris MCP server.
Insert the following snippet under
mcpServers
:{ "doris-mcp": { "command": "mcp-doris-server", "args": [] } }
Save and restart Windsurf.
Verify the server is running and accepting connections.
Claude
Install Python 3.12+.
Install the Doris MCP server:
pip install mcp-doris-server@latest
Add the server to Claude’s configuration under
mcpServers
.Use a JSON snippet like:
{ "doris-mcp": { "command": "mcp-doris-server", "args": [] } }
Restart Claude and check integration.
Cursor
Ensure Python 3.12+ is installed.
Install the server:
pip install mcp-doris-server@latest
In Cursor’s config, add:
{ "mcpServers": { "doris-mcp": { "command": "mcp-doris-server", "args": [] } } }
Save configuration and restart Cursor.
Confirm the Doris MCP server connection.
Cline
Install Python 3.12+.
Install the Doris MCP server:
pip install mcp-doris-server@latest
Update the Cline MCP configuration with:
{ "mcpServers": { "doris-mcp": { "command": "mcp-doris-server", "args": [] } } }
Save the config and restart Cline.
Check the MCP server status.
Securing API Keys
Store sensitive credentials and API keys in environment variables. Example using .env
:
{
"env": {
"DORIS_HOST": "your-doris-host",
"DORIS_PORT": "your-port",
"DORIS_USER": "username",
"DORIS_PASSWORD": "password"
},
"inputs": {
"database": "your-database"
}
}
Ensure environment variables are referenced in your configuration for enhanced security.
How to use this MCP inside flows
Using MCP in FlowHunt
To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:
{
"doris-mcp": {
"transport": "streamable_http",
"url": "https://yourmcpserver.example/pathtothemcp/url"
}
}
Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “doris-mcp” to the actual name of your MCP server and update the URL accordingly.
Overview
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | Describes core features, architecture, and purpose |
List of Prompts | ✅ | Prompt templates referenced, not individually listed |
List of Resources | ✅ | Resource manager, catalog federation, metadata, query analytics |
List of Tools | ✅ | Monitoring tools, query info tools, tool manager, resource manager, prompt manager |
Securing API Keys | ✅ | .env example, recommends using environment variables |
Sampling Support (less important in evaluation) | ⛔ | Not mentioned in the available documentation |
Based on the information above, the Doris MCP Server is well-documented in terms of features, resources, and setup. However, some details about prompt templates and sampling support are lacking or not explicitly listed, which slightly limits its completeness for advanced MCP workflows.
Our opinion
Given the strong presence of core MCP features, robust security and resource management, and clear setup guidance, the Doris MCP Server rates as an 8/10 for MCP protocol support and practical application. Gaps mainly relate to explicit prompt listings and lack of sampling/roots documentation.
MCP Score
Has a LICENSE | ✅ (Apache-2.0) |
---|---|
Has at least one tool | ✅ |
Number of Forks | 25 |
Number of Stars | 86 |
Frequently asked questions
- What does the Doris MCP Server do?
The Doris MCP Server is a backend service that connects AI agents and clients to Apache Doris databases using the MCP protocol. It enables natural language to SQL conversion, query execution, metadata management, advanced monitoring, and secure analytics workflows.
- What kinds of tools and resources does it provide?
It offers intelligent prompt templates for data analysis, comprehensive metadata exposure, catalog federation (accessing Doris, Hive, MySQL), advanced monitoring, query explain/profiling, and modular management for tools, resources, and prompts.
- How do I securely connect to Doris MCP Server?
Store your Doris credentials and sensitive data as environment variables (e.g., using a .env file) and reference them in your MCP configuration. This ensures secure, maintainable setups for enterprise workflows.
- What are typical use cases for Doris MCP Server?
Use cases include NL2SQL (natural language to SQL), performance profiling, metadata exploration, multi-source integration (Doris, Hive, MySQL), secure data access, and automating data development workflows with AI.
- How do I integrate Doris MCP Server in FlowHunt?
Add the MCP component to your FlowHunt flow, configure the MCP server details in the system MCP config, and connect it to your AI agent. FlowHunt agents can then use Doris MCP Server as a tool for queries, analytics, and metadata tasks.
Integrate Doris MCP Server with FlowHunt
Enhance your data-driven applications with Doris MCP Server. Connect, analyze, and automate database workflows using natural language and secure AI integration.