Skip to main content
Glama
andrespadeto

ribbo-mcp

by andrespadeto

ribbo-mcp

Ribbo's MCP (Model Context Protocol) server. It connects your AI assistant (Claude Desktop, Cursor, etc.) to Ribbo’s recurring billing API and turns it into an operator: the AI now performs real actions — create and manage subscriptions, query entitlements, refund payments, charge right away, and generate payment/renewal links.

Authentication uses your tenant API key (bk_ prefix), generated in the dashboard under Developers → API keys. The server is a thin client of the public API: no secret lives in the code — you supply your key through an environment variable.


Requirements

  • Node.js 18+

  • A Ribbo API key (bk_…). Use a read-scoped key to only query, or a write-scoped key so the AI can take action (issue refunds, charge, cancel, etc.).

Related MCP server: Agent Billy MCP Server

Installation

The fastest way — without cloning anything — is to point your AI client at the package via npx. To test in your terminal:

# direto do GitHub (funciona já):
npx -y github:andrespadeto/ribbo-mcp

# ou, depois de publicado no npm:
npx -y ribbo-mcp

It stays waiting on stdio — that's how an MCP server works. The client that actually "talks" to it is your AI client (see below), not the terminal. To quit, press: Ctrl+C.

Configuration

Two environment variables:

Variable

Description

RIBBO_API_KEY

Your API key (bk_…) from the panel under Developers → API keys. write enables actions; read only runs queries.

RIBBO_API_BASE

Base URL of the API, no trailing slash. Example: https://api.ribbo.app

Claude Desktop

In claude_desktop_config.json (menu → Settings → Developer → Edit Config):

{
  "mcpServers": {
    "ribbo": {
      "command": "npx",
      "args": ["-y", "github:andrespadeto/ribbo-mcp"],
      "env": {
        "RIBBO_API_KEY": "bk_sua_chave_aqui",
        "RIBBO_API_BASE": "https://api.ribbo.app"
      }
    }
  }
}

Restart Claude Desktop. The Ribbo tools appear in the chat’s tools icon.

Cursor

Using .cursor/mcp.json (in the project) or the global MCP settings, use the same mcpServers block above.

After it is published to npm, replace "github:andrespadeto/ribbo-mcp" with "ribbo-mcp".

Tools

Reading (a read key is enough):

Tool

What it does

check_entitlements

Queries a customer’s entitlements.

list_subscriptions

Lists the tenant’s subscriptions (filters/pagination).

get_subscription

Shows subscription details.

get_gateway_events

Timeline of how the gateway responded for the charges.

get_payment

Shows payment details.

get_customer_subscriptions

Subscriptions of a customer (by external_id).

get_customer_payments

Payment history of a customer.

get_referral_link

Referral link.

get_renewal_campaign_link

Link of a renewal campaign for a given subscriber.

list_renewal_campaign_links

All links of a campaign.

get_payment_link

Payment link for the open invoice of a subscription.

get_order_payment_link

2nd copy / re-access to the PIX for an order (one-off purchase or renewal advance).

Writing (requires a write key — moves money/state):

Tool

What it does

create_subscription

Creates a subscription (including without a card: manual PIX / migration).

change_plan

Changes the plan (upgrade/downgrade/change cycle).

cancel_plan_change

Cancels a scheduled plan change.

cancel_subscription

Cancels the subscription.

charge_now

Triggers the charge for the current invoice immediately.

reschedule_subscription

Reschedules the next charge.

remove_coupon

Removes the coupon from the subscription.

create_renewal_link

Creates a renewal advance link.

create_payment_method_link

Creates a payment method change link.

refund_payment

Refunds a payment.

update_customer

Updates customer name/phone.

update_customer_email

Updates the customer’s email (local + gateway).

Security

  • The key identifies and isolates your tenant — data from other tenants is never accessible.

  • The write tools move money/state (refund, charge, cancel). Use a read key when the AI only needs to query and a write key only where it should act.

  • The key lives in the MCP client’s env (on your machine) — treat it as a secret; never commit it.

  • The code is open source and contains no secrets: every credential comes from the environment.

API Conventions

Money is in cents (integer); IDs have a prefix (sub_, cus_, pay_, ord_…); dates are in ISO-8601 UTC. Errors come back as Erro <status>: {…}. The full contract (OpenAPI 3.1) is available at GET {RIBBO_API_BASE}/v1/public/schema/.

Development

git clone https://github.com/andrespadeto/ribbo-mcp.git
cd ribbo-mcp
npm install          # o "prepare" compila o TypeScript para dist/
cp .env.example .env # preencha RIBBO_API_KEY e RIBBO_API_BASE
npm run dev          # build + start
  • Source code in src/ (TypeScript ESM). src/index.ts registers the tools; src/api.ts is the HTTP (Bearer) client.

  • The build (dist/) is generated by npm run build and is not versioned.

License

MIT © Ribbo

Install Server
A
license - permissive license
B
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides secure, role-based access to Stripe billing operations for AI assistants like Claude and Cursor. It enables users to manage customers, subscriptions, invoices, and refunds through a local proxy with server-side permission enforcement.
    12
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to access Magpie Payment Platform APIs for processing payments, creating checkout sessions, sending invoices, and managing payment links through natural conversation.
    90
    1
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

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/andrespadeto/ribbo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server