MCP Server Starrocks logo

MCP Server Starrocks

Connects AI assistants to StarRocks for SQL execution, schema discovery, database overviews, and Plotly chart generation.

Install MCP Server Starrocks

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server-starrocks": {
      "command": "uvx",
      "args": [
        "mcp-server-starrocks"
      ],
      "env": {
        "STARROCKS_URL": "YOUR_VALUE_HERE",
        "STARROCKS_HOST": "YOUR_VALUE_HERE",
        "STARROCKS_PORT": "YOUR_VALUE_HERE",
        "STARROCKS_USER": "YOUR_VALUE_HERE",
        "STARROCKS_PASSWORD": "YOUR_VALUE_HERE",
        "STARROCKS_DB": "YOUR_VALUE_HERE",
        "STARROCKS_PASSWORD_FILE": "YOUR_VALUE_HERE",
        "MCP_TRANSPORT_MODE": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env STARROCKS_URL=YOUR_VALUE_HERE --env STARROCKS_HOST=YOUR_VALUE_HERE --env STARROCKS_PORT=YOUR_VALUE_HERE --env STARROCKS_USER=YOUR_VALUE_HERE --env STARROCKS_PASSWORD=YOUR_VALUE_HERE --env STARROCKS_DB=YOUR_VALUE_HERE --env STARROCKS_PASSWORD_FILE=YOUR_VALUE_HERE --env MCP_TRANSPORT_MODE=YOUR_VALUE_HERE --transport stdio mcp-server-starrocks -- uvx mcp-server-starrocks

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx mcp-server-starrocks

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

mcp-server-starrocks connects AI assistants to StarRocks through the MySQL protocol, exposing SQL execution, schema resources, database exploration, and chart generation. It supports stdio and Streamable HTTP transports, with Docker and uv-based launch options. Agents can inspect databases and tables, retrieve table or database overviews, query internal system information, and run read or write SQL operations. Reach for it when an agent needs to investigate or work with data in a StarRocks cluster.

Use cases

  • Run analytical SELECT queries against StarRocks
  • Inspect databases, tables, and column schemas
  • Generate Plotly charts from query results
  • Review table sizes, row counts, and sample data
  • Check internal StarRocks metrics and system state

Key features

  • SELECT execution through read_query
  • DDL and DML execution through write_query
  • Database and table schema resources
  • Table and database overview summaries
  • Plotly chart generation from query results
  • In-memory overview caching with bypass support

Tools33

What MCP Server Starrocks lets your agent do. Expand a tool for its parameters.

Self-reported~104 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · mcp-server-starrocks (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars197Stargazers on the source repository.
Last commit5d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed33Callable tools this server registers over MCP.

How MCP Server Starrocks works

What mcp-server-starrocks does

mcp-server-starrocks provides an MCP interface to a reachable StarRocks Frontend (FE) service. Agents can run read-only SELECT statements through read_query and issue DDL or DML statements through write_query. The server also exposes database and table discovery, schema details, system information, aggregate overviews, and query-driven Plotly charts.

Table and database overviews can include column definitions, row counts, and sample data. These results are cached in memory to reduce repeated work, with an option to bypass the cache when fresh information is needed.

How it works

The server connects to StarRocks over its MySQL protocol, using port 9030 by default. MCP hosts can launch it as a local stdio process or connect to an HTTP endpoint when it runs in Streamable HTTP mode. Streamable HTTP uses a standard JSON-over-HTTP interface; clients do not need a special SDK for this transport.

Resource paths support StarRocks database and table inspection through starrocks:// URIs. Internal StarRocks metrics and state are available through the proc:// resource path. The server can also combine query execution with Plotly chart generation through query_and_plotly_chart.

Setup and configuration

Python 3.11 or newer, uv, and access to a StarRocks FE service are required. The published package can be launched on demand with uv run --with mcp-server-starrocks mcp-server-starrocks, while a local checkout can be prepared with uv sync and run with uv run mcp-server-starrocks.

Connection settings can be supplied as one STARROCKS_URL, such as root:password@localhost:9030/my_database, or as separate host, port, user, password, and database variables. The default connection targets localhost:9030 with the root user and an empty password. A password can also be read from a file, and macOS Keychain options are available for password lookup.

For HTTP deployments, start the process with --mode streamable-http and choose a port, then configure the MCP host with the server's /mcp URL. Docker images can expose the same endpoint on port 8000. Command-line options also select the bind host, transport mode, and test mode. The older SSE transport is deprecated; new deployments should use Streamable HTTP.

Tools and capabilities

  • read_query executes SELECT queries.
  • write_query executes DDL and DML statements.
  • table_overview summarizes an individual table.
  • db_overview summarizes a database.
  • query_and_plotly_chart runs a query and creates a Plotly chart from its results.
  • Database and table resources support schema and catalog exploration.
  • proc:// resources expose internal StarRocks metrics and state.

Limitations and notes

The server depends on network access to a StarRocks FE service and uses the MySQL protocol port for database connectivity. The HTTP listening port is separate from StarRocks port 9030. Cached overview results may need an explicit cache bypass when current metadata or sample data is important. The default transport is stdio, while Streamable HTTP is the recommended option for HTTP-based deployments.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Server Starrocks

mcp-server-starrocks is an MCP server that connects AI assistants to StarRocks databases over the MySQL protocol. Its main tools execute SELECT, DDL, and DML SQL, summarize tables and databases, explore schemas, and generate Plotly charts from query results. It also exposes StarRocks system information through resources.

Install `uv`, then launch the published package with `uv run --with mcp-server-starrocks mcp-server-starrocks`. Python 3.11 or newer and a reachable StarRocks FE service are required. For local development, clone the repository, run `uv sync`, and start it with `uv run mcp-server-starrocks`.

Set `STARROCKS_URL` or provide separate connection variables such as `STARROCKS_HOST`, `STARROCKS_PORT`, `STARROCKS_USER`, `STARROCKS_PASSWORD`, and `STARROCKS_DB`. The default host is localhost, the default port is 9030, and the default user is root. Password files and macOS Keychain lookup are also supported.

Start it with `--mode streamable-http`, then point the MCP client to the server's `/mcp` endpoint. For example, `uv run mcp-server-starrocks --mode streamable-http --port 8000` serves the endpoint at `http://localhost:8000/mcp`. Streamable HTTP is preferred over the deprecated SSE mode.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Server Starrocks AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-server-starrocks?style=directory)](https://allmcps.com/mcp/mcp-server-starrocks)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-server-starrocks"><img src="https://allmcps.com/api/badge/mcp-server-starrocks?style=directory" alt="MCP Server Starrocks on AllMCPs" /></a>