CobroYa MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "MERCADO_PAGO_ACCESS_TOKEN=${MERCADO_PAGO_ACCESS_TOKEN}" cobroya -- npx -y cobroya
Required:MERCADO_PAGO_ACCESS_TOKEN
README.md

Cobra con Mercado Pago en 10 segundos.

CobroYa

Cobra con Mercado Pago en 10 segundos.

CobroYa is an open-source Mercado Pago payment tool for AI agents, Telegram, WhatsApp, and automation platforms. Create payment links, search payments, issue refunds -- all from your AI assistant or chat bot.

Website | npm | GitHub


Quick Start with AI

CobroYa is an MCP (Model Context Protocol) server. Add it to your AI tool in one step -- no cloning, no building. Just provide your Mercado Pago access token.

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "cobroya": {
      "command": "npx",
      "args": ["-y", "cobroya"],
      "env": {
        "MERCADO_PAGO_ACCESS_TOKEN": "APP_USR-..."
      }
    }
  }
}

Claude Code

claude mcp add cobroya -- npx -y cobroya \
  --env MERCADO_PAGO_ACCESS_TOKEN=APP_USR-...

Cursor

Add to .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "cobroya": {
      "command": "npx",
      "args": ["-y", "cobroya"],
      "env": {
        "MERCADO_PAGO_ACCESS_TOKEN": "APP_USR-..."
      }
    }
  }
}

Windsurf

Add to your Windsurf MCP configuration:

{
  "mcpServers": {
    "cobroya": {
      "command": "npx",
      "args": ["-y", "cobroya"],
      "env": {
        "MERCADO_PAGO_ACCESS_TOKEN": "APP_USR-..."
      }
    }
  }
}

Once configured, ask your AI assistant things like: "Create a payment link for $5000 for a Python course" or "Show me today's approved payments".


Available Tools

CobroYa exposes 5 MCP tools that any connected AI agent can call:

Tool Description
create_payment_preference Create a Mercado Pago checkout payment link. Returns an init_point URL to share with buyers. Supports back_urls and notification_url.
get_payment Retrieve full details of a payment by ID, including status, amount, and payer info.
search_payments Search payments with filters: status (approved, pending, rejected, etc.), sort order, and pagination.
create_refund Issue a full or partial refund for a payment. Omit amount for a full refund.
get_merchant_info Get the authenticated merchant's profile: user ID, nickname, and site.

Telegram Bot

CobroYa includes a ready-to-use Telegram bot: @CobroYa_bot

Self-hosting the bot

  1. Create a bot via @BotFather and get your token.
  2. Set environment variables:
export MERCADO_PAGO_ACCESS_TOKEN="APP_USR-..."
export TELEGRAM_BOT_TOKEN="your-telegram-bot-token"
  1. Run:
npx cobroya-telegram

Or from source:

npm run bot

WhatsApp

CobroYa supports WhatsApp Business Cloud API for receiving commands and sending payment notifications.

  1. Create a Meta app at Meta for Developers and enable WhatsApp Business API.
  2. Set environment variables:
export WHATSAPP_ACCESS_TOKEN="your-meta-graph-api-token"
export WHATSAPP_PHONE_NUMBER_ID="your-phone-number-id"
export WHATSAPP_VERIFY_TOKEN="your-webhook-verify-token"
  1. Run the webhook server:
npm run whatsapp
# Starts on http://localhost:3000/webhook
  1. Expose with ngrok (ngrok http 3000) and configure the webhook URL in your Meta Dashboard.

For full details on supported commands and payment notifications, see the WhatsApp documentation.


Automation Platforms

Pre-built packages for popular automation platforms are available in the packages/ directory:

  • n8n -- packages/n8n-nodes-mercadopago
  • Zapier -- packages/zapier-mercadopago
  • Make -- packages/make-mercadopago
  • Pipedream -- packages/pipedream-mercadopago

Each package wraps the CobroYa core with platform-specific configuration. See the README in each package for setup instructions.


AI Framework Adapters

LangChain (Python)

pip install langchain-mercadopago
from langchain_mercadopago import create_mercadopago_tools

tools = create_mercadopago_tools("APP_USR-...")

# Use with any LangChain agent
from langchain.agents import initialize_agent, AgentType
from langchain_openai import ChatOpenAI

agent = initialize_agent(
    tools=tools,
    llm=ChatOpenAI(model="gpt-4"),
    agen

Tools (5)

create_payment_preferenceCreate a Mercado Pago checkout payment link.
get_paymentRetrieve full details of a payment by ID.
search_paymentsSearch payments with filters like status, sort order, and pagination.
create_refundIssue a full or partial refund for a payment.
get_merchant_infoGet the authenticated merchant's profile details.

Environment Variables

MERCADO_PAGO_ACCESS_TOKENrequiredYour Mercado Pago API access token.

Configuration

claude_desktop_config.json
{"mcpServers": {"cobroya": {"command": "npx", "args": ["-y", "cobroya"], "env": {"MERCADO_PAGO_ACCESS_TOKEN": "APP_USR-..."}}}}

Try it

Create a payment link for $5000 for a Python course.
Show me today's approved payments.
Get the details for payment ID 123456789.
Issue a full refund for the last payment I received.
What is my current merchant nickname and user ID?

Frequently Asked Questions

What are the key features of CobroYa?

Create Mercado Pago checkout payment links. Search and filter payment history. Retrieve detailed payment information by ID. Process full or partial refunds. Access merchant profile and account information.

What can I use CobroYa for?

Automating payment link generation for freelance services via AI chat. Quickly checking payment status during customer support interactions. Managing refunds directly through an AI-powered dashboard. Integrating payment data into automated reporting workflows.

How do I install CobroYa?

Install CobroYa by running: npx -y cobroya

What MCP clients work with CobroYa?

CobroYa works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep CobroYa docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare