Apache Doris

Apache Doris

MCP Server For Apache Doris, an MPP-based real-time data warehouse.

221
Stars
63
Forks
3
Releases

Overview

Doris MCP Server is a Python-based backend service built with FastAPI that implements the Model Context Protocol (MCP). It enables clients to interact with Doris data sources through a defined set of Tools, and is designed to support NL2SQL workflows, metadata management, and analysis tasks via MCP tool calls. The server exposes two primary communication modes: a Streamable HTTP interface for high-performance web-based interactions and a Stdio interface for direct MCP client usage (e.g., Cursor). It adopts an enterprise-grade architecture centered on a Tools Manager (centralized tool registration and routing), a Resources Manager (metadata exposure), and a Prompts Manager (intelligent data analysis templates). Core database capabilities include high-performance query execution with caching, robust SQL security validation and data masking, and comprehensive metadata extraction with catalog federation across internal Doris catalogs and external sources. Enhanced by multi-worker scaling, instant security validations, hot reload of token/database configuration, and token-bound database configuration, it also ships with a web-based token management dashboard and unified configuration framework for deployment and governance in multi-tenant environments.

Details

Owner
apache
Language
Python
License
Apache License 2.0
Updated
2025-12-07

Features

MCP Protocol Implementation

Provides standard MCP interfaces, enabling tool invocation, resource management, and prompt-driven interactions with clients.

Streamable HTTP Communication

Unified HTTP endpoint supporting both request/response and streaming communication for high performance and reliability.

Stdio Communication

Standard input/output mode for direct integration with MCP clients such as Cursor.

Tools Manager

Centralized tool registration and routing with unified interfaces, enabling modular tool development.

Enhanced Monitoring Tools

Advanced memory tracking, metrics collection, and flexible BE node discovery with modular design.

Query Information Tools

Enhanced SQL explain and profiling with content management, export for LLM workflows, and advanced analytics.

Catalog Federation Support

Full multi-catalog support, enabling internal Doris tables and external sources to be queried via a unified interface.

Web-Based Token Management

Secure localhost-only interface for token lifecycle management, real-time statistics, database binding, and enterprise controls.

Tags

MCP ProtocolDorisFastAPITools ManagerCatalog FederationSecurityToken ManagementADBCStreamable HTTPStdioNL2SQL