ar-agents
OfficialIntegrates with Auth0 for identity verification and authentication, used within a verification orchestrator to attest user identity.
Integrates with Magic.link for passwordless authentication and identity verification.
Provides tools for interacting with the Mercado Pago API, including payments, subscriptions, checkout, OAuth, order management, customers, cards, QR codes, 3DS, point devices, stores, POS, account/balance, webhooks, disputes, lookups, and bank accounts.
Integrates with the WhatsApp Business Cloud API to enable sending and receiving messages, managing webhooks, and normalizing Argentine phone numbers.
ar-agents
Mercado Pago Agent Toolkit. Built on Vercel.
@ar-agents/mercadopago is a Mercado Pago Agent
Toolkit for the Vercel AI SDK 6 Experimental_Agent.
89 typed tools across the agent-relevant Mercado Pago API surface:
Payments · Subscriptions · Checkout Pro · Marketplace OAuth · Order Management · Customers · Cards · Cuotas · QR · 3DS · Point devices · Stores+POS · Account/Balance/Settlements · Webhooks · Disputes · Lookups · Bank Accounts
Edge Runtime. Vercel KV adapters for state, OAuth, idempotency, and audit. OpenTelemetry instrumentation. Deterministic idempotency by default. Programmatic HITL on irreversible operations.
pnpm add @ar-agents/mercadopago ai zodDeploys apps/mp-hello, a runnable agent on Vercel with
Edge Runtime API routes, MP webhook handler, and Upstash-backed subscription
state. Around 2 minutes from click to live.
import { Experimental_Agent as Agent, stepCountIs } from "ai";
import {
MercadoPagoClient,
mercadoPagoTools,
InMemoryStateAdapter,
} from "@ar-agents/mercadopago";
const mp = new MercadoPagoClient({
accessToken: process.env.MP_ACCESS_TOKEN!, // TEST- for sandbox, APP_USR- for prod
});
const agent = new Agent({
model: "anthropic/claude-sonnet-4-6",
tools: mercadoPagoTools(mp, {
state: new InMemoryStateAdapter(), // swap for VercelKVStateAdapter in prod
backUrl: "https://yoursite.com/subscription/done",
}),
stopWhen: stepCountIs(8),
});
const { text } = await agent.generate({
prompt: "Creá una subscription mensual de $1000 ARS para customer@example.com.",
});Full reference, cookbook (9 recipes including OpenTelemetry wiring), and
migration guide vs the official mercadopago SDK live in
packages/mercadopago/.
How it compares
|
| Stripe Agent Toolkit | |
Vercel AI SDK 6 tool schemas | ✓ | no | ✓ (Stripe) |
Argentine-specific (cuotas, ARCA, AR phone) | ✓ | partial | no |
Tool count | 89 | thin REST client | 26 (Stripe) |
Webhooks: HMAC + dedup + replay window | ✓ | client only | ✓ |
Edge Runtime + Vercel KV adapters | ✓ | Node-only | optional |
OpenTelemetry instrumentation | ✓ | no | no |
Deterministic idempotency by default | ✓ | no | no |
Programmatic HITL on irreversible ops | ✓ | no | no |
MercadoPago coverage | full | full | n/a |
Both official SDKs are excellent at what they do (generic REST clients for
their respective APIs). @ar-agents/mercadopago is opinionated for the
agent-operating-an-Argentine-business case, and composes with mercadopago
under the hood when needed. See MIGRATION.md.
Other AR primitives in this monorepo
Same approach, applied to the rest of the stack an Argentine business needs:
Package | Tools | What it does |
2 | CUIT/CUIL validation + AFIP/ARCA padrón lookup (constancia con monotributo + condición IVA). WSAA SOAP via subpath. | |
5 | Verification orchestrator (WhatsApp OTP, email magic-link, Auth0, Magic.link, MP Identity), returns HMAC-signed attestation with | |
6 | WhatsApp Business Cloud API. Webhook + HMAC. AR phone normalizer. | |
10 | AFIP/ARCA factura electrónica (WSFE). Factura A/B/C, NC/ND, FCE MiPyMEs. Local pre-flight validator. | |
5 | CBU/CVU validation + bank/PSP lookup + BCRA Central de Deudores. | |
6 | Andreani (full) + OCA + Correo Argentino. Provincia + CPA helpers. | |
wraps all | Model Context Protocol server. Drop the toolkit into Claude Desktop, Cursor, any MCP host. |
Each package ships a README.md for humans and an AGENTS.md for LLMs reading
the docs at runtime, following the agents.md format
(tool-selection rules, result schemas, error patterns).
Live demos
App | URL | Shows |
Landing | Toolkit overview | |
| CUIT validation + ARCA padrón (real AFIP cert) | |
| Billing assistant: MP composed with identity, identity-attest, whatsapp | |
| dev-only | MP Subscriptions full flow ( |
Develop
pnpm install
pnpm test # 719 tests across 8 packages
pnpm typecheck
pnpm build
pnpm dev # mp-hello on http://localhost:3013Requires Node 20+ and pnpm 10+. CI runs build, typecheck, coverage, manifest-drift, publint, arethetypeswrong, and size-limit on every push.
Repo layout
ar-agents/
├── apps/
│ ├── landing/ # ar-agents.vercel.app
│ ├── cuit-hello/ # ar-agents-cuit-hello.vercel.app (port 3014)
│ ├── whatsapp-hello/ # ar-agents-whatsapp-hello.vercel.app
│ └── mp-hello/ # dev-only (port 3013)
├── packages/
│ ├── mercadopago/ # 89 tools: subscriptions, payments, OAuth, QR, 3DS, point, ...
│ ├── identity/ # CUIT validate + ARCA padrón
│ ├── identity-attest/ # verification orchestrator
│ ├── whatsapp/ # WhatsApp Cloud
│ ├── facturacion/ # AFIP factura electrónica
│ ├── banking/ # CBU/CVU + BCRA
│ ├── shipping/ # Andreani / OCA / Correo
│ └── mcp/ # MCP server wrapping all
├── .github/workflows/ # ci.yml, release.yml
├── package.json # workspace root
└── pnpm-workspace.yamlStability
All packages are pre-1.0. Public API may evolve in 0.x; we follow semver, so minor bumps may include breaking changes and patch bumps never do. Pinning a minor in production is safe.
License
MIT. Built by Nazareno Clemente.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ar-agents/ar-agents'
If you have feedback or need assistance with the MCP directory API, please join our Discord server