The Graph Token MCP Skill

Use this skill to run The Graph Token API MCP operations through uxc.

Reuse the uxc skill for generic protocol discovery, envelope parsing, and error handling rules.

Prerequisites

Important auth distinction:

Core Workflow

  1. Verify endpoint and protocol with help-first probing:
    • uxc https://token-api.mcp.thegraph.com/ -h
    • Confirm protocol is MCP (protocol == "mcp" in envelope).
  2. Configure a dedicated Token API JWT credential and binding:
    • Generate the API TOKEN (JWT) in https://thegraph.market/dashboard
    • Store it separately from the subgraph credential, for example:
      • uxc auth credential set thegraph-token --secret-env THEGRAPH_TOKEN_API_JWT
    • Bind the Token API endpoint to that dedicated credential:
      • uxc auth binding add --id thegraph-token-mcp --host token-api.mcp.thegraph.com --scheme https --credential thegraph-token --priority 100
  3. Use fixed link command by default:
    • command -v thegraph-token-mcp-cli
    • If missing, create it:
      • uxc link thegraph-token-mcp-cli https://token-api.mcp.thegraph.com/
    • thegraph-token-mcp-cli -h
  4. Inspect operation schema before execution:
    • thegraph-token-mcp-cli getV1Networks -h
    • thegraph-token-mcp-cli getV1EvmTokens -h
    • thegraph-token-mcp-cli getV1EvmBalances -h
  5. Prefer read operations first, then narrower wallet/token/pool queries.

Capability Map

Always inspect host help and operation help in the current endpoint version before relying on an operation name or argument shape.

Recommended Usage Pattern

  1. Start with network discovery:
    • thegraph-token-mcp-cli getV1Networks
  2. Confirm the operation and required arguments with -h.
  3. Query the narrowest surface first:
    • token metadata for one contract
    • balances for one address
    • one pool / one token / one date range
  4. Expand to broader scans only when needed.

Guardrails

Tested Real Scenario

The endpoint was verified through uxc host discovery and returned a live MCP tool list including:

This confirms the skill target is a real MCP surface rather than a direct OpenAPI host.

The Token API requires its own bearer token workflow:

Do not document or implement this skill as if it reused the same raw API key as thegraph-mcp-skill.

References