graph-agent-toolkit
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@graph-agent-toolkitWhat's the risk snapshot for Uniswap V3 pool 0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
graph-agent-toolkit
An MCP server that gives AI agents live, reasoned access to on-chain data via The Graph's decentralized network — built for ETHOnline 2026, targeting The Graph's "Best AI Tooling or AI Use Case" prize track.
Why this exists
Agents that reason about on-chain activity (risk, MEV, liquidity, fraud detection) need data that is (a) live, (b) indexed and queryable, and (c) verifiable against a known-good source before the agent trusts it. Raw GraphQL passthroughs don't do reasoning — they just hand an LLM a JSON blob and hope. This toolkit does the reasoning before the agent sees the result, and it refuses to run at all against mocked or stale data.
Related MCP server: Philidor MCP Server
What it does differently
Boot canary, not a config flag. The server queries a known-live subgraph (Uniswap V3 mainnet) at startup and refuses to serve any tool if that canary fails. A "0 pools" or unreachable Gateway is treated as broken, not empty.
Tools reason over the data, they don't dump it.
graph_pool_risk_snapshotreturns swap count, net directional flow, and largest-single-swap concentration — computed, not queried-and-forwarded.No API key baked in, ever.
THEGRAPH_API_KEYis read from the environment only; the client throws (loudly) if it's missing, rather than silently degrading.
Architecture
src/graph-client.js thin Gateway client + canaryQuery() — proves the key is live
src/tools.js tool definitions: schema + real computation over the query result
src/server.js MCP server wiring (stdio transport); runs the canary before serving
skill/ AgentSkill wrapper so any OpenClaw-style agent can call this toolkitSetup
npm install
export THEGRAPH_API_KEY=<your Subgraph Studio API key> # thegraph.com/studio
npm startOn boot the server runs canaryQuery() against Uniswap V3 mainnet. If your key works,
you'll see a factory poolCount > 0 and the server starts. If not, it exits with a clear
error — it will never silently fall back to fake data.
Tools exposed
graph_pool_risk_snapshot
Input: { poolId: "0x...", swapLimit?: number } (default 50, max 500)
Pulls the most recent N swaps for a Uniswap V3 pool and computes:
swapCount— how many swaps in the windownetDirectionalFlow— signed sum of swap amounts (which way the pool is being pushed)largestSwapFraction— the single biggest swap as a fraction of total window volume (a simple concentration/whale-risk signal)
This is meant as a building block: an agent asking "is this pool being manipulated right now?" gets a computed answer, not a page of raw swap rows to parse itself.
Spec / AI-use disclosure
Built with Claude Code (Anthropic) acting as the primary developer, directed by Jiggy (project owner) and Cadence (agent). All prompts and planning notes for this project are tracked in this repo's commit history — no separate spec files were used beyond normal commit messages, which describe intent and rationale for each change.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
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 Connectors
Evidence-based market data for AI agents deploying capital in DeFi. Empirical, not advertised.
45 AI data tools for agents — crypto, DeFi risk, audits, equities, energy, and more.
Pay-per-call (x402/USDC-Base) web + crypto data tools for AI agents: audit, extract, crypto, DeFi.
DeFi pool yield+security intelligence & token/contract risk scanner. USDC on Base via x402.
Related MCP Servers
- AlicenseAqualityFmaintenancePowers AI agents with indexed blockchain data from The Graph, enabling them to fetch subgraph schemas and execute GraphQL queries against blockchain data.29MIT
- AlicenseAqualityFmaintenanceProvides DeFi vault risk analytics for AI agents to search, compare, and perform due diligence on over 700 vaults across major protocols like Morpho and Aave. It enables natural language analysis of risk scores, platform security, and portfolio-level risk assessments.95MIT
- FlicenseNot gradedqualityBmaintenanceExposes Uniswap V2 and V3 on-chain data and swap execution as MCP tools, resources, and prompts, enabling AI agents to query prices, inspect pools, get quotes, and execute trades.-
- AlicenseAqualityBmaintenanceProvides a unified MCP interface over Uniswap V2, V3, and V4 across multiple chains via The Graph, enabling agents to query token prices, top pools, pairs, and recent swaps with clean JSON output.860MIT
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/jiggy-cadence/graph-agent-toolkit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server