GitHub - StarRocks/mcp-server-starrocks: StarRocks MCP (Model Context Protocol) Server (original) (raw)

MseeP.ai Security Assessment Badge

StarRocks Official MCP Server

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

StarRocks Server MCP server

Features

Configuration

The MCP server is typically run via an MCP host. Configuration is passed to the host, specifying how to launch the StarRocks MCP server process.

Using uv with installed package:

{ "mcpServers": { "mcp-server-starrocks": { "command": "uv", "args": ["run", "--with", "mcp-server-starrocks", "mcp-server-starrocks"], "env": { "STARROCKS_HOST": "default localhost", "STARROCKS_PORT": "default 9030", "STARROCKS_USER": "default root", "STARROCKS_PASSWORD": "default empty", "STARROCKS_DB": "default empty", "STARROCKS_OVERVIEW_LIMIT": "default 20000", "STARROCKS_MYSQL_AUTH_PLUGIN":"mysql_clear_password" } } } }

Using uv with local directory (for development):

{ "mcpServers": { "mcp-server-starrocks": { "command": "uv", "args": [ "--directory", "path/to/mcp-server-starrocks", // <-- Update this path "run", "mcp-server-starrocks" ], "env": { "STARROCKS_HOST": "default localhost", "STARROCKS_PORT": "default 9030", "STARROCKS_USER": "default root", "STARROCKS_PASSWORD": "default empty", "STARROCKS_DB": "default empty", "STARROCKS_OVERVIEW_LIMIT": "default 20000", "STARROCKS_MYSQL_AUTH_PLUGIN":"mysql_clear_password" } } } }

Using Streamable HTTP (recommended for integration):

{ "mcpServers": { "mcp-server-starrocks": { "url": "http://localhost:8000/mcp" } } }

To start the server in Streamable HTTP mode:

export MCP_TRANSPORT_MODE=streamable-http uv run mcp-server-starrocks

**Note:**The sse (Server-Sent Events) mode is deprecated and no longer maintained. Please use Streamable HTTP mode for all new integrations.

Environment Variables:

Components

Tools

Resources

Direct Resources

Resource Templates

Prompts

None defined by this server.

Caching Behavior

Demo

MCP Demo Image