About Apache Doris
Apache Doris is an MCP server published by apache in the Developer Tools category: apache Doris MCP Server. Conduid read 25 tools from its source: analyze_columns, analyze_data_access_patterns, analyze_data_flow_dependencies, analyze_resource_growth_curves, analyze_slow_queries_topn, analyze_table_storage and 19 more. No package is published for it, so it installs from a source checkout.
The repository has 361 stars and 109 forks, is licensed Apache-2.0, and its last commit was on 26 Nov 2026. The latest release is 1.0.0 (1 Aug 2026): Apache Doris MCP Server 1.0.0 establishes the project's first versioned public contract for exposing read-only Apache Doris capabilities to MCP Hosts and AI agents over… It follows 0.6.0 (9 Sep 2025), and the 4 most recent releases go back to 0.4.2 (2 Jul 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include doris, database, analytics and sql.
Install
git clone https://github.com/apache/doris-mcp-serverTools (25)
analyze_columns[Function Description]: Analyze completeness and distribution of specified columns in a table. [Parameter Content]: - table_name (string) [Required] - Name of the table to analyze - columns (array) [Required] - List of column names to analyze - analysis_types (array) [Optional] - Types of analysis to perform, default is ["both"] * "completeness": Only completeness analysis (null rates, non-null counts) * "distribution": Only distribution analysis (statistical patterns by data type) * "both": Both completeness and distribution analysis - sample_size (integer) [Optional] - Maximum number of rows to sample, default is 100000 - catalog_name (string) [Optional] - Target catalog name - db_name (string) [Optional] - Target database name - detailed_response (boolean) [Optional] - Whether to return detailed response including raw data, default is false| Parameter | Type | Description |
|---|---|---|
| analysis_types | array | Types of analysis to perform |
| catalog_name | string | Target catalog name |
| columns * | array | List of column names to analyze |
| db_name | string | Target database name |
| detailed_response | boolean | Whether to return detailed response including raw data |
| sample_size | integer | Maximum number of rows to sample |
| table_name * | string | Name of the table to analyze |
analyze_data_access_patterns[Function Description]: Analyze user data access patterns, security anomalies, and access behavior. [Parameter Content]: - days (integer) [Optional] - Number of days to analyze, default is 7 - include_system_users (boolean) [Optional] - Whether to include system users in analysis, default is false - min_query_threshold (integer) [Optional] - Minimum queries for user inclusion, default is 5| Parameter | Type | Description |
|---|---|---|
| days | integer | Number of days to analyze |
| include_system_users | boolean | Whether to include system users |
| min_query_threshold | integer | Minimum queries for user inclusion |
analyze_data_flow_dependencies[Function Description]: Analyze data flow dependencies and impact relationships between tables. [Parameter Content]: - target_table (string) [Optional] - Specific table to analyze, if not specified analyzes all tables - analysis_depth (integer) [Optional] - Maximum depth for dependency traversal, default is 3 - include_views (boolean) [Optional] - Whether to include views in analysis, default is true - catalog_name (string) [Optional] - Target catalog name - db_name (string) [Optional] - Target database name| Parameter | Type | Description |
|---|---|---|
| analysis_depth | integer | Maximum depth for dependency traversal |
| catalog_name | string | Target catalog name |
| db_name | string | Target database name |
| include_views | boolean | Whether to include views in analysis |
| target_table | string | Specific table to analyze |
analyze_resource_growth_curves[Function Description]: Analyze resource growth patterns and trends for capacity planning. [Parameter Content]: - days (integer) [Optional] - Number of days to analyze, default is 30 - resource_types (array) [Optional] - Types of resources to analyze, default is ["storage", "query_volume", "user_activity"] - include_predictions (boolean) [Optional] - Whether to include growth predictions, default is false| Parameter | Type | Description |
|---|---|---|
| days | integer | Number of days to analyze |
| detailed_response | boolean | Whether to return detailed data including daily breakdowns |
| include_predictions | boolean | Whether to include growth predictions |
| resource_types | array | Types of resources to analyze |
analyze_slow_queries_topn[Function Description]: Analyze top N slowest queries and identify performance patterns and issues. [Parameter Content]: - days (integer) [Optional] - Number of days to analyze, default is 7 - top_n (integer) [Optional] - Number of top slow queries to return, default is 20 - min_execution_time_ms (integer) [Optional] - Minimum execution time threshold in milliseconds, default is 1000 - include_patterns (boolean) [Optional] - Whether to include query pattern analysis, default is true| Parameter | Type | Description |
|---|---|---|
| days | integer | Number of days to analyze |
| include_patterns | boolean | Whether to include query pattern analysis |
| min_execution_time_ms | integer | Minimum execution time threshold in milliseconds |
| top_n | integer | Number of top slow queries to return |
analyze_table_storage[Function Description]: Analyze table's physical distribution and storage information. [Parameter Content]: - table_name (string) [Required] - Name of the table to analyze - catalog_name (string) [Optional] - Target catalog name - db_name (string) [Optional] - Target database name - detailed_response (boolean) [Optional] - Whether to return detailed response including raw data, default is false| Parameter | Type | Description |
|---|---|---|
| catalog_name | string | Target catalog name |
| db_name | string | Target database name |
| detailed_response | boolean | Whether to return detailed response including raw data |
| table_name * | string | Name of the table to analyze |
exec_adbc_query[Function Description]: Execute SQL query using ADBC (Arrow Flight SQL) protocol for high-performance data transfer. [Parameter Content]: - sql (string) [Required] - SQL statement to execute - max_rows (integer) [Optional] - Maximum number of rows to return, default is {adbc_default_max_rows} - max_bytes (integer) [Optional] - Maximum UTF-8 JSON bytes for returned row data, default is {result_limits.max_bytes} - timeout (integer) [Optional] - Query timeout in seconds, default is {adbc_default_timeout} - return_format (string) [Optional] - Format for returned data, default is "{adbc_config.default_return_format}" * "arrow": Return Arrow format with metadata * "pandas": Return Pandas DataFrame format * "dict": Return dictionary format [Prerequisites]: - Environment variables FE_ARROW_FLIGHT_SQL_PORT and BE_ARROW_FLIGHT_SQL_PORT must be configured - Required Python packages: adbc_driver_manager, adbc_driver_flightsql - Arrow Flight SQL services must be running on FE and BE nodes| Parameter | Type | Description |
|---|---|---|
| max_bytes | integer | Maximum UTF-8 JSON result bytes |
| max_rows | integer | Maximum number of rows to return |
| return_format | string | Format for returned data |
| sql * | string | SQL statement to execute |
| timeout | integer | Query timeout in seconds |
exec_query[Function Description]: Execute SQL query and return result command with catalog federation support. [Parameter Content]: - sql (string) [Required] - SQL statement to execute. MUST use three-part naming for all table references: 'catalog_name.db_name.table_name'. For internal tables use 'internal.db_name.table_name', for external tables use 'catalog_name.db_name.table_name' - db_name (string) [Optional] - Target database name, defaults to the current database - catalog_name (string) [Optional] - Reference catalog name for context, defaults to current catalog - max_rows (integer) [Optional] - Maximum number of rows to return, defaults to the configured DEFAULT_RESULT_ROWS value - max_bytes (integer) [Optional] - Maximum UTF-8 JSON bytes for returned row data - timeout (integer) [Optional] - Query timeout in seconds, default 30| Parameter | Type | Description |
|---|---|---|
| catalog_name | string | Catalog name |
| db_name | string | Target database name |
| max_bytes | integer | Maximum UTF-8 JSON bytes for returned row data |
| max_rows | integer | Maximum number of rows to return |
| sql * | string | SQL statement to execute, must use three-part naming |
| timeout | integer | Timeout in seconds |
get_adbc_connection_info[Function Description]: Get ADBC (Arrow Flight SQL) connection information and status. [Parameter Content]: No parameters required. Returns connection status, configuration, and diagnostic information.get_catalog_list[Function Description]: Get a list of all catalog names on the server. [Parameter Content]: - random_string (string) [Required] - Unique identifier for the tool call| Parameter | Type | Description |
|---|---|---|
| random_string * | string | Unique identifier |
get_db_list[Function Description]: Get a list of all database names on the server. [Parameter Content]: - catalog_name (string) [Optional] - Target catalog name for federation queries, defaults to current catalog| Parameter | Type | Description |
|---|---|---|
| catalog_name | string | Catalog name |
get_db_table_list[Function Description]: Get a list of all table names in the specified database. [Parameter Content]: - db_name (string) [Optional] - Target database name, defaults to the current database - catalog_name (string) [Optional] - Target catalog name for federation queries, defaults to current catalog| Parameter | Type | Description |
|---|---|---|
| catalog_name | string | Catalog name |
| db_name | string | Database name |
get_memory_stats[Function Description]: Get comprehensive memory statistics from Doris BE nodes, supporting both real-time and historical data. [Parameter Content]: - data_type (string) [Optional] - Type of memory data to retrieve, default is "realtime" * "realtime": Real-time memory statistics via Memory Tracker web interface * "historical": Historical memory statistics via Bvar interface * "both": Both real-time and historical data - tracker_type (string) [Optional] - Type of memory trackers to retrieve (for real-time), default is "overview" * "overview": Overview type trackers (process memory, tracked memory summary) * "global": Global shared memory trackers (cache, metadata) * "query": Query-related memory trackers * "load": Load-related memory trackers * "compaction": Compaction-related memory trackers * "all": All memory tracker types - tracker_names (array) [Optional] - List of specific tracker names for historical data * Example: ["process_resident_memory", "global", "query", "load", "compaction"] - time_range (string) [Optional] - Time range for historical data, default is "1h" * "1h": Last 1 hour * "6h": Last 6 hours * "24h": Last 24 hours - include_details (boolean) [Optional] - Whether to include detailed tracker information and definitions, default is true| Parameter | Type | Description |
|---|---|---|
| data_type | string | Type of memory data to retrieve |
| include_details | boolean | Whether to include detailed tracker information and definitions |
| time_range | string | Time range for historical data |
| tracker_names | array | List of specific tracker names for historical data |
| tracker_type | string | Type of memory trackers to retrieve (for real-time) |
get_monitoring_metrics[Function Description]: Get comprehensive Doris monitoring metrics including definitions and/or actual data from FE and BE nodes. [Parameter Content]: - content_type (string) [Optional] - Type of monitoring content to retrieve, default is "data" * "definitions": Only metric definitions and descriptions * "data": Only actual metric data from nodes * "both": Both definitions and data - role (string) [Optional] - Node role to monitor, default is "all" * "fe": Only FE nodes/metrics * "be": Only BE nodes/metrics * "all": Both FE and BE nodes/metrics - monitor_type (string) [Optional] - Type of monitoring metrics, default is "all" * "process": Process monitoring metrics * "jvm": JVM monitoring metrics (FE only) * "machine": Machine monitoring metrics * "all": All monitoring types - priority (string) [Optional] - Metric priority level, default is "core" * "core": Only core essential metrics (10-12 items for production use) * "p0": Only P0 (highest priority) metrics * "all": All metrics (P0 and non-P0) - include_raw_metrics (boolean) [Optional] - Whether to include raw detailed metrics data (can be very large), default is false| Parameter | Type | Description |
|---|---|---|
| content_type | string | Type of monitoring content to retrieve |
| include_raw_metrics | boolean | Whether to include raw detailed metrics data (can be very large) |
| monitor_type | string | Type of monitoring metrics |
| priority | string | Metric priority level |
| role | string | Node role to monitor |
get_recent_audit_logs[Function Description]: Get audit log records for a recent period. [Parameter Content]: - days (integer) [Optional] - Number of recent days of logs to retrieve, default is 7 - limit (integer) [Optional] - Maximum number of records to return, default is 100| Parameter | Type | Description |
|---|---|---|
| days | integer | Number of recent days |
| limit | integer | Maximum number of records |
get_sql_explain[Function Description]: Get SQL execution plan using EXPLAIN command based on Doris syntax. [Parameter Content]: - sql (string) [Required] - SQL statement to explain - verbose (boolean) [Optional] - Whether to show verbose information, default is false - db_name (string) [Optional] - Target database name, defaults to the current database - catalog_name (string) [Optional] - Target catalog name for federation queries, defaults to current catalog| Parameter | Type | Description |
|---|---|---|
| catalog_name | string | Catalog name |
| db_name | string | Database name |
| sql * | string | SQL statement to explain |
| verbose | boolean | Whether to show verbose information |
get_sql_profile[Function Description]: Get SQL execution profile by setting trace ID and fetching profile via FE HTTP API. [Parameter Content]: - sql (string) [Required] - SQL statement to profile - db_name (string) [Optional] - Target database name, defaults to the current database - catalog_name (string) [Optional] - Target catalog name for federation queries, defaults to current catalog - timeout (integer) [Optional] - Query timeout in seconds, default is 30| Parameter | Type | Description |
|---|---|---|
| catalog_name | string | Catalog name |
| db_name | string | Database name |
| sql * | string | SQL statement to profile |
| timeout | integer | Query timeout in seconds |
get_table_basic_info[Function Description]: Get basic information about a table including row count, column count, partitions, and size. [Parameter Content]: - table_name (string) [Required] - Name of the table to analyze - catalog_name (string) [Optional] - Target catalog name - db_name (string) [Optional] - Target database name| Parameter | Type | Description |
|---|---|---|
| catalog_name | string | Target catalog name |
| db_name | string | Target database name |
| table_name * | string | Name of the table to analyze |
get_table_column_comments[Function Description]: Get comment information for all columns in the specified table. [Parameter Content]: - table_name (string) [Required] - Name of the table to query - db_name (string) [Optional] - Target database name, defaults to the current database - catalog_name (string) [Optional] - Target catalog name for federation queries, defaults to current catalog| Parameter | Type | Description |
|---|---|---|
| catalog_name | string | Catalog name |
| db_name | string | Database name |
| table_name * | string | Table name |
get_table_comment[Function Description]: Get the comment information for the specified table. [Parameter Content]: - table_name (string) [Required] - Name of the table to query - db_name (string) [Optional] - Target database name, defaults to the current database - catalog_name (string) [Optional] - Target catalog name for federation queries, defaults to current catalog| Parameter | Type | Description |
|---|---|---|
| catalog_name | string | Catalog name |
| db_name | string | Database name |
| table_name * | string | Table name |
get_table_data_size[Function Description]: Get table data size information via FE HTTP API. [Parameter Content]: - db_name (string) [Optional] - Database name, if not specified returns all databases - table_name (string) [Optional] - Table name, if not specified returns all tables in the database - single_replica (boolean) [Optional] - Whether to get single replica data size, default is false| Parameter | Type | Description |
|---|---|---|
| db_name | string | Database name |
| single_replica | boolean | Whether to get single replica data size |
| table_name | string | Table name |
get_table_indexes[Function Description]: Get index information for the specified table. [Parameter Content]: - table_name (string) [Required] - Name of the table to query - db_name (string) [Optional] - Target database name, defaults to the current database - catalog_name (string) [Optional] - Target catalog name for federation queries, defaults to current catalog| Parameter | Type | Description |
|---|---|---|
| catalog_name | string | Catalog name |
| db_name | string | Database name |
| table_name * | string | Table name |
get_table_schema[Function Description]: Get detailed structure information of the specified table (columns, types, comments, etc.). [Parameter Content]: - table_name (string) [Required] - Name of the table to query - db_name (string) [Optional] - Target database name, defaults to the current database - catalog_name (string) [Optional] - Target catalog name for federation queries, defaults to current catalog| Parameter | Type | Description |
|---|---|---|
| catalog_name | string | Catalog name |
| db_name | string | Database name |
| table_name * | string | Table name |
monitor_data_freshness[Function Description]: Monitor data freshness and staleness patterns for specified tables. [Parameter Content]: - table_names (array) [Optional] - List of table names to monitor, if not specified monitors all tables - freshness_threshold_hours (integer) [Optional] - Freshness threshold in hours, default is 24 - include_update_patterns (boolean) [Optional] - Whether to include update pattern analysis, default is true - catalog_name (string) [Optional] - Target catalog name - db_name (string) [Optional] - Target database name| Parameter | Type | Description |
|---|---|---|
| catalog_name | string | Target catalog name |
| db_name | string | Target database name |
| freshness_threshold_hours | integer | Freshness threshold in hours |
| include_update_patterns | boolean | Whether to include update pattern analysis |
| table_names | array | List of table names to monitor |
trace_column_lineage[Function Description]: Trace data lineage for specified columns through SQL analysis and dependency mapping. [Parameter Content]: - target_columns (array) [Required] - List of column specifications in format "table.column" or "db.table.column" - analysis_depth (integer) [Optional] - Maximum depth for lineage tracing, default is 3 - include_transformations (boolean) [Optional] - Whether to include transformation details, default is true - catalog_name (string) [Optional] - Target catalog name| Parameter | Type | Description |
|---|---|---|
| analysis_depth | integer | Maximum depth for lineage tracing |
| catalog_name | string | Target catalog name |
| include_transformations | boolean | Whether to include transformation details |
| target_columns * | array | List of column specifications |
Security checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 941 words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 101 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPdoris_mcp_client/client.py:498, doris_mcp_client/client.py:498
- Starts other programs
- 1 calldoris_mcp_server/semantic/metricflow.py:150
- Outbound network calls
- 4 callsdoris_mcp_server/auth/doris_oauth_client_metadata.py:244, doris_mcp_server/auth/oauth_client.py:223, doris_mcp_server/auth/oauth_client.py:301
- Writes or deletes files
- 13 callsdoris_mcp_server/auth/key_manager.py:287, doris_mcp_server/auth/key_manager.py:292, doris_mcp_server/auth/token_manager.py:889
- Lockfile
- uv.lock
Pattern matches on the source text of 101 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 941 words, fetched yesterday. The original in the repository is authoritative.
Read full README