Feedback

StarRocks Official MCP Server

@starrocks Claim

Basic information

Runtime
python
Category
License
Apache-2.0
Transports
stdio
Author
starrocks
Submitted by
Community
Quality
50
Stars
179

About StarRocks Official MCP Server

StarRocks MCP (Model Context Protocol) Server

StarRocks Official MCP Server is a MCP server in the Other category listed in the AddMCP.net directory, published by StarRocks. Supported transport: stdio. Runtime: python. License: Apache-2.0. The repository has 179 GitHub stars. Source code is hosted on github.com. Related topics: agent, ai, database, mcp-server, model-context-protocol.

Setup

{
    "mcpServers": {
        "mcp-server-starrocks": {
            "command": "uv",
            "args": [
                "run",
                "--with",
                "mcp-server-starrocks",
                "mcp-server-starrocks",
                "--help"
            ]
        }
    }
}

StarRocks Official MCP Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "mcp-server-starrocks": {
            "command": "uv",
            "args": [
                "run",
                "--with",
                "mcp-server-starrocks",
                "mcp-server-starrocks",
                "--help"
            ]
        }
    }
}

StarRocks Official MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is StarRocks Official MCP Server?

The StarRocks Official MCP Server acts as a bridge between AI assistants and StarRocks databases. It enables direct SQL execution, database exploration, data visualization via charts, and retrieval of detailed schema and data overviews without requiring complex client-side setup.

How to use StarRocks Official MCP Server?

Install uv (Python package manager) and configure an MCP host (e.g., Claude Desktop) to launch the server. Connection is set via environment variables (STARROCKS_URL or individual vars like STARROCKS_HOST, STARROCKS_PORT, etc.) or a Streamable HTTP endpoint. Run with uv run mcp-server-starrocks and optional flags like --mode stdio or --mode streamable-http --port 8000.

Key features of StarRocks Official MCP Server

  • Direct SQL execution: read_query (SELECT) and write_query (DDL/DML).
  • Database exploration via starrocks:// resources (list databases, tables, schemas).
  • System information access through proc:// resource path.
  • Detailed overviews: table_overview and db_overview with row counts, samples.
  • Data visualization: query_and_plotly_chart generates Plotly charts from query results.
  • Intelligent in‑memory caching of table and database overviews (bypassable).

Use cases of StarRocks Official MCP Server

  • AI assistant querying StarRocks to answer business questions in natural language.
  • Generating charts and visualizations directly from SQL results.
  • Exploring database schema and contents for context‑aware LLM interactions.
  • Monitoring StarRocks cluster internals via the proc:// resource.
  • Automating data analysis workflows without a custom SQL client.

Frequently asked questions

1 What are the prerequisites to run the server?

Python 3.11+, a reachable StarRocks cluster (FE service, default localhost:9030 over MySQL protocol), and the uv package manager.

2 How do I configure the StarRocks connection?

Use either a single STARROCKS_URL (e.g., root:password@localhost:9030/my_db) or individual environment variables (STARROCKS_HOST, STARROCKS_PORT, STARROCKS_USER, STARROCKS_PASSWORD, STARROCKS_DB). The URL takes precedence.

3 What transport modes are supported?

stdio (default, for MCP hosts), streamable-http (recommended for RESTful APIs), and sse (deprecated, not recommended). Set via --mode flag or MCP_TRANSPORT_MODE env var.

4 Can the server connect using Arrow Flight SQL?

Yes. Set the STARROCKS_FE_ARROW_FLIGHT_SQL_PORT environment variable to enable high‑performance Arrow Flight SQL protocol via ADBC drivers.

5 Where do output files from `read_query` get saved?

By default to ~/.mcp-server-starrocks/output/ (controlled by STARROCKS_MCP_OUTPUT_DIR). Absolute paths bypass this setting. Files are written on the machine running the MCP server.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