Skip to main content
Glama

mcp-server-starrocks

StarRocks MCP サーバー

StarRocksデータベースとやり取りするためのモデル制御プロトコル(MCP)サーバー。このサーバーは、AIモデルが定義済みのツールセットを通じてStarRocksデータベースをクエリおよび操作するための標準化されたインターフェースを提供します。

概要

StarRocks MCP サーバーにより、AI モデルは次のことが可能になります。

  • StarRocksデータベースでSELECTクエリを実行する
  • 利用可能なテーブルの一覧
  • テーブルスキーマを説明する
  • 新しいテーブルを作成する(読み取り専用モードではない場合)
  • INSERT、UPDATE、DELETE などの書き込み操作を実行する (読み取り専用モードではない場合)

インストール

前提条件

  • 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))" } }

ライセンス

MITライセンス

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

この MCP サーバーは Starrocks への接続を提供し、最小限の労力でこのクエリ エンジンを探索できるようにします。

  1. 概要
    1. インストール
      1. 前提条件
      2. ソースからインストール
      3. Smitheryからインストール
      4. MCPインスペクターの使用
    2. 使用法
      1. サーバーの起動
      2. 利用可能なツール
      1. テーブルの一覧表示
      2. SELECTクエリの実行
      3. テーブルの説明
      4. テーブルの作成(読み取り専用モードではない場合)
    3. ライセンス
      1. 貢献

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          A simple MCP server that can enable MCP clients to query Bluesky instances.
          Last updated -
          26
          TypeScript
          MIT License
          • Apple
        • -
          security
          F
          license
          -
          quality
          An MCP server that enables searching and retrieving content from Confluence documentation systems, providing capabilities for both document searches and full page content retrieval.
          Last updated -
          1
          Python
        • -
          security
          A
          license
          -
          quality
          Stores metadata for MCP servers and provides smart search capabilities, allowing users to find appropriate MCP servers for their queries and route requests to the most suitable server.
          Last updated -
          9
          Python
          MIT License
        • A
          security
          A
          license
          A
          quality
          An MCP server that allows searching for and retrieving information about Model Context Protocol servers registered on the MCP Hub.
          Last updated -
          1
          1
          MIT License
          • Apple
          • Linux

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/hagsmand/mcp-server-starrocks'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server