mcp-server-starrocks
StarRocks MCP サーバー
StarRocksデータベースとやり取りするためのモデル制御プロトコル(MCP)サーバー。このサーバーは、AIモデルが定義済みのツールセットを通じてStarRocksデータベースをクエリおよび操作するための標準化されたインターフェースを提供します。
概要
StarRocks MCP サーバーにより、AI モデルは次のことが可能になります。
StarRocksデータベースでSELECTクエリを実行する
利用可能なテーブルの一覧
テーブルスキーマを説明する
新しいテーブルを作成する(読み取り専用モードではない場合)
INSERT、UPDATE、DELETE などの書き込み操作を実行する (読み取り専用モードではない場合)
Related MCP server: StarRocks MCP Server
インストール
前提条件
Python 3.8以上
StarRocksデータベースインスタンス
SQLアルケミー
MCP Pythonライブラリ
ソースからインストール
git clone https://github.com/yourusername/mcp-server-starrocks.git
cd mcp-server-starrocks
pip install -e .Smitheryからインストール
npm をインストール @smithery/sdk @modelcontextprotocol/sdk
MCPインスペクターの使用
npx @modelcontextprotocol/inspector uv --directory ~/mcp-server-starrocks を実行し、mcp-server-starrocks を実行します。
使用法
サーバーの起動
python -m mcp_server_starrocks.server --host <starrocks-host> --port <starrocks-port> --user <username> --database <database-name> [--password <password>] [--readonly]コマンドライン引数:
--host: StarRocks サーバーホスト (必須)--port: StarRocks サーバーポート (デフォルト: 9030)--user: StarRocks ユーザー名 (必須)--database: StarRocks データベース名 (必須)--password: StarRocks パスワード(必要な場合)--readonly: サーバーを読み取り専用モードで実行する (オプション)
利用可能なツール
サーバーは次のツールを提供します。
読み取り専用ツール:
read-query: StarRocksデータベースに対してSELECTクエリを実行するlist-tables: StarRocksデータベース内のすべてのテーブルを一覧表示するdescribe-table: 特定のテーブルのスキーマを記述する
書き込みツール (読み取り専用モード以外の場合に使用可能):
write-query: INSERT、UPDATE、またはDELETEクエリを実行するcreate-table: StarRocksデータベースに新しいテーブルを作成する
例
テーブルの一覧表示
{
"name": "list-tables",
"arguments": {}
}SELECTクエリの実行
{
"name": "read-query",
"arguments": {
"query": "SELECT FROM my_table LIMIT 10"
}
}テーブルの説明
{
"name": "describe-table",
"arguments": {
"table_name": "my_table"
}
}テーブルの作成(読み取り専用モードではない場合)
{
"name": "create-table",
"arguments": {
"query": "CREATE TABLE new_table (id INT, name VARCHAR(100))"
}
}ライセンス
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
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
AlicenseAqualityAmaintenanceBackend service implementing the Model Control Panel protocol that connects to Apache Doris databases, allowing users to execute SQL queries, manage metadata, and potentially leverage LLMs for tasks like natural language to SQL conversion.878 PyPI351Apache 2.0- 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 gradedqualityFmaintenanceEnables natural language querying of Apache Doris databases via LLM-powered SQL generation, execution, and metadata management through the MCP protocol.9Apache 2.0