Thegraph Mcp Skill
by @jolestar
Use The Graph Subgraph MCP through UXC via native SSE with a fixed linked command for subgraph discovery, schema retrieval, deployment selection, and GraphQL...
clawhub install thegraph-mcp-skillπ About This Skill
name: thegraph-mcp-skill description: 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.
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
uxc is installed and available in PATH.https://subgraphs.mcp.thegraph.com/sse.Core Workflow (The Graph-Specific)
Endpoint candidate inputs before finalizing:
https://subgraphs.mcp.thegraph.com/sse1. 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).
2. 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 .
3. Register credential and use fixed link command by default:
- uxc auth credential set thegraph --secret-env THEGRAPH_API_KEY
- uxc auth binding add --id thegraph-sse --host subgraphs.mcp.thegraph.com --path-prefix /sse --scheme https --credential thegraph --priority 100
- command -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.
4. Inspect operation schema before execution:
- thegraph-mcp-cli -h
- thegraph-mcp-cli
5. Prefer discovery/schema operations first:
- find candidate subgraphs or deployments
- inspect schema
- execute query only after identifier and schema are understood
Capability Map
Guardrails
--text.ok, kind, protocol, data, error.thegraph-mcp-cli as default command path.thegraph-mcp-cli ... is equivalent to uxc https://subgraphs.mcp.thegraph.com/sse ... when the same auth binding is configured.uxc "" ... only as temporary fallback when link setup is unavailable.uxc auth credential info thegraph succeeds
- confirm uxc auth binding match https://subgraphs.mcp.thegraph.com/sse resolves to thegraph
- rerun thegraph-mcp-cli -hTested Real Scenario
The following flow was exercised successfully through uxc against the live endpoint:
uniswap subgraphsget_deployment_30day_query_counts_meta GraphQL queryThe selected candidate in that run was:
5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFVQmTZ8ejXJxRo7vDBS4uwqBeGoxLSWbhaA7oXa1RvxunLy7The minimal verified query shape was:
{
_meta {
deployment
hasIndexingErrors
}
}
References
references/usage-patterns.md
βοΈ Configuration
uxc is installed and available in PATH.https://subgraphs.mcp.thegraph.com/sse.