Zerion (DeFi Portfolio) MCP Server for Mastra AIGive Mastra AI instant access to 16 tools to Get Fungible, Get Nft, Get Swap Quotes, and more
Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect Zerion (DeFi Portfolio) through Vinkius and Mastra agents discover all tools automatically. type-safe, streaming-ready, and deployable anywhere Node.js runs.
Ask AI about this MCP Server for Mastra AI
The Zerion (DeFi Portfolio) MCP Server for Mastra AI is a standout in the Data Analytics category — giving your AI agent 16 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import { Agent } from "@mastra/core/agent";
import { createMCPClient } from "@mastra/mcp";
import { openai } from "@ai-sdk/openai";
async function main() {
// Your Vinkius token. get it at cloud.vinkius.com
const mcpClient = await createMCPClient({
servers: {
"zerion-defi-portfolio": {
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
},
});
const tools = await mcpClient.getTools();
const agent = new Agent({
name: "Zerion (DeFi Portfolio) Agent",
instructions:
"You help users interact with Zerion (DeFi Portfolio) " +
"using 16 tools.",
model: openai("gpt-4o"),
tools,
});
const result = await agent.generate(
"What can I do with Zerion (DeFi Portfolio)?"
);
console.log(result.text);
}
main();
* 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
About Zerion (DeFi Portfolio) MCP Server
Connect your AI agent to the Zerion API to gain deep insights into any Web3 wallet. This server enables real-time monitoring of DeFi positions, NFT valuations, and historical performance across all major blockchains.
Mastra's agent abstraction provides a clean separation between LLM logic and Zerion (DeFi Portfolio) tool infrastructure. Connect 16 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.
What you can do
- Portfolio Overview — Get total value, asset distribution, and net worth for any wallet address or a set of multiple addresses.
- DeFi & Token Positions — Inspect specific fungible token balances and complex DeFi positions (liquidity pools, lending, etc.).
- Transaction History — Retrieve human-readable transaction logs to understand past on-chain activity.
- PnL Analysis — Calculate realized and unrealized gains to track investment performance over time.
- NFT Analytics — Fetch NFT portfolio values, individual holdings, and collection-grouped data.
- Market Data — List supported chains, dApps, and check real-time gas prices across networks.
The Zerion (DeFi Portfolio) MCP Server exposes 16 tools through the Vinkius. Connect it to Mastra AI in under two minutes — credentials fully managed, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 16 Zerion (DeFi Portfolio) tools available for Mastra AI
When Mastra AI connects to Zerion (DeFi Portfolio) through Vinkius, your AI agent gets direct access to every tool listed below — spanning defi, web3, portfolio-tracking, and more. Every call runs in a secure, isolated environment with full audit visibility. Beyond a simple connection, you get real-time monitoring of agent activity, enterprise governance, and optimized token usage.
Get fungible on Zerion (DeFi Portfolio)
Get token metadata, prices, and charts
Get nft on Zerion (DeFi Portfolio)
Look up specific NFTs by reference
Get swap quotes on Zerion (DeFi Portfolio)
Get quotes for same-chain swaps or cross-chain bridges
Get wallet nft collections on Zerion (DeFi Portfolio)
Get NFT holdings grouped by collection for a wallet
Get wallet nft portfolio on Zerion (DeFi Portfolio)
Get NFT value summary for a wallet
Get wallet nft positions on Zerion (DeFi Portfolio)
Get individual NFT holdings for a wallet
Get wallet pnl on Zerion (DeFi Portfolio)
Get realized and unrealized gains (PnL) for a wallet
Get wallet portfolio on Zerion (DeFi Portfolio)
Get total value and distribution for a wallet
Get wallet positions on Zerion (DeFi Portfolio)
Get list of tokens and DeFi positions for a wallet
Get wallet set portfolio on Zerion (DeFi Portfolio)
Get aggregated portfolio for multiple wallets
Get wallet set positions on Zerion (DeFi Portfolio)
Get aggregated positions for multiple wallets
Get wallet set transactions on Zerion (DeFi Portfolio)
Get aggregated transactions for multiple wallets
Get wallet transactions on Zerion (DeFi Portfolio)
Get human-readable transaction history for a wallet
List chains on Zerion (DeFi Portfolio)
List supported blockchains and metadata
List dapps on Zerion (DeFi Portfolio)
List metadata for decentralized applications
List gas prices on Zerion (DeFi Portfolio)
Get real-time gas estimates across chains
Connect Zerion (DeFi Portfolio) to Mastra AI via MCP
Follow these steps to wire Zerion (DeFi Portfolio) into Mastra AI. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install dependencies
npm install @mastra/core @mastra/mcp @ai-sdk/openaiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the agent
agent.ts and run with npx tsx agent.tsExplore tools
Why Use Mastra AI with the Zerion (DeFi Portfolio) MCP Server
Mastra AI provides unique advantages when paired with Zerion (DeFi Portfolio) through the Model Context Protocol.
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Zerion (DeFi Portfolio) 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 Zerion (DeFi Portfolio) 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
Zerion (DeFi Portfolio) + Mastra AI Use Cases
Practical scenarios where Mastra AI combined with the Zerion (DeFi Portfolio) MCP Server delivers measurable value.
Automated workflows: build multi-step agents that query Zerion (DeFi Portfolio), process results, and trigger downstream actions in a typed pipeline
SaaS integrations: embed Zerion (DeFi Portfolio) as a first-class tool in your product's AI features with Mastra's clean agent API
Background jobs: schedule Mastra agents to query Zerion (DeFi Portfolio) on a cron and store results in your database automatically
Multi-agent systems: create specialist agents that collaborate using Zerion (DeFi Portfolio) tools alongside other MCP servers
Example Prompts for Zerion (DeFi Portfolio) in Mastra AI
Ready-to-use prompts you can give your Mastra AI agent to start working with Zerion (DeFi Portfolio) immediately.
"What is the total portfolio value and asset distribution for wallet 0x71C7656EC7ab88b098defB751B7401B5f6d8976F?"
"Show me the last 5 transactions for address 0x123... and explain what happened."
"What is the current PnL for wallet 0xabc... in USD?"
Troubleshooting Zerion (DeFi Portfolio) MCP Server with Mastra AI
Common issues when connecting Zerion (DeFi Portfolio) to Mastra AI through Vinkius, and how to resolve them.
createMCPClient not exported
npm install @mastra/mcpZerion (DeFi Portfolio) + Mastra AI FAQ
Common questions about integrating Zerion (DeFi Portfolio) MCP Server with Mastra AI.
How does Mastra AI connect to MCP servers?
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?
Does Mastra support workflow orchestration?
Explore More MCP Servers
View all →
FlightAware
12 toolsTrack global flight status via FlightAware AeroAPI — search flights, monitor airport arrivals and departures, check weather, and access historical flight data from any AI agent.

Capsule CRM
11 toolsManage your CRM via Capsule — track contacts, opportunities, and tasks directly from any AI agent.

Bugcrowd
10 toolsManage crowdsourced security via Bugcrowd — track submissions, programs, and targets directly from any AI agent.

Codecov
8 toolsManage test coverage and engineering metrics via Codecov — track coverage reports, monitor commit totals, and audit code quality directly from any AI agent.
