Back to Home
crate icon

cratedb-mcp

Verified Safe

by crate

Overview

CrateDB MCP Server enables natural-language Text-to-SQL and documentation retrieval for CrateDB database clusters, bridging AI assistants with database interaction.

Installation

Run Command
uvx cratedb-mcp serve

Environment Variables

  • CRATEDB_CLUSTER_URL

Security Notes

The server implements SQL statement filtering (using `sqlparse`) to restrict database operations to SELECT queries by default, preventing DML/DDL. URL fetching for documentation and prompt fragments includes whitelisting for CrateDB/GitHub domains or robust HTTP error handling. Logging of HTTPX is configured to avoid revealing credentials. A critical risk exists with the `CRATEDB_MCP_PERMIT_ALL_STATEMENTS` environment variable; if set to true, it bypasses SQL filtering, allowing LLM agents to perform write/modify operations on the connected database. This override is explicitly warned about.

Similar Servers

Stats

Interest Score36
Security Score7
Cost ClassMedium
Avg Tokens1500
Stars8
Forks3
Last Update2026-01-13

Tags

cratedbtext-to-sqldocumentation-retrievalmcp-serverai-assistants