Back to Home
crate icon

cratedb-mcp

Verified Safe

by crate

Overview

The CrateDB MCP Server enables natural-language Text-to-SQL querying, cluster health monitoring, and documentation retrieval for CrateDB database clusters, acting as a bridge for AI assistants.

Installation

Run Command
uvx cratedb-mcp serve

Environment Variables

  • CRATEDB_CLUSTER_URL
  • CRATEDB_MCP_TRANSPORT
  • CRATEDB_MCP_HOST
  • CRATEDB_MCP_PORT
  • CRATEDB_MCP_PATH
  • CRATEDB_MCP_HTTP_TIMEOUT
  • CRATEDB_MCP_DOCS_CACHE_TTL
  • CRATEDB_MCP_PERMIT_ALL_STATEMENTS
  • CRATEDB_MCP_INSTRUCTIONS
  • CRATEDB_MCP_CONVENTIONS

Security Notes

The server enforces read-only SQL (DQL) by default, rejecting DDL/DML statements. It includes URL whitelisting for documentation fetching to prevent arbitrary external requests. A `CRATEDB_MCP_PERMIT_ALL_STATEMENTS` environment variable can bypass the read-only restriction, but it's explicitly warned against. Logging of HTTPX is tamed to avoid exposing credentials. The primary security risks stem from user configuration, such as pointing to an untrusted CrateDB cluster or using privileged database credentials with `CRATEDB_MCP_PERMIT_ALL_STATEMENTS` enabled.

Similar Servers

Stats

Interest Score36
Security Score8
Cost ClassHigh
Avg Tokens2000
Stars8
Forks3
Last Update2025-12-02

Tags

cratedbmcp servertext-to-sqldocumentation retrievalAI assistantsdatabase interaction