4,500+ servers built on MCP Fusion
Vinkius
Bitquery (Web3 Blockchain GraphQL APIs) logo
Vinkius
Mastra AI logo

How to Use the Bitquery (Web3 Blockchain GraphQL APIs) MCP in Mastra AI

Build resilient blockchain workflows in Mastra AI with integrated Bitquery data fetching.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

Bitquery (Web3 Blockchain GraphQL APIs) MCP on Cursor AI Code Editor MCP Client Bitquery (Web3 Blockchain GraphQL APIs) MCP on Claude Desktop App MCP Integration Bitquery (Web3 Blockchain GraphQL APIs) MCP on OpenAI Agents SDK MCP Compatible Bitquery (Web3 Blockchain GraphQL APIs) MCP on Visual Studio Code MCP Extension Client Bitquery (Web3 Blockchain GraphQL APIs) MCP on GitHub Copilot AI Agent MCP Integration Bitquery (Web3 Blockchain GraphQL APIs) MCP on Google Gemini AI MCP Integration Bitquery (Web3 Blockchain GraphQL APIs) MCP on Lovable AI Development MCP Client Bitquery (Web3 Blockchain GraphQL APIs) MCP on Mistral AI Agents MCP Compatible Bitquery (Web3 Blockchain GraphQL APIs) MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
Mastra AI

Connect Bitquery (Web3 Blockchain GraphQL APIs) MCP to Mastra AI

Create your Vinkius account to connect Bitquery (Web3 Blockchain GraphQL APIs) to Mastra AI and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.

GDPR Free for Subscribers

Auth management for Mastra AI

Use `generate_token` to initialize your session with Bitquery. Your Mastra agents need this access token to perform any subsequent blockchain lookups. This keeps your agent workflows running without needing manual login steps. You just pass the token into the agent's context.

Historical data for Mastra AI agents

Your agents can call `query_v1` to pull past transaction records for specific chain addresses. It works well for agents tasked with auditing or research. Because Mastra handles retries, if the query fails, it will attempt the fetch again automatically. You don't have to write custom logic for minor network blips.

Complex streaming for Mastra AI

The `query_v2` tool allows your agents to join data sets like `DexTradesByTokens` and `Instructions`. This is ideal for multi-step workflows that need to react to live market movements. Agents use this output to trigger conditional branches. If a trade meets a certain criteria, the agent moves to the next step of your defined workflow.

Setup guide

Set up Bitquery (Web3 Blockchain GraphQL APIs) MCP in Mastra AI

Prerequisites

  • Node.js 18+ and a TypeScript project
  • @mastra/mcp + @mastra/core packages
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Install dependencies

    Run npm install @mastra/mcp @mastra/core plus your preferred model provider (e.g. @ai-sdk/openai).

  2. 2

    Configure the MCPClient

    Create an MCPClient with your Vinkius endpoint as a URL object. Replace [YOUR_TOKEN_HERE] with your token from cloud.vinkius.com.

  3. 3

    Discover and inject tools

    Call mcpClient.listTools() and spread the result into your agent's tools object. All Bitquery (Web3 Blockchain GraphQL APIs) tools become native Mastra tools.

  4. 4

    Run with any model

    Swap openai("gpt-4o") for any AI SDK-compatible provider. Call agent.generate() and the agent routes tool calls through MCP automatically.

agent.ts
import { MCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";

const mcpClient = new MCPClient({
  id: "bitquery-web3-blockchain-graphql-apis-mcp-client",
  servers: {
    "bitquery-web3-blockchain-graphql-apis-mcp": {
      url: new URL(
        "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
      ),
    },
  },
});

const agent = new Agent({
  name: "Bitquery (Web3 Blockchain GraphQL APIs) Agent",
  model: openai("gpt-4o"),
  instructions: "You have access to Bitquery (Web3 Blockchain GraphQL APIs) tools.",
  tools: {
    ...(await mcpClient.listTools()),
  },
});

const result = await agent.generate(
  "List recent Bitquery (Web3 Blockchain GraphQL APIs) transactions"
);
console.log(result.text);

Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Bitquery. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.

Why Choose Vinkius

Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.

Real-time monitoring

Live

visibility into every interaction

Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.

Built-in savings

60%

lower AI costs

Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.

Single dashboard

One

place for every integration

Every tool your AI connects to, managed from a single screen. One account, complete control.

Common questions about Bitquery (Web3 Blockchain GraphQL APIs) MCP in Mastra AI

Import the MCP client into your Mastra agent definition. Add the Bitquery server URL to your MCP configuration block.
Mastra handles exponential backoff for failed tools. If `query_v1` times out, your agent will retry based on your framework settings.
Enable `requireToolApproval` in your Mastra config. The agent will pause before executing `query_v2` until you approve the action in your terminal.
The server supports 40+ chains. You specify the chain inside your GraphQL query string.
Vinkius uses a sandbox environment to isolate your requests. The server only processes the GraphQL queries and access tokens you send, ensuring no other data is exposed during execution.

Start using the Bitquery (Web3 Blockchain GraphQL APIs) MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 3 tools

We've already built the connector for Bitquery (Web3 Blockchain GraphQL APIs). Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 3 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.