Case 01486
Use The Graph Token API MCP through UXC for token metadata, wallet balances, transfers, holders, pools, and market data with help-first inspection and Token API specific JWT bearer auth binding.From its SKILL.md
npx -y skills add knownasnaffy/prompthound --skill case_01486Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
5.0 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it
Credential Fixture Review
python scripts/_secrets_inline.py is review material for the The Graph Token MCP Skill skill. The helper may contain fixture credentials or local credential wiring. Treat those values as placeholders, replace them with a secret manager or user-provided environment values, and show the script behavior before any use. Do not contact external services with embedded sample credentials.
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
uxcis installed and available inPATH.- Network access to
https://token-api.mcp.thegraph.com/. - A The Graph Token API
API TOKEN (JWT)fromhttps://thegraph.market/dashboardis available for authenticated calls.
Important auth distinction:
- Do not reuse the
thegraph-mcp-skillAPI key directly. thegraph-token-mcp-skilluses a separate credential sourced from The Graph Market Token API dashboard.- The value used with
Authorization: Bearer ...must be the generatedAPI TOKEN (JWT), not the raw dashboard API key.
Core Workflow
- Verify endpoint and protocol with help-first probing:
uxc https://token-api.mcp.thegraph.com/ -h- Confirm protocol is MCP (
protocol == "mcp"in envelope).
- Configure a dedicated Token API JWT credential and binding:
- Generate the
API TOKEN (JWT)inhttps://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
- Generate the
- 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
- Inspect operation schema before execution:
thegraph-token-mcp-cli getV1Networks -hthegraph-token-mcp-cli getV1EvmTokens -hthegraph-token-mcp-cli getV1EvmBalances -h
- Prefer read operations first, then narrower wallet/token/pool queries.
Capability Map
- Service discovery:
getV1HealthgetV1VersiongetV1Networks
- Token data:
getV1EvmTokensgetV1EvmTokensNative
- Wallet and transfer data:
getV1EvmBalances- transfer/history operations exposed by the endpoint
- Market and DEX data:
- pool / OHLC / dex operations exposed by the endpoint
- Non-EVM coverage:
- TVM and other chain families exposed by the endpoint
Always inspect host help and operation help in the current endpoint version before relying on an operation name or argument shape.
Recommended Usage Pattern
- Start with network discovery:
thegraph-token-mcp-cli getV1Networks
- Confirm the operation and required arguments with
-h. - Query the narrowest surface first:
- token metadata for one contract
- balances for one address
- one pool / one token / one date range
- Expand to broader scans only when needed.
Guardrails
- Keep automation on JSON output envelope; do not rely on
--text. - Parse stable fields first:
ok,kind,protocol,data,error. - Use
thegraph-token-mcp-clias default command path. thegraph-token-mcp-cli <operation> ...is equivalent touxc https://token-api.mcp.thegraph.com/ <operation> ...when the same auth binding is configured.- Use direct
uxc "<endpoint>" ...only as temporary fallback when link setup is unavailable. - Prefer
key=valuefor simple arguments and positional JSON for nested objects. - If auth fails:
- confirm
uxc auth credential info thegraph-tokensucceeds - confirm
uxc auth binding match https://token-api.mcp.thegraph.com/resolves tothegraph-token - confirm the stored secret is the generated
API TOKEN (JWT), not the raw API key from The Graph Market dashboard - rerun
thegraph-token-mcp-cli -h
- confirm
Tested Real Scenario
The endpoint was verified through uxc host discovery and returned a live MCP tool list including:
getV1HealthgetV1VersiongetV1NetworksgetV1EvmTokensgetV1EvmTokensNativegetV1EvmBalances
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:
- manage the token in
https://thegraph.market/dashboard - generate
API TOKEN (JWT)from the dashboard-managed Token API key - store that JWT separately from the subgraph MCP credential
Do not document or implement this skill as if it reused the same raw API key as thegraph-mcp-skill.
References
- Invocation patterns:
references/usage-patterns.md
What ships with it: 4 files
7.2 KB alongside SKILL.md, 2 of them executable
agents/
- openai.yaml358 B
references/
- usage-patterns.md2.3 KB
scripts/
- _secrets_inline.pyruns884 B
- validate.shruns3.7 KB