Compatible with every major AI agent and IDE
What is the The Graph (Web3 Indexing) MCP Server?
Connect to The Graph to index and retrieve real-time blockchain data across multiple ecosystems. This MCP server allows your AI agent to query decentralized data from Ethereum, Polygon, Solana, and more through standardized tools and custom GraphQL subgraphs.
What you can do
- EVM Data Access — Retrieve token transfers, top holders, and DEX swap events (Uniswap, Curve) for any EVM-compatible chain.
- Solana (SVM) Integration — Fetch SPL token transfers, holders, and AMM swaps (Jupiter, Raydium) directly from the Solana network.
- Historical Analysis — Access wallet balance changes in OHLCV format to track portfolio performance over time.
- Custom Subgraph Queries — Execute raw GraphQL queries against any specific subgraph ID for deep, specialized data extraction.
- Market Intelligence — Monitor liquidity pool activities and token distribution metrics without manual block explorer searching.
How it works
- Subscribe to this server
- Enter your The Graph API Token, API URL, and optional API Key
- Start querying on-chain data from Claude, Cursor, or any MCP-compatible client
Who is this for?
- Web3 Developers — debug smart contract events and verify on-chain state directly from your IDE
- Data Analysts — aggregate token holder distributions and DEX volume metrics for research
- DeFi Power Users — track wallet movements and liquidity pool swaps through natural language
Built-in capabilities (8)
Get EVM historical balances
Get EVM token holders
) for EVM chains. Get EVM DEX swaps
Get EVM token transfers
Get SVM (Solana) token holders
) for Solana. Get SVM (Solana) DEX swaps
Get SVM (Solana) token transfers
Requires THE_GRAPH_API_KEY. Query a subgraph using GraphQL
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and The Graph (Web3 Indexing) tool infrastructure. Connect 8 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add The Graph (Web3 Indexing) without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every The Graph (Web3 Indexing) tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
The Graph (Web3 Indexing) in Mastra AI
The Graph (Web3 Indexing) and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect The Graph (Web3 Indexing) to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 4,000+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for The Graph (Web3 Indexing) in Mastra AI
The The Graph (Web3 Indexing) MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 8 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
The Graph (Web3 Indexing) for Mastra AI
Every tool call from Mastra AI to the The Graph (Web3 Indexing) MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
Can I query any specific subgraph if I have its ID?
Yes! Use the query_subgraph tool by providing the subgraph_id and your GraphQL query string. This allows for deep, custom data extraction beyond the standard tools.
Does this server support Solana token data?
Absolutely. You can use get_svm_transfers, get_svm_holders, and get_svm_swaps to interact with SPL tokens and decentralized exchanges on the Solana network.
Can I track historical balance changes for a specific wallet?
Yes, the get_evm_historical_balances tool provides historical balance data in OHLCV format for EVM chains, making it easy to analyze portfolio trends.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
Bold
14 toolsAutomate payments via Bold Colombia — manage terminals, process transactions, generate payment links, and track settlements from any AI agent.

Cyberimpact
10 toolsEquip your AI agent to manage email subscribers, monitor campaigns, and track marketing metrics via the Cyberimpact API.

Appcues
11 toolsManage your Appcues flows, segments, and user experiences with AI — track activity and publish content effortlessly.

GroundX
12 toolsData search and RAG optimization platform.
