Marqeta MCP Server for Mastra AIGive Mastra AI instant access to 31 tools to Create Ach Funding Source, Create Auth Control, Create Business, and more
Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect Marqeta 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 Marqeta MCP Server for Mastra AI is a standout in the Money Moves category — giving your AI agent 31 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: {
"marqeta": {
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
},
});
const tools = await mcpClient.getTools();
const agent = new Agent({
name: "Marqeta Agent",
instructions:
"You help users interact with Marqeta " +
"using 31 tools.",
model: openai("gpt-4o"),
tools,
});
const result = await agent.generate(
"What can I do with Marqeta?"
);
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 Marqeta MCP Server
Connect your Marqeta account to any AI agent to manage your card issuing infrastructure through natural conversation. This server provides comprehensive tools for managing the entire lifecycle of card programs.
Mastra's agent abstraction provides a clean separation between LLM logic and Marqeta tool infrastructure. Connect 31 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
- User & Business Management — Create and retrieve individual users or business entities to act as account holders.
- Card Issuance — Create physical or virtual payment cards and manage card products that define spending behaviors.
- Funding & GPA Orders — Move funds into account holder General Purpose Accounts (GPA) and manage ACH funding sources.
- Inventory & Retrieval — List users, fetch specific card details, and audit all cards associated with a specific user token.
- Configuration — Define card products with specific start dates and names to control your issuing environment.
The Marqeta MCP Server exposes 31 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 31 Marqeta tools available for Mastra AI
When Mastra AI connects to Marqeta through Vinkius, your AI agent gets direct access to every tool listed below — spanning card-issuing, fintech-api, virtual-cards, 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.
Create ach funding source on Marqeta
Create an ACH funding source
Create auth control on Marqeta
Create an authorization control
Create business on Marqeta
Create a new Marqeta business
Create card on Marqeta
Create a new Marqeta card
Create card product on Marqeta
Create a new Marqeta card product
Create card transition on Marqeta
g., ACTIVE, SUSPENDED, TERMINATED). Create a card transition
Create direct deposit transition on Marqeta
g., to reverse a deposit). Create a direct deposit transition
Create gpa order on Marqeta
Create a GPA order to fund an account
Create payment card funding source on Marqeta
Create a payment card funding source
Create pin control token on Marqeta
Create a PIN control token
Create program funding source on Marqeta
Create a program funding source
Create user on Marqeta
Create a new Marqeta user
Create user transition on Marqeta
g., ACTIVE, SUSPENDED, CLOSED). Create a user transition
Create velocity control on Marqeta
Create a velocity control
Create webhook on Marqeta
Create a webhook
Get balances on Marqeta
Retrieve balances for a user or business
Get business on Marqeta
Retrieve a Marqeta business by token
Get card on Marqeta
Retrieve a Marqeta card by token
Get direct deposit on Marqeta
Retrieve a direct deposit record
Get user on Marqeta
Retrieve a Marqeta user by token
List cards by user on Marqeta
List all cards for a specific user
List users on Marqeta
List Marqeta users
Perform kyc on Marqeta
Perform KYC verification for a user
Ping webhook on Marqeta
Ping a webhook
Provision apple pay on Marqeta
Provision a card for Apple Pay
Provision google pay on Marqeta
Provision a card for Google Pay
Reveal pin on Marqeta
Reveal a card PIN
Simulate authorization on Marqeta
Simulate an authorization
Simulate clearing on Marqeta
Simulate a clearing transaction
Simulate reversal on Marqeta
Simulate a reversal
Update pin on Marqeta
Set or update a card PIN
Connect Marqeta to Mastra AI via MCP
Follow these steps to wire Marqeta 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 Marqeta MCP Server
Mastra AI provides unique advantages when paired with Marqeta through the Model Context Protocol.
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Marqeta 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 Marqeta 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
Marqeta + Mastra AI Use Cases
Practical scenarios where Mastra AI combined with the Marqeta MCP Server delivers measurable value.
Automated workflows: build multi-step agents that query Marqeta, process results, and trigger downstream actions in a typed pipeline
SaaS integrations: embed Marqeta as a first-class tool in your product's AI features with Mastra's clean agent API
Background jobs: schedule Mastra agents to query Marqeta on a cron and store results in your database automatically
Multi-agent systems: create specialist agents that collaborate using Marqeta tools alongside other MCP servers
Example Prompts for Marqeta in Mastra AI
Ready-to-use prompts you can give your Mastra AI agent to start working with Marqeta immediately.
"List the last 10 users registered in my Marqeta environment."
"Issue a new virtual card for user token 'user_888' using card product 'prod_999'."
"Fund $50.00 USD to user 'u_789' from funding source 'fs_000'."
Troubleshooting Marqeta MCP Server with Mastra AI
Common issues when connecting Marqeta to Mastra AI through Vinkius, and how to resolve them.
createMCPClient not exported
npm install @mastra/mcpMarqeta + Mastra AI FAQ
Common questions about integrating Marqeta 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 →
JVZoo
10 toolsManage products, sales, and affiliates via JVZoo API.

HRBlade
6 toolsStreamline recruitment with an ATS that manages job postings, candidate pipelines, and interview scheduling for growing teams.

rct.ai
10 toolsCreate AI-powered NPCs and metaverse scenarios — manage autonomous virtual beings and narrative logic directly from any AI agent.

Grid
12 toolsTurn spreadsheet data into interactive dashboards and visual stories that make numbers accessible to every stakeholder.
