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
          MCP server for querying the Shodan API and Shodan CVEDB. This server provides tools for IP lookups, device searches, DNS lookups, vulnerability queries, CPE lookups, and more.
          Last updated -
          7
          663
          18
          JavaScript
          MIT License
          • Apple
        • -
          security
          A
          license
          -
          quality
          The Search MCP Server enables seamless integration of network and local search capabilities in tools like Claude Desktop and Cursor, utilizing the Brave Search API for high-concurrency and asynchronous requests.
          Last updated -
          1
          52
          Python
          MIT License
          • Linux
        • -
          security
          A
          license
          -
          quality
          An MCP server implementation that enables Claude AI to interact with Clickhouse databases. Features include secure database connections, query execution, read-only mode support, and multi-query capabilities.
          Last updated -
          Python
          MIT License
          • Apple
        • -
          security
          F
          license
          -
          quality
          An MCP server that enables interaction with Datagouv APIs, primarily allowing users to search for up-to-date information about companies registered in France.
          Last updated -
          6
          TypeScript

        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