mcp-server-starrocks
The MCP server is built with Python, required as a prerequisite (3.8+), and the server is launched using Python commands
Used for database connectivity with the StarRocks database, enabling execution of SELECT queries, table management, and database operations
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
StarRocks MCP Server
A Model Control Protocol (MCP) server for interacting with StarRocks databases. This server provides a standardized interface for AI models to query and manipulate StarRocks databases through a set of defined tools.
Overview
The StarRocks MCP Server allows AI models to:
Execute SELECT queries on StarRocks databases
List available tables
Describe table schemas
Create new tables (when not in read-only mode)
Execute write operations like INSERT, UPDATE, DELETE (when not in read-only mode)
Related MCP server: starrocks-mcp
Installation
Prerequisites
Python 3.8+
StarRocks database instance
SQLAlchemy
MCP Python library
Install from source
git clone https://github.com/yourusername/mcp-server-starrocks.git
cd mcp-server-starrocks
pip install -e .Install from Smithery
npm install @smithery/sdk @modelcontextprotocol/sdk
Using MCP Inspector
npx @modelcontextprotocol/inspector uv --directory ~/mcp-server-starrocks run mcp-server-starrocks
Usage
Starting the server
python -m mcp_server_starrocks.server --host <starrocks-host> --port <starrocks-port> --user <username> --database <database-name> [--password <password>] [--readonly]Command-line arguments:
--host: StarRocks server host (required)--port: StarRocks server port (default: 9030)--user: StarRocks username (required)--database: StarRocks database name (required)--password: StarRocks password (if required)--readonly: Run the server in read-only mode (optional)
Available Tools
The server provides the following tools:
Read-only tools:
read-query: Execute a SELECT query on the StarRocks databaselist-tables: List all tables in the StarRocks databasedescribe-table: Describe the schema of a specific table
Write tools (available when not in read-only mode):
write-query: Execute an INSERT, UPDATE, or DELETE querycreate-table: Create a new table in the StarRocks database
Examples
Listing tables
{
"name": "list-tables",
"arguments": {}
}Executing a SELECT query
{
"name": "read-query",
"arguments": {
"query": "SELECT FROM my_table LIMIT 10"
}
}Describing a table
{
"name": "describe-table",
"arguments": {
"table_name": "my_table"
}
}Creating a table (when not in read-only mode)
{
"name": "create-table",
"arguments": {
"query": "CREATE TABLE new_table (id INT, name VARCHAR(100))"
}
}License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
Query, join, profile, clean and convert CSV/JSON/Parquet with server-side DuckDB over MCP.
Token-free MCP server for structured RevoGrid Core, Pro, and Enterprise knowledge retrieval.
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceA TypeScript implementation of a Model Context Protocol server that enables interaction with StarRocks databases, supporting SQL operations like queries, table creation, and data manipulation through standardized MCP tools.1-
- AlicenseAqualityDmaintenanceA read-only MCP server that enables users to query and explore StarRocks databases through AI assistants like Claude. It supports SQL execution, schema discovery, and secure LDAP authentication for data analysis and metadata exploration.41MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language querying of Apache Doris databases via LLM-powered SQL generation, execution, and metadata management through the MCP protocol.9Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server providing seamless integration with Trino and Iceberg for advanced data exploration, querying, and table maintenance.Apache 2.0