Doris

Security

Apache Doris MCP Server.

Your AI app calls the Doris MCP server, which does the security work and sends the result back to the chat.

About Doris

Doris is a community MCP server from apache, filed in our directory under security. Apache Doris MCP Server.

At a glance

Publisher
apache (community)
Runs
See the README for setup
Written in
Python
License
Apache-2.0
GitHub stars
362

How to set up Doris

  1. Follow the install steps in the Doris README; it is written in Python, so have that toolchain ready.
  2. Check the Doris README for keys or settings; the registry lists none that Doris requires.
  3. Add Doris to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Doris tools to confirm the connection.
  5. Run one read-only task with Doris first, and keep your app asking before each tool call until the results look right.

Doris compared with similar servers

  • SysKnife by lacs-project has fewer GitHub stars than Doris (358 against 362); both are community servers, and both run locally.
  • H1 Brain by PatrikFehrenbach has more GitHub stars than Doris (363 against 362); both are community servers, and both run locally.
  • squirrelscan by squirrelscan has fewer GitHub stars than Doris (341 against 362); both are community servers, and squirrelscan runs as a remote server and Doris runs on your own machine.

Before you connect Doris

  • Give Doris its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Doris tool call until you trust what it does with them.
  • Treat text that Doris fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Doris on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Doris

How marketing and sales teams put Doris to work, by company size. Pick the size closest to yours and start Doris on one use case.

Small business

  • A small business can use Doris to check its domains, logins and site for common gaps before they cost a customer's trust.
  • Owners can ask Doris whether a tool or vendor has known issues before connecting it to customer data.
  • Doris runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can use Doris to review what each connected app can access and remove keys nobody uses.
  • Security and web teams can connect Doris to scan campaign sites and forms before launch, not after an incident.
  • Start Doris on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run Doris in the security team's tooling, so marketing's agents and apps are reviewed like any other system.
  • Large orgs can use Doris to keep evidence for audits, showing which agents reached which data and when.
  • Doris is a community server, so have security review the code and pin a version before Doris touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Doris README

From apache/doris-mcp-server on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

Apache Doris MCP Server

English | 简体中文

Apache Doris MCP Server exposes read-only Apache Doris capabilities to MCP Hosts and AI agents over MCP 2026-07-28. Version 1.0 replaces a large flat tool surface with eight stable domains and fifty-five progressively disclosed child capabilities, while keeping runtime availability, authorization, input schemas, output schemas, and failure behavior explicit.

Release status

The package version is 1.0.0. MCP 2026-07-28 protocol compatibility on master is Generally Available (GA) on Streamable HTTP and stdio. This GA statement is scoped to protocol compatibility; the Python package classifier remains Beta, and the documented deployment limits still apply.

Before upgrading, read the 1.0 release notes, the 1.0 migration guide, and the generated 8-domain/55-child registry. The detailed release record is Issue #189.

Architecture at a glance

MCP Host
  -> stdio or Streamable HTTP
  -> transport security and authentication
  -> MCP protocol validation and authorization
  -> stable domain discovery
  -> route-aware Doris capability detection
  -> exact child dispatch and read-only runtime
  -> request-specific Doris route and RBAC
  -> bounded, schema-validated result

The default hierarchical mode exposes these domains:

Domain Children Responsibility
doris_catalog 5 catalogs, databases, tables, table context, size
doris_query 7 query, explain, profile, diagnosis, slow queries, explicit ADBC
doris_cluster 11 nodes, tasks, metrics, memory, cache, compaction, workloads
doris_pipeline 5 ingestion, materialized views, freshness, dependencies
doris_search 4 text/vector/hybrid search, analyzers, indexes, diagnosis
doris_governance 8 quality, storage, lineage, audit, UDFs, auth mapping
doris_lakehouse 3 external catalogs, lakehouse tables, Variant
doris_semantic 12 optional Apache Ossie grounding and MetricFlow consumption

