Konfío MCP Server for Mastra AI 14 tools — connect in under 2 minutes
Mastra AI is a TypeScript-native agent framework built for modern web stacks. Connect Konfío 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
Vinkius supports streamable HTTP and SSE.
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: {
"konfio": {
url: "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
},
},
});
const tools = await mcpClient.getTools();
const agent = new Agent({
name: "Konfío Agent",
instructions:
"You help users interact with Konfío " +
"using 14 tools.",
model: openai("gpt-4o"),
tools,
});
const result = await agent.generate(
"What can I do with Konfío?"
);
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 Konfío MCP Server
Connect your Konfío business account to any AI agent and manage Mexico's leading SMB financial suite through natural conversation. Whether you need to pay a loan, check credit limits, or emit electronic invoices (CFDIs), the AI handles the heavy lifting.
Mastra's agent abstraction provides a clean separation between LLM logic and Konfío tool infrastructure. Connect 14 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
- Loan Management — Track active business loans, get amortization schedules, and make direct loan payments from your connected accounts
- Credit Cards — Review corporate credit card spending, check available limits, and fetch monthly statements for reconciliation
- Electronic Invoicing (CFDI 4.0) — List emitted and received SAT invoices, and generate new legally compliant invoices with automatic stamp generation
- B2B Transfers — Create SPEI transfers to suppliers and employees directly from your Konfío account
- Credit Line Monitoring — Check your business credit score status and apply for new working capital credit lines
The Konfío MCP Server exposes 14 tools through the Vinkius. Connect it to Mastra AI in under two minutes — no API keys to rotate, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
How to Connect Konfío to Mastra AI via MCP
Follow these steps to integrate the Konfío MCP Server with Mastra AI.
Install dependencies
Run npm install @mastra/core @mastra/mcp @ai-sdk/openai
Replace the token
Replace [YOUR_TOKEN_HERE] with your Vinkius token
Run the agent
Save to agent.ts and run with npx tsx agent.ts
Explore tools
Mastra discovers 14 tools from Konfío via MCP
Why Use Mastra AI with the Konfío MCP Server
Mastra AI provides unique advantages when paired with Konfío through the Model Context Protocol.
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Konfío 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 Konfío 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
Konfío + Mastra AI Use Cases
Practical scenarios where Mastra AI combined with the Konfío MCP Server delivers measurable value.
Automated workflows: build multi-step agents that query Konfío, process results, and trigger downstream actions in a typed pipeline
SaaS integrations: embed Konfío as a first-class tool in your product's AI features with Mastra's clean agent API
Background jobs: schedule Mastra agents to query Konfío on a cron and store results in your database automatically
Multi-agent systems: create specialist agents that collaborate using Konfío tools alongside other MCP servers
Konfío MCP Tools for Mastra AI (14)
These 14 tools become available when you connect Konfío to Mastra AI via MCP:
check_credit_status
Check business credit rating and eligibility status
create_invoice
0 invoice for a client. Requires client RFC, tax regime, items, and CFDI usage code. Create and emit a new electronic invoice (CFDI)
create_transfer
Create a supplier B2B transfer (SPEI)
get_business_profile
Get Konfío business profile
get_cc_statement
Get a credit card monthly statement
get_credit_card
Get business credit card details
get_loan_details
Get details of a specific business loan
get_payment_schedule
Get the amortization schedule for a loan
list_cc_transactions
List credit card transactions
list_invoices
You can filter by issued (emitted) or received invoices. List electronic invoices (CFDIs)
list_loans
List active and past business loans
list_transfers
List B2B outgoing wire transfers
make_loan_payment
Make a payment towards a business loan
request_credit_line
Submit a new credit line request
Example Prompts for Konfío in Mastra AI
Ready-to-use prompts you can give your Mastra AI agent to start working with Konfío immediately.
"Show me my latest business credit card transactions."
"List the last 5 invoices we emitted to clients."
"Make a loan payment of $12,000 for loan LOAN-442."
Troubleshooting Konfío MCP Server with Mastra AI
Common issues when connecting Konfío to Mastra AI through the Vinkius, and how to resolve them.
createMCPClient not exported
npm install @mastra/mcpKonfío + Mastra AI FAQ
Common questions about integrating Konfío 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?
Connect Konfío with your favorite client
Step-by-step setup guides for every MCP-compatible client and framework:
Anthropic's native desktop app for Claude with built-in MCP support.
AI-first code editor with integrated LLM-powered coding assistance.
GitHub Copilot in VS Code with Agent mode and MCP support.
Purpose-built IDE for agentic AI coding workflows.
Autonomous AI coding agent that runs inside VS Code.
Anthropic's agentic CLI for terminal-first development.
Python SDK for building production-grade OpenAI agent workflows.
Google's framework for building production AI agents.
Type-safe agent development for Python with first-class MCP support.
TypeScript toolkit for building AI-powered web applications.
TypeScript-native agent framework for modern web stacks.
Python framework for orchestrating collaborative AI agent crews.
Leading Python framework for composable LLM applications.
Data-aware AI agent framework for structured and unstructured sources.
Microsoft's framework for multi-agent collaborative conversations.
Connect Konfío to Mastra AI
Get your token, paste the configuration, and start using 14 tools in under 2 minutes. No API key management needed.
