Skip to main content
RI

Rinne

v0.1.0API Key

Card acquiring, PIX, cards-on-file and 3D Secure across an organization/merchant hierarchy. Your agent onboards merchants, runs card and PIX transactions, and moves payouts through cashouts and banking.

62 tools5 env varsπŸ‡§πŸ‡· Brazilstable on npm

What your agent can do

Rinne gives your agent 62 tools it calls directly β€” pick the ones it needs, in Claude, Cursor, or any MCP client.

  • get_company β€” Get the authenticated company (organization or merchant, depending on the API key's scope).
  • update_company β€” Update the authenticated company. All fields optional.
  • create_merchant β€” Create a new merchant under your organization. Requires KYC data. Financial fields may be required by specific affiliation providers later.
Example call
// Your agent calls a tool directly β€” no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("get_company", { /* ... */ });

Install

terminal
$ npm install @codespar/mcp-rinne

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

claude_desktop_config.json
{
  "mcpServers": {
    "rinne": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-rinne"
      ],
      "env": {
        "RINNE_API_KEY": "<your_rinne_api_key>"
      }
    }
  }
}

After restart, your agent can call any of the 62 tools below β€” try get_company first.

Environment variables Β· 5

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

RINNE_API_KEY
requiredsecret

API key sent as x-api-key header on every request. Organization-level keys see all merchants; merchant-level keys are scoped to one merchant.

RINNE_SANDBOX
optional

Defaults to sandbox (https://api-sandbox.rinne.com.br/core). Set to "false" for production (https://api.rinne.com.br/core).

RINNE_EMAIL
optional

Login identifier for the access-management tools (API Keys, Roles, Permissions, org Users, Zipcode lookup), which reject x-api-key by design and require a JWT session.

RINNE_PASSWORD
optionalsecret

Login password paired with RINNE_EMAIL.

RINNE_COMPANY_ID
optional

Company to select after JWT login, for accounts with access to multiple companies.

Available tools Β· 62

Each tool is independent β€” your agent loads only what it needs to reduce context and response time.

READget_company
Get the authenticated company (organization or merchant, depending on the API key's scope).
WRITEupdate_company
Update the authenticated company. All fields optional.
WRITEcreate_merchant
Create a new merchant under your organization. Requires KYC data. Financial fields may be required by specific affiliation providers later.
READlist_merchants
List merchants under your organization.
READget_merchant
Get merchant details by ID.
WRITEupdate_merchant
Update a merchant. All fields optional besides merchant_id.
WRITEcreate_affiliation
Create a merchant account with a payment provider (e.g. RINNE, CAPPTA, CELCOIN), enabling transaction processing for the given payment methods and capture channels. Starts in PENDING_APPROVAL.
WRITEregister_affiliation
Register a gateway-mode affiliation β€” bring an existing account/credentials with the provider instead of having Rinne provision a new one.

Compatible frameworks

MCP is a protocol β€” any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

Run `npx -y @codespar/mcp-rinne` and add the config block above to your MCP client β€” Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
Rinne β€” MCP server Β· 62 tools | CodeSpar