Call a domain with {} to discover its authorized children and exact schemas. Call the same domain again with child_tool, arguments, and the returned manifest_version. Hosts that cannot use progressive disclosure may set MCP_TOOL_EXPOSURE_MODE=flat before startup; this exposes the same 55 children under collision-free formal names and does not restore pre-1.0 aliases.

See Architecture, Request lifecycle, and Tool domains.

Quick start

Requirements:

  • Python 3.12 or later;
  • Apache Doris 2.0.0 or later;
  • network access to the Doris FE MySQL endpoint, normally port 9030.

Install the pinned release:

pip install doris-mcp-server==1.0.0

doris-mcp-server starts the Server. doris-mcp-client is a separate client; the two commands are not interchangeable.

Configure a Doris route:

export DORIS_HOST=127.0.0.1
export DORIS_PORT=9030
export DORIS_USER=mcp_reader
export DORIS_PASSWORD='replace-me'
export DORIS_DATABASE=information_schema

Start Streamable HTTP on loopback:

doris-mcp-server \
  --transport http \
  --host 127.0.0.1 \
  --port 3000

Endpoints:

  • MCP: POST http://127.0.0.1:3000/mcp
  • legacy MCP (opt-in): POST http://127.0.0.1:3000/mcp/legacy
  • liveness: GET http://127.0.0.1:3000/live
  • Doris-backed readiness: GET http://127.0.0.1:3000/ready

Hosts limited to handshake-era Streamable HTTP, including Dify 1.16.1 with MCP 2025-06-18, must set ENABLE_LEGACY_HTTP_ADAPTER=true and connect to /mcp/legacy. The adapter changes only the protocol boundary; it preserves the same 1.0 tools, authorization, capability gates, and read-only execution.

Or run stdio for a local Host:

doris-mcp-server --transport stdio

See the complete Quick start and Host integration guide.

Security boundary

  • The built-in 1.0 catalog is read-only; doris_admin is reserved and not registered.
  • Static tokens, JWT, external OAuth/OIDC, and Doris-backed OAuth are supported under mutually validated configuration boundaries.
  • Domain discovery and child execution use exact authorization identifiers.
  • Doris RBAC remains the final authority for visible objects and data.
  • SQL shape, identifiers, parameters, timeout, rows, bytes, and result schemas are bounded before data leaves the Server.
  • Secrets and backend errors are redacted from public results and logs.
  • Non-loopback HTTP requires authentication unless an explicit dangerous development override is enabled.

Read the Security and permission model and the Doris fine-grained access guide.

Reliability boundary

The Server uses deterministic manifests and errors, signed expiring cursors, route-aware capability snapshots, bounded stale fallback, request-specific connection routing, multi-FE failover, liveness/readiness separation, output Schema validation, and sanitized trace propagation. Unsupported or misconfigured capabilities remain discoverable with callable=false and fail closed when called.

Current limits include process-local Doris-backed OAuth, explicit-only ADBC that is disabled by default and fail-closed on token-bound routes, optional read-only Ossie grounding, an optional MetricFlow compiler sidecar whose SQL must execute through the bounded MCP query runtime, and best-effort native lineage delivery. See Reliability and limits.

Documentation

The root README is intentionally an entry point. The bilingual documentation system is indexed at:

Primary guides:

Development

git clone https://github.com/apache/doris-mcp-server.git
cd doris-mcp-server
uv sync --group dev
uv run pytest

Generated artifacts must remain synchronized:

uv run python generate_tool_catalog.py --check
uv lock --check

See Contributing and verification.

License

Apache License 2.0. See LICENSE.txt and NOTICE.

Questions about Doris

What is the Doris MCP server?

Apache Doris MCP Server. Doris is maintained by apache on GitHub at apache/doris-mcp-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Doris MCP server?

Doris doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (apache/doris-mcp-server). Like most servers, Doris ends with a command or URL you paste into your AI app's MCP config.

Does Doris need an API key?

The registry lists no required keys for Doris. Check the Doris README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Doris an official MCP server?

No. Doris is a community server maintained by apache. Community servers can be excellent; read the code and the open issues before you give Doris access to company data.

What license is Doris under?

Doris is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Doris; the service it connects to has its own terms.