npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@avenia-io/mcp-client

v0.4.0

Published

Official MCP server for the Avenia public API. Connect Claude Code, Cursor, Zed, and other MCP clients to the Avenia platform.

Readme

status docs license

Up-to-date Avenia APIs, docs, and integration guides for AI agents.

The official Model Context Protocol server for Avenia — borderless payments infrastructure linking Latin America to the world. It gives AI agents live access to Avenia's integration guides, ready-made flows, endpoint specs with request schemas, and authentication guidance — so they can discover services, retrieve the right guide, and generate accurate integration code without relying on stale training data.

Zero-setup: add the hosted endpoint https://mcp.avenia.io/mcp as a remote connector (docs & specs, no credentials). Or install locally with a single npx command to run live operations — defaults to sandbox.

What This MCP Server Does

This MCP server plugs AI assistants (claude.ai, Cursor, Claude Code, Claude Desktop, Codex, Zed, and any other MCP-compatible client) directly into the Avenia platform. It exposes 66 API tools — one per public API endpoint — plus 6 documentation tools (list/read guides, list/get flows, list/describe endpoints) that let an assistant:

  • Create and manage sub-accounts and accesses for your organization
  • Move money via tickets: Pix pay-ins, PIX / wire pay-outs, FX conversions, and on-chain stablecoin transfers
  • Get fixed-rate quotes with full markup-fee control (BRL, USD, EUR, ARS, USDC, USDT, BRLA, and more)
  • Manage beneficiaries: wallets + BRL / USD / EUR / ARS bank accounts
  • Run KYC flows (Level 1 API, Web SDK, W8-BEN) and track attempts
  • Handle documents, webhooks (register / update / delete / inspect delivery attempts), and email notifications
  • Administer API keys with programmatic rotation

Full list: run listTools from any MCP client once connected, or see the API reference.

Two ways to use it

The server has two modes — and the first needs no credentials:

  • Explore / learn to integrate (no API key): install it and ask your assistant how to integrate. It reads Avenia's guides and step-by-step flows bundled in the server (and can fetch the platform public key). Perfect for a first look, with zero setup.
  • Run live operations (with API key): add an Avenia API key and the assistant can execute quotes, Pix, FX conversions, on-chain transfers, KYC, etc. Without a key, only these live tools are unavailable — the docs, flows and guides all still work.

Accounts & API keys (only needed for live operations):

Avenia accounts are provisioned by the Avenia team — there is no self-service sign-up. Contact your Avenia representative to get set up.

API keys are not created in a dashboard. You create them via the API, behind MFA: log in → enable MFA → create a key with your own RSA public key (the key is returned encrypted to you, then you decrypt it locally). The easiest path is to let your AI assistant walk you through it — connect the MCP (it works keyless) and run the /avenia_flow_create_api_key prompt. Reference: the Integration Guide (API Keys / MFA sections). Use a sandbox key while testing.

Dependencies:

  • Node.js v20 or newer (node -v) — ships with npx, which is all you need for the install below. git is only required if you build from source.

Installation

Hosted endpoint — zero install (docs & specs only)

Add https://mcp.avenia.io/mcp as a remote MCP connector (claude.ai → Settings → Connectors, or any client that supports Streamable HTTP). No install, no credentials — the assistant gets the guides, flows and endpoint specs to answer questions and generate integration code. Live operations are not executable on this endpoint; install locally (below) for those.

No local install step either — your MCP client runs the server on demand with npx. The configs below include an API key for live operations; to only explore the docs and flows, just omit the AVENIA_API_KEY line and the server runs keyless.

Claude Desktop — one-click bundle (no terminal)

Prefer zero setup? Download the latest .mcpb bundle from the Releases page and open it — Claude Desktop installs it and shows a form to (optionally) paste your API key and pick the environment. Leave the key blank to browse docs and flows; add it to run live operations. Note: .mcpb bundles don't auto-update — grab the latest on each release.

Claude Code

claude mcp add --transport stdio avenia \
  --env AVENIA_API_KEY=your-api-key-here \
  --env AVENIA_ENV=sandbox \
  -- npx -y @avenia-io/mcp-client

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "avenia": {
      "command": "npx",
      "args": ["-y", "@avenia-io/mcp-client"],
      "env": {
        "AVENIA_API_KEY": "your-api-key-here",
        "AVENIA_ENV": "sandbox"
      }
    }
  }
}

Claude Desktop

Add to your Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "avenia": {
      "command": "npx",
      "args": ["-y", "@avenia-io/mcp-client"],
      "env": {
        "AVENIA_API_KEY": "your-api-key-here",
        "AVENIA_ENV": "sandbox"
      }
    }
  }
}

Codex

codex mcp add avenia \
  --env AVENIA_API_KEY=your-api-key-here \
  --env AVENIA_ENV=sandbox \
  -- npx -y @avenia-io/mcp-client

Or add to ~/.codex/config.toml:

[mcp_servers.avenia]
command = "npx"
args = ["-y", "@avenia-io/mcp-client"]

[mcp_servers.avenia.env]
AVENIA_API_KEY = "your-api-key-here"
AVENIA_ENV = "sandbox"

[!TIP] npx -y @avenia-io/mcp-client always fetches the latest published version. Pin a specific version with @avenia-io/[email protected].

git clone https://github.com/Avenia-io/avenia-mcp.git
cd avenia-mcp
npm install
npm run build

Then point your client at the built entrypoint: replace npx -y @avenia-io/mcp-client in any config above with node /absolute/path/to/avenia-mcp/dist/index.js (absolute path — ~ is not expanded by most MCP clients).

Environment Variables

| Variable | Required | Default | Description | |---|---|---|---| | AVENIA_API_KEY | live ops only | — | API key from the Avenia dashboard. Sent as X-API-Key. Omit to run keyless (docs, flows & guides work; live tools return a "credential required" message). | | AVENIA_BEARER_TOKEN | alt. | — | Short-lived JWT from a login flow. Sent as Authorization: Bearer. | | AVENIA_ENV | | sandbox | sandbox or production. | | AVENIA_API_BASE_URL | | derived | Override the base URL (advanced). | | AVENIA_TIMEOUT_MS | | 60000 | Per-request HTTP timeout. | | AVENIA_LOG_LEVEL | | info | silent / error / info / debug — logs go to stderr. |

Example Prompts

Once configured, ask your AI assistant:

"Get me a fixed-rate quote for sending R$ 10,000 via Pix to USDC on Polygon"

"List all tickets from the last 7 days that are still pending"

"Create a BRL beneficiary named 'Fornecedor ACME' with Pix key [email protected]"

"Show me my current balances and daily limits"

"Register a webhook at https://mysite.com/hook for TICKET events"

"Create a sub-account for customer João Silva and send me the sub-account ID"

"What's the KYC status of sub-account sub_xxxxxxxx and what's still pending?"

[!TIP] Use AVENIA_ENV=sandbox while testing. Everything runs against sandbox.avenia.io — no real money, no real customers. Switch to production only when you're ready.

[!NOTE] Sub-account operations accept subAccountId as a parameter on most tools. If your assistant doesn't pick it up automatically, mention it explicitly in your prompt (e.g. "…for sub-account sub_abc123…").

Flows & Guides

Beyond the 66 tools, the server exposes two more MCP primitives so assistants can run real integration flows end-to-end:

Prompts (ready-made flows)

Nine curated prompts map the most common integrations to a step-by-step plan. In Claude Code, Claude Desktop and Cursor these appear as slash commands (e.g. /avenia_flow_pix_to_stablecoin_onchain). Each takes typed arguments and returns a message the assistant can execute directly.

| Prompt | What it does | |---|---| | avenia_flow_pix_to_stablecoin_onchain | Accept Pix in BRL → convert to USDC/USDT → send on-chain to an external wallet | | avenia_flow_stablecoin_to_pix | Spend a stablecoin balance → pay out via Pix to a BRL beneficiary | | avenia_flow_kyc_level_1 | Submit individual KYC L1 (API or Web SDK) and poll to approval | | avenia_flow_kyb_level_1_api | Business KYB Level 1 via API | | avenia_flow_register_webhook | Register a webhook + verify the first delivery signature | | avenia_flow_sandbox_mock_funds | Credit mock Pix funds in sandbox for testing | | avenia_flow_create_subaccount_with_kyc | Create a sub-account and run KYC/KYB on it | | avenia_flow_payout_brcode | Pay a dynamic Pix BR Code (copia-e-cola) | | avenia_flow_create_api_key | Guide creating an API key (login → MFA → create key; not a dashboard) |

Resources (integration-guide docs)

Every page of the Integration Guide is exposed as an MCP resource at avenia-guide://<id>. The assistant can list all 36 guides via resources/list and read any of them on demand via resources/read. The server fetches the live page, strips navigation chrome, and returns clean markdown — always up-to-date with the docs site, no stale bundled copies.

Representative guides (see resources/list for the full catalog):

  • avenia-guide://operations-quotes-and-tickets — how quotes become tickets
  • avenia-guide://operations-combinations — valid currency × payment-method combos
  • avenia-guide://usecase-pix2stable-onchain — Pix → stablecoin → on-chain
  • avenia-guide://webhooks-verifying-authenticity — verifying webhook signatures with the platform public key
  • avenia-guide://security-api-keys-management — API key lifecycle with JWE
  • avenia-guide://kyc-level-1 / avenia-guide://kyb-level-1-api — identity verification flows

Documentation

Support

License

This project is licensed under the MIT License.

Made with ♥ by the Avenia team.