TheGraph MCP Server
TheGraph MCP サーバー
The Graphのインデックス化されたブロックチェーン データを使用して AI エージェントを強化する MCP サーバー。
利用可能なツール
1. getSubgraphSchema
指定されたサブグラフのスキーマを取得し、GraphQL クエリの生成に必要なコンテキストを AI エージェントに提供します。
パラメータ:
subgraphId: サブグラフ ID (例: "QmZBQcF...")asText: 出力形式フラグtrue: 人間が読めるGraphQLスキーマを返すfalse: JSONスキーマを返します(デフォルト)
2. クエリサブグラフ
指定されたサブグラフに対してGraphQLクエリを実行します。クエリは通常AIによって生成されますが、手動で独自のクエリを作成することもできます。
パラメータ:
subgraphId: サブグラフIDquery: GraphQLクエリ文字列
Related MCP server: Subgraph Registry MCP
インストール
リポジトリのクローンを作成する
git clone https://github.com/kukapay/thegraph-mcp.gitクライアント構成
{ "mcpServers": { "thegraph-mcp": { "command": "uv", "args": ["--directory", "path/to/thegraph-mcp", "run", "main.py"], "env": { "THEGRAPH_API_KEY": "your_api_key_here" } } } }
プロンプトの例
ツールを起動するための自然言語プロンプトをいくつか示します。
スキーマクエリ
「サブグラフ QmZBQcF... のスキーマを読み取り可能な形式で表示してください」
「QmZBQcF...サブグラフの構造は何ですか?GraphQL形式で表示してください。」
「サブグラフ QmZBQcF... のデータ モデルを理解する必要がありますが、そのスキーマを取得できますか?」
データクエリ
「サブグラフ QmZBQcF から過去 24 時間の取引量上位 5 つのトークンを見つけます...」
「サブグラフ QmZBQcF で流動性が 100 万ドルを超えるすべてのペアを表示してください...」
「QmZBQcF...サブグラフからトークンシンボルと金額を含む最新の10件のスワップイベントを取得します」
分析タスク
「サブグラフ QmZBQcF を使用して、過去 1 週間の USDT ペアの取引量を分析します...」
「サブグラフ QmZBQcF 内の ETH と USDC のペアの流動性を比較します...」
「サブグラフ QmZBQcF から過去 24 時間の異常な取引パターンを見つけます...」
複合タスク
「まずQmZBQcFのスキーマを取得してください...、次に高価値の取引を見つけるためのクエリの作成を手伝ってください」
「QmZBQcF のスキーマを確認してください...トークン価格を照会するために使用できるフィールドを教えてください」
「サブグラフQmZBQcF...を使用して、まずスキーマを理解し、次に関連イベントをクエリすることで、大規模な取引の市場への影響を分析します。」
ライセンス
このプロジェクトはMITライセンスの下で提供されています。詳細はLICENSEファイルをご覧ください。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that powers AI agents with indexed blockchain data from The Graph.3MIT
- AlicenseAqualityAmaintenanceAgent-friendly semantic classification of all subgraphs on The Graph Network. Pre-computed index of 15,500+ subgraphs with domain classification, protocol type detection, schema fingerprinting, canonical entity mapping, and composite reliability scoring.4370MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to execute GraphQL queries and retrieve schema information from any GraphQL endpoint.21418MIT
- AlicenseAqualityDmaintenanceProvides comprehensive GraphQL introspection, filtering, and query/mutation execution with safety controls. Enables AI agents to explore and interact with GraphQL APIs through natural language.7171MIT
Related MCP Connectors
The Graph MCP — indexed blockchain data via subgraph GraphQL queries
Provide AI agents and automation tools with contextual access to blockchain data including balance…
Agent-native scoring, search and routing for tokenized real-world assets across multi-chain.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/kukapay/thegraph-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server