Skip to main content
Glama

TG_MCP

by Muzain187

TG_MCP

統合

TigerGraph 操作 (クエリ、スキーマ、頂点、エッジ、UDF) を MCP エージェントの構造化ツールおよび URI ベースのリソースとして公開する軽量 Python インターフェイス。

目次

  1. 特徴
  2. プロジェクト構造
  3. インストール
  4. 構成
  5. クロードへの接続
  6. 貢献
  7. ライセンス

特徴

  • スキーマイントロスペクション
    完全なグラフ スキーマ (頂点とエッジの種類) を取得します。
  • クエリ実行
    インストールされた GSQL クエリまたはパラメータ付きの生の GSQL 文字列を実行します。
  • 頂点とエッジのアップサート
    プログラムによって頂点とエッジを作成または更新します。
  • リソースURI
    tgraph://vertex/...およびtgraph://query/... URI を介してグラフ オブジェクトにアクセスします。
  • UDFとアルゴリズムのリスト
    インストールされているユーザー定義関数と GDS アルゴリズム カタログを取得します。

プロジェクト構造

TG_MCP/ ├── config.py # Environment config (HOST, GRAPH, SECRET) ├── tg_client.py # Encapsulates TigerGraphConnection and core operations ├── tg_tools.py # `@mcp.tool` definitions exposing client methods ├── tg_resources.py # `@mcp.resource` URI handlers ├── main.py # MCP app bootstrap (`mcp.run()`) ├── pyproject.toml # Project metadata & dependencies ├── LICENSE # MIT License └── .gitignore # OS/Python ignore rules

インストール

  1. リポジトリをクローンする
    git clone https://github.com/Muzain187/TG_MCP.git cd TG_MCP
  2. 仮想環境の作成と有効化
    python3 -m venv venv source venv/bin/activate
  3. 依存関係をインストールする
    pip install .

    mcp[cli]>=1.6.0およびpyTigerGraph>=1.8.6が必要です。

構成

実行する前に次の環境変数を設定します。

export TG_HOST=https://<your-tigergraph-host> export TG_GRAPH=<your-graph-name> export TG_SECRET=<your-api-secret>

これらはconfig.pyによって読み取られます。

クロードへの接続

この MCP サーバーをClaude デスクトップクライアントにインストールすると、Claude が TigerGraph ツールを直接呼び出すことができます。

uv run mcp install main.py

上記を実行した後、Claude Desktop を再起動すると、ハンマー 🛠 アイコンから MCP ツールが利用可能になります。

例:

画像

画像

貢献

  1. リポジトリをフォークする
  2. 機能ブランチを作成する
    git checkout -b feature/YourFeature
  3. 変更をコミットする
    git commit -m "Add YourFeature"
  4. ブランチにプッシュ
    git push origin feature/YourFeature
  5. プルリクエストを開く

すべての新しいコードがテストでカバーされ、PEP-8 スタイルに準拠していることを確認してください。

ライセンス

このプロジェクトはMIT ライセンスに基づいてライセンスされています。

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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

TigerGraph データベース操作を、Claude や他の MCP エージェント用の構造化ツールおよび URI ベースのリソースとして公開する軽量 Python インターフェイス。

  1. 目次
    1. 特徴
      1. プロジェクト構造
        1. インストール
          1. 構成
            1. クロードへの接続
              1. 例:
                1. 貢献
                  1. ライセンス

                    Related MCP Servers

                    • -
                      security
                      A
                      license
                      -
                      quality
                      A Python-based server that implements the Model Context Protocol to interface with Claude Desktop as an MCP client, supporting interaction through efficient memory management.
                      Last updated -
                      1
                      Python
                      MIT License
                    • -
                      security
                      A
                      license
                      -
                      quality
                      A Python-based MCP server that allows Claude and other LLMs to execute arbitrary Python code directly through your desktop Claude app, enabling data scientists to connect LLMs to APIs and executable code.
                      Last updated -
                      26
                      MIT License
                      • Apple
                      • Linux
                    • A
                      security
                      F
                      license
                      A
                      quality
                      MCP server that allows Claude AI to interact directly with MySQL databases, enabling query execution and table information retrieval through natural language.
                      Last updated -
                      1
                      5
                      4
                      JavaScript
                    • -
                      security
                      F
                      license
                      -
                      quality
                      A Python server implementing the Model Context Protocol that exposes tools for querying external APIs, compatible with Claude Desktop and ChatGPT Desktop.
                      Last updated -
                      Python
                      • Linux
                      • Apple

                    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/Muzain187/TG_MCP'

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