# ar-agents

> ar-agents is an open-source MCP server for agent tooling. MCP server bundling Argentine business tools: Mercado Pago, AFIP/ARCA, WhatsApp and more. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted
- **Repository:** https://github.com/ar-agents/ar-agents/tree/HEAD/packages/mcp
- **MCP Registry name:** io.github.ar-agents/mcp
- **Categories:** [agent tooling](https://ai-powered.com/categories/agent-tooling)
- **Listing updated:** 2026-11-21

## About

The README presents this package as a single MCP server that gathers the @ar-agents toolkit: CUIT validation, AFIP/ARCA padron lookups, identity attestation, Mercado Pago payments and subscriptions, and WhatsApp Business messaging. It installs over stdio into MCP hosts such as Claude Desktop, Cursor and Cline, and which tools appear depends on which environment variables are set. Without any credentials, only the algorithm-only CUIT validator is available.

The server includes a governance gate enabled by default. Read-level tools run freely, while money, fiscal, legal or irreversible actions are refused unless a human-approval hook is wired in. A kill-switch environment variable can suspend every tool. The README also lists a number of genuine read tools that the fail-closed classifier currently gates, and documents an opt-out setting.

The package is aimed at developers and operators in Argentina who want an AI assistant to work with local tax, payment and messaging services. The README notes it is pre-1.0, so minor versions may include breaking changes.

## Features

- **Modular tool sets:** Tools load only for the integrations whose credentials are configured, so the surface grows with setup.
- **Mercado Pago tools:** Exposes payment, refund, subscription and customer operations, with sandbox or production tokens selected by prefix.
- **AFIP/ARCA lookups:** Provides CUIT validation and padron lookups, with electronic invoicing tools enabled by a certificate and key.
- **WhatsApp messaging:** Sends text, template, media, button and list messages through the WhatsApp Business Cloud API.
- **Human approval gate:** Refuses money, fiscal and legal tool calls unless an approval hook is wired, and can be disabled via an env var.

## Good for

- Validating a CUIT and checking its registration data before issuing an invoice
- Creating Mercado Pago payment preferences and subscriptions from an AI assistant
- Sending WhatsApp Business messages to customers from an IDE or chat host
- Running Argentine business workflows in Claude Desktop or Cursor without writing code

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp --env MP_ACCESS_TOKEN='<MP_ACCESS_TOKEN>' --env AFIP_CERT_PEM='<AFIP_CERT_PEM>' --env AFIP_KEY_PEM='<AFIP_KEY_PEM>' --env WHATSAPP_ACCESS_TOKEN='<WHATSAPP_ACCESS_TOKEN>' -- npx -y @ar-agents/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ar-agents/mcp"
      ],
      "env": {
        "MP_ACCESS_TOKEN": "<MP_ACCESS_TOKEN>",
        "AFIP_CERT_PEM": "<AFIP_CERT_PEM>",
        "AFIP_KEY_PEM": "<AFIP_KEY_PEM>",
        "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ar-agents/mcp"
      ],
      "env": {
        "MP_ACCESS_TOKEN": "<MP_ACCESS_TOKEN>",
        "AFIP_CERT_PEM": "<AFIP_CERT_PEM>",
        "AFIP_KEY_PEM": "<AFIP_KEY_PEM>",
        "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ar-agents/mcp"
      ],
      "env": {
        "MP_ACCESS_TOKEN": "<MP_ACCESS_TOKEN>",
        "AFIP_CERT_PEM": "<AFIP_CERT_PEM>",
        "AFIP_KEY_PEM": "<AFIP_KEY_PEM>",
        "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ar-agents/mcp"
      ],
      "env": {
        "MP_ACCESS_TOKEN": "<MP_ACCESS_TOKEN>",
        "AFIP_CERT_PEM": "<AFIP_CERT_PEM>",
        "AFIP_KEY_PEM": "<AFIP_KEY_PEM>",
        "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp --env MP_ACCESS_TOKEN='<MP_ACCESS_TOKEN>' --env AFIP_CERT_PEM='<AFIP_CERT_PEM>' --env AFIP_KEY_PEM='<AFIP_KEY_PEM>' --env WHATSAPP_ACCESS_TOKEN='<WHATSAPP_ACCESS_TOKEN>' -- npx -y @ar-agents/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@ar-agents/mcp"]
env = { MP_ACCESS_TOKEN = "<MP_ACCESS_TOKEN>", AFIP_CERT_PEM = "<AFIP_CERT_PEM>", AFIP_KEY_PEM = "<AFIP_KEY_PEM>", WHATSAPP_ACCESS_TOKEN = "<WHATSAPP_ACCESS_TOKEN>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ar-agents/mcp"
      ],
      "env": {
        "MP_ACCESS_TOKEN": "<MP_ACCESS_TOKEN>",
        "AFIP_CERT_PEM": "<AFIP_CERT_PEM>",
        "AFIP_KEY_PEM": "<AFIP_KEY_PEM>",
        "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e MP_ACCESS_TOKEN='<MP_ACCESS_TOKEN>' -e AFIP_CERT_PEM='<AFIP_CERT_PEM>' -e AFIP_KEY_PEM='<AFIP_KEY_PEM>' -e WHATSAPP_ACCESS_TOKEN='<WHATSAPP_ACCESS_TOKEN>' mcp npx -- -y @ar-agents/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ar-agents/mcp"
      ],
      "env": {
        "MP_ACCESS_TOKEN": "<MP_ACCESS_TOKEN>",
        "AFIP_CERT_PEM": "<AFIP_CERT_PEM>",
        "AFIP_KEY_PEM": "<AFIP_KEY_PEM>",
        "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ar-agents/mcp"
      ],
      "env": {
        "MP_ACCESS_TOKEN": "<MP_ACCESS_TOKEN>",
        "AFIP_CERT_PEM": "<AFIP_CERT_PEM>",
        "AFIP_KEY_PEM": "<AFIP_KEY_PEM>",
        "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ar-agents/mcp"
      ],
      "env": {
        "MP_ACCESS_TOKEN": "<MP_ACCESS_TOKEN>",
        "AFIP_CERT_PEM": "<AFIP_CERT_PEM>",
        "AFIP_KEY_PEM": "<AFIP_KEY_PEM>",
        "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ar-agents/mcp"
      ],
      "env": {
        "MP_ACCESS_TOKEN": "<MP_ACCESS_TOKEN>",
        "AFIP_CERT_PEM": "<AFIP_CERT_PEM>",
        "AFIP_KEY_PEM": "<AFIP_KEY_PEM>",
        "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ar-agents/mcp"
      ],
      "env": {
        "MP_ACCESS_TOKEN": "<MP_ACCESS_TOKEN>",
        "AFIP_CERT_PEM": "<AFIP_CERT_PEM>",
        "AFIP_KEY_PEM": "<AFIP_KEY_PEM>",
        "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ar-agents/mcp"
      ],
      "env": {
        "MP_ACCESS_TOKEN": "<MP_ACCESS_TOKEN>",
        "AFIP_CERT_PEM": "<AFIP_CERT_PEM>",
        "AFIP_KEY_PEM": "<AFIP_KEY_PEM>",
        "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ar-agents/mcp"
      ],
      "env": {
        "MP_ACCESS_TOKEN": "<MP_ACCESS_TOKEN>",
        "AFIP_CERT_PEM": "<AFIP_CERT_PEM>",
        "AFIP_KEY_PEM": "<AFIP_KEY_PEM>",
        "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ar-agents/mcp"
      ],
      "env": {
        "MP_ACCESS_TOKEN": "<MP_ACCESS_TOKEN>",
        "AFIP_CERT_PEM": "<AFIP_CERT_PEM>",
        "AFIP_KEY_PEM": "<AFIP_KEY_PEM>",
        "WHATSAPP_ACCESS_TOKEN": "<WHATSAPP_ACCESS_TOKEN>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 6 of 10 tools change data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `validate_cuit` (name suggests: reads): Validates an Argentine CUIT tax ID algorithmically.
- `lookup_cuit_afip` (name suggests: reads): Looks up CUIT data in the AFIP/ARCA padron when AFIP credentials are set.
- `create_payment_preference` (name suggests: changes): Creates a Mercado Pago payment preference.
- `create_payment` (name suggests: changes): Creates a Mercado Pago payment.
- `search_payments` (name suggests: reads): Searches Mercado Pago payments.
- `refund_payment`: Refunds a Mercado Pago payment.
- `create_subscription` (name suggests: changes): Creates a Mercado Pago subscription.
- `send_whatsapp_text` (name suggests: changes): Sends a WhatsApp text message via the Business Cloud API.
- `send_whatsapp_template` (name suggests: changes): Sends a WhatsApp template message.
- `send_whatsapp_media` (name suggests: changes): Sends a WhatsApp media message.

## FAQ

### Which MCP hosts does ar-agents support?

The README names Claude Desktop, Cursor, Codeium, Continue and Cline, and says any MCP stdio-compatible host should work.

### Does ar-agents work without any credentials?

Yes, but only the validate_cuit tool is registered, since it is algorithm-only.

### What license does ar-agents use?

The README states the package is released under the MIT license.

### Are money-moving tools run automatically?

No. By default, money, fiscal, legal and unclassified tools are refused unless a human approval hook is wired in or the gate is turned off.

### Is ar-agents free?

Yes. ar-agents is open source, so you can use and self-host it for free.

### How do I add ar-agents to Claude Code?

Run this command in your terminal: claude mcp add mcp --env MP_ACCESS_TOKEN='<MP_ACCESS_TOKEN>' --env AFIP_CERT_PEM='<AFIP_CERT_PEM>' --env AFIP_KEY_PEM='<AFIP_KEY_PEM>' --env WHATSAPP_ACCESS_TOKEN='<WHATSAPP_ACCESS_TOKEN>' -- npx -y @ar-agents/mcp

### What are the best alternatives to ar-agents?

The closest alternatives to ar-agents are azeth-protocol, Imperium MCP Gateway — Universal 490+ Tool Discovery, Safe-Proxy & Router, Appointment Booking, Anp2 MCP Server and Compliance Check.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [azeth-protocol](https://ai-powered.com/mcp/azeth-protocol): azeth-protocol is an open-source MCP server for agent tooling.
- [Imperium MCP Gateway — Universal 490+ Tool Discovery, Safe-Proxy & Router](https://ai-powered.com/mcp/imperium-mcp-gateway-universal-490-tool-discovery-safe-proxy): Imperium MCP Gateway — Universal 490+ Tool Discovery, Safe-Proxy & Router is a paid MCP server for agent tooling.
- [Appointment Booking](https://ai-powered.com/mcp/appointment-booking): Appointment Booking is a freemium MCP server for maps and travel.
- [Anp2 MCP Server](https://ai-powered.com/mcp/anp2-mcp-server): Anp2 MCP Server is an open-source MCP server for agent tooling.
- [Compliance Check](https://ai-powered.com/mcp/compliance-check): Compliance Check is a freemium MCP server for security.
- [mcp-agent-template](https://ai-powered.com/mcp/mcp-agent-template): mcp-agent-template is an open-source MCP server for security.
- [Agentpay Gateway MCP](https://ai-powered.com/mcp/agentpay-gateway-mcp): Agentpay Gateway MCP is a freemium MCP server for agent tooling.
- [APEX AI, LLM, PDF, QR, JSON & Media MCP](https://ai-powered.com/mcp/apex-ai-llm-pdf-qr-json-and-media-mcp): APEX AI, LLM, PDF, QR, JSON & Media MCP is a freemium MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/ar-agents
