StarRocks MCP Server

Official
Apache 2.0
20

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
STARROCKS_DBNoDefault database to use if not specified in tool arguments or resource URIs
STARROCKS_HOSTNoHostname or IP address of the StarRocks FE servicelocalhost
STARROCKS_PORTNoMySQL protocol port of the StarRocks FE service9030
STARROCKS_USERNoStarRocks usernameroot
STARROCKS_PASSWORDNoStarRocks password
STARROCKS_OVERVIEW_LIMITNoAn approximate character limit for the total text generated by overview tools when fetching data to populate the cache20000

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
All DatabasesList all databases in StarRocks

Tools

Functions exposed to the LLM to take actions

NameDescription
read_query

Execute a SELECT query or commands that return a ResultSet

write_query

Execute an DDL/DML or other StarRocks command that do not have a ResultSet

query_and_plotly_chart

using sql query to extract data from database, then using python plotly_expr to generate a chart for UI to display

table_overview

Get an overview of a specific table: columns, sample rows (up to 5), and total row count. Uses cache unless refresh=true.

db_overview

Get an overview (columns, sample rows, row count) for ALL tables in a database. Uses cache unless refresh=True.

ID: mgys7ofvs0