StarRocks MCP
by StarRocks
Sub-second analytics on fresh data with high concurrency via MCP
database Python Intermediate Self-hostable
β 100 stars π
Updated: 1mo ago
Description
MCP server for interacting with StarRocks, an analytics platform designed for sub-second queries on fresh data with high concurrency and low latency. StarRocks excels at real-time dashboards, ad-hoc queries, and data lake analytics. This server lets AI assistants execute SQL queries, explore database schemas, and analyze query performance directly on StarRocks clusters. Compatible with MySQL protocol and supports querying external data sources like Apache Hive, Apache Iceberg, and Delta Lake without data movement. Ideal for teams that need blazing-fast analytics on both internal tables and data lake formats.
β Best for
Teams building real-time dashboards and analytics that need sub-second query performance across both internal and lake data
βοΈ Skip if
You need a general-purpose transactional database or only work with small datasets
π‘ Use cases
- Running sub-second analytical queries from AI assistants for real-time dashboards
- Exploring and querying data across internal tables and external data lakes
- Analyzing query performance and identifying optimization opportunities
- Ad-hoc data exploration with natural language on StarRocks clusters
π Pros
- β Sub-second query latency even on complex analytical workloads
- β MySQL-compatible protocol β LLMs can generate standard SQL directly
- β Native data lake analytics (Hive, Iceberg, Delta Lake) without data movement
- β High concurrency support for dashboard and multi-user scenarios
π Cons
- β Requires a running StarRocks cluster (not trivial to set up locally)
- β Focused on analytical workloads β not designed for heavy OLTP transactions
- β Smaller community compared to more established data warehouses
π§ Exposed tools (4 tools)
| Tool | Category | Description |
|---|---|---|
| list_databases | discovery | List all available databases and external catalogs |
| describe_table | discovery | Get schema details and column types for a table |
| analyze_performance | optimization | Analyze query performance and suggest optimizations |
| execute_query | query | Execute a SQL query on the StarRocks cluster |
β‘ Installation
Prerequisites:
- β’ python v3.10+
- β’ StarRocks database credentials (host, port, user, password)
- β’ API key required
Check Claude Code documentation to configure this MCP server.
π‘ Tips & tricks
StarRocks is MySQL-compatible, so use standard SQL syntax. Use describe_table to inspect schemas before writing queries. For data lake analytics, check available external catalogs first. The analyze_performance tool helps identify slow queries and missing indexes.
π Alternatives
Quick info
- Author
- StarRocks
- License
- Apache-2.0
- Runtime
- Python 3.10+
- Transport
- stdio
- Category
- database
- Difficulty
- Intermediate
- Self-hostable
- β
- Auth
- β
- Docker
- β
- Version
- latest
- Updated
- Feb 28, 2026
Client compatibility
- β Claude Code
- β Cursor
- β VS Code Copilot
- β Gemini CLI
- β Windsurf
- β Cline
- β JetBrains AI
- β Warp
Platforms
π macOS π§ Linux πͺ Windows