Doris MCP Server

Apache Doris MCP Server - TypeScript implementation using MySQL protocol

Local serverstdioPython

What is the Doris MCP server?

Doris MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Apache Doris MCP Server - TypeScript implementation using MySQL protocol.

What you get

Connects to Apache Doris via the MySQL-compatible protocol (port 9030) and exposes the same tool interface as the official apache/doris-mcp-server, with zero Python dependencies.

Setting it up

The server ships on npm as doris-mcp-server, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What the assistant can call

Once Doris is connected, these are the calls the assistant has available:

  • exec_query — Execute a SQL query and return results as JSON
  • get_catalog_list — List all catalogs
  • get_db_list — List all databases
  • get_db_table_list — List all tables in a database
  • get_table_schema — Get column definitions for a table
  • get_table_comment — Get the table-level comment
  • get_table_column_comments — Get comments for all columns in a table
  • get_table_indexes — Get index information for a table
  • get_recent_audit_logs — Query recent audit log records
  • get_sql_explain — Get the execution plan for a SQL query
  • get_table_data_size — Get data size information for a table or database

Configuration and credentials

You will need 5 environment variables: DORIS_HOST, DORIS_PORT, DORIS_USER, DORIS_PASSWORD, DORIS_DATABASE. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Node.js >= 18 - Apache Doris (any version with MySQL protocol enabled, default port 9030)

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 11 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Doris.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the doris mcp server does with a few real requests.

Choosing this one

Plenty of database access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Doris's toolset — exec_query, get_catalog_list, get_db_list and 8 more — is a fair guide to whether it matches your workflow. It is maintained by iakuf; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
exec_queryExecute a SQL query and return results as JSON
get_catalog_listList all catalogs
get_db_listList all databases
get_db_table_listList all tables in a database
get_table_schemaGet column definitions for a table
get_table_commentGet the table-level comment
get_table_column_commentsGet comments for all columns in a table
get_table_indexesGet index information for a table
get_recent_audit_logsQuery recent audit log records
get_sql_explainGet the execution plan for a SQL query
get_table_data_sizeGet data size information for a table or database

How to install the Doris MCP server

{
  "mcpServers": {
    "doris": {
      "command": "doris-mcp-server",
      "args": [
        "--db-host", "127.0.0.1",
        "--db-port", "9030",
        "--db-user", "root",
        "--db-password", "your_password"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js >= 18 - Apache Doris (any version with MySQL protocol enabled, default port 9030)
VariableDescriptionRequired
DORIS_HOSTEndpoint or connection string the server talks to.Optional
DORIS_PORTConfiguration value read at startup.Optional
DORIS_USERConfiguration value read at startup.Optional
DORIS_PASSWORDConfiguration value read at startup.Optional
DORIS_DATABASEConfiguration value read at startup.Optional

Example prompts to try

  • Use Doris to exec query.
  • Use Doris to get catalog list.
  • Use Doris to get db list.

Frequently asked questions

It connects Doris to MCP-compatible AI assistants such as Claude and Cursor, exposing 11 tools (exec_query, get_catalog_list, get_db_list, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Doris directly.