thegraph-mcp-skill
БесплатноЗапускает вложенные скриптыНе проверенUse The Graph Subgraph MCP through UXC via native SSE with a fixed linked command for subgraph discovery, schema retrieval, deployment selection, and GraphQL…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
The Graph MCP Skill
Use this skill to run The Graph Subgraph MCP operations through uxc using the native SSE MCP endpoint.
Reuse the uxc skill for generic protocol discovery, envelope parsing, and error handling rules.
Prerequisites
uxcis installed and available inPATH.- Network access to
https://subgraphs.mcp.thegraph.com/sse. - The Graph Gateway API key is available for authenticated calls.
Core Workflow (The Graph-Specific)
Endpoint candidate inputs before finalizing:
- Official remote MCP endpoint:
https://subgraphs.mcp.thegraph.com/sse
- Verify protocol/path from official source and probe:
- Official source:
https://thegraph.com/docs/en/ai-suite/subgraph-mcp/introduction/ - probe candidate endpoint with:
uxc https://subgraphs.mcp.thegraph.com/sse -h
- Confirm protocol is MCP (
protocol == "mcp"in envelope).
- Official source:
- Detect auth requirement explicitly:
- Run host help or a minimal read call and inspect envelope.
- This endpoint requires a The Graph Gateway API key sent as
Authorization: Bearer <key>.
- Register credential and use fixed link command by default:
uxc auth credential set thegraph --secret-env THEGRAPH_API_KEYuxc auth binding add --id thegraph-sse --host subgraphs.mcp.thegraph.com --path-prefix /sse --scheme https --credential thegraph --priority 100command -v thegraph-mcp-cli- If missing, create it:
uxc link thegraph-mcp-cli https://subgraphs.mcp.thegraph.com/sse
thegraph-mcp-cli -h- If command conflict is detected and cannot be safely reused, stop and ask skill maintainers to pick another fixed command name.
- Inspect operation schema before execution:
thegraph-mcp-cli -hthegraph-mcp-cli <operation> -h
- Prefer discovery/schema operations first:
- find candidate subgraphs or deployments
- inspect schema
- execute query only after identifier and schema are understood
Capability Map
- Discovery:
- search subgraphs by keyword
- find top deployments for a contract
- inspect deployment popularity / 30-day query volume
- Schema:
- get schema by deployment ID
- get schema by subgraph ID
- get schema by IPFS hash
- Query execution:
- execute GraphQL query by deployment ID
- execute GraphQL query by subgraph ID
- execute GraphQL query by IPFS hash
Guardrails
- Keep automation on JSON output envelope; do not rely on
--text. - Parse stable fields first:
ok,kind,protocol,data,error. - Use
thegraph-mcp-clias default command path. thegraph-mcp-cli <operation> ...is equivalent touxc https://subgraphs.mcp.thegraph.com/sse <operation> ...when the same auth binding is configured.- Use direct
uxc "<endpoint>" ...only as temporary fallback when link setup is unavailable. - Prefer discovery and schema inspection before query execution.
- For production/stable workflows, prefer deployment-oriented selection over loosely changing latest-version references.
- Keep GraphQL query scope small on first pass:
- add filters
- add limits
- fetch only required fields
- If auth fails:
- confirm
uxc auth credential info thegraphsucceeds - confirm
uxc auth binding match https://subgraphs.mcp.thegraph.com/sseresolves tothegraph - rerun
thegraph-mcp-cli -h
- confirm
Tested Real Scenario
The following flow was exercised successfully through uxc against the live endpoint:
- search
uniswapsubgraphs - compare candidates with
get_deployment_30day_query_counts - select the highest-volume candidate
- fetch schema for the chosen subgraph
- execute a minimal
_metaGraphQL query
The selected candidate in that run was:
- subgraph ID:
5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV - deployment IPFS hash:
QmTZ8ejXJxRo7vDBS4uwqBeGoxLSWbhaA7oXa1RvxunLy7
The minimal verified query shape was:
{
_meta {
deployment
hasIndexingErrors
}
}
References
- Invocation patterns:
references/usage-patterns.md
Установить thegraph-mcp-skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл thegraph-mcp-skill?
Use The Graph Subgraph MCP through UXC via native SSE with a fixed linked command for subgraph discovery, schema retrieval, deployment selection, and GraphQL query execution with help-first inspection and explicit auth handling.
Как установить скилл thegraph-mcp-skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл thegraph-mcp-skill запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic