Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Agent Billy Server

FreeMaintained

Provides secure, role-based access to Stripe billing operations for AI assistants like Claude and Cursor. It enables users to manage customers, subscriptions, i

GitHubEmbed

About

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.

README

Local MCP proxy that gives AI assistants (Claude, Cursor, Copilot) secure, role-based access to your Stripe billing through your Billy container API.

Quick Start

npx agent-billy --api-url https://yourorg.agentbilly.ai --api-key billy_your-api-key

Or use environment variables:

export BILLY_API_URL=https://yourorg.agentbilly.ai
export BILLY_API_KEY=billy_your-api-key
npx agent-billy

MCP Configuration

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "agent-billy": {
      "command": "npx",
      "args": ["-y", "agent-billy"],
      "env": {
        "BILLY_API_URL": "https://yourorg.agentbilly.ai",
        "BILLY_API_KEY": "billy_your-api-key"
      }
    }
  }
}

Config file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Claude Code

claude mcp add agent-billy \
  -e BILLY_API_URL=https://yourorg.agentbilly.ai \
  -e BILLY_API_KEY=billy_your-api-key \
  -- npx -y agent-billy

Cursor

Go to Settings > MCP Servers > Add new MCP server and enter:

{
  "command": "npx",
  "args": ["-y", "agent-billy"],
  "env": {
    "BILLY_API_URL": "https://yourorg.agentbilly.ai",
    "BILLY_API_KEY": "billy_your-api-key"
  }
}

VS Code (GitHub Copilot)

Add to your settings.json:

{
  "mcp": {
    "servers": {
      "agent-billy": {
        "command": "npx",
        "args": ["-y", "agent-billy"],
        "env": {
          "BILLY_API_URL": "https://yourorg.agentbilly.ai",
          "BILLY_API_KEY": "billy_your-api-key"
        }
      }
    }
  }
}

Authentication

Generate an API key from your Billy dashboard:

  1. Log in at https://yourorg.agentbilly.ai
  2. Go to Settings > API Keys
  3. Click Generate Key and choose a role
  4. Copy the key and use it as your BILLY_API_KEY

API keys inherit the role you assign when creating them. A Billing Clerk key can only perform Billing Clerk actions. Keys can be revoked at any time from Settings.

Available Tools

Read Tools

Tool Description
billy_list_charges List recent charges. Filter by status (succeeded, failed, pending).
billy_get_charge Get details for a specific charge by Stripe charge ID.
billy_list_customers List customers with pagination.
billy_get_customer Get details for a specific customer by Stripe customer ID.
billy_list_subscriptions List subscriptions. Filter by status (active, past_due, canceled, trialing).
billy_list_invoices List invoices. Filter by status (draft, open, paid, void, uncollectible).
billy_list_refunds List all refunds that have been issued.
billy_get_stats Dashboard snapshot: MTD revenue, success rate, active subs, failed charges.
billy_search Search across customers, charges, subscriptions, and invoices by keyword.

Write Tools

Tool Description
billy_create_refund Issue a full or partial refund for a charge.
billy_create_customer Create a new Stripe customer.
billy_update_customer Update a customer's email, name, description, or metadata.
billy_cancel_subscription Cancel a subscription (at period end or immediately).
billy_reactivate_subscription Reactivate a canceled subscription that hasn't fully expired.
billy_send_invoice Send an invoice to the customer via email.
billy_void_invoice Void an invoice so it can no longer be paid.
billy_create_coupon Create a discount coupon (percentage or fixed amount).
billy_delete_coupon Delete a coupon so it can't be applied to new customers.

Role-Based Access

All permissions are enforced server-side. The API key inherits the role of the user who created it.

Role Read Refunds Manage Subs Invoices Customers Coupons
Owner All Unlimited Full Full Full Full
Billing Manager All Up to $5,000 Full Full Full Full
Billing Clerk All Up to $100 View only View only Update only No
Read Only All No No No No No

Spending Limits

Refund limits are enforced per transaction, per role:

  • Owner: No limit
  • Billing Manager: $5,000 per refund
  • Billing Clerk: $100 per refund
  • Read Only: Cannot issue refunds

Attempting to exceed your limit returns a permission error. The action is logged in the audit trail.

CLI Options

agent-billy --api-url <url> --api-key <key>

Options:
  --api-url   Billy container API URL (or BILLY_API_URL env var)
  --api-key   API key (or BILLY_API_KEY env var)
  --token     JWT auth token, alternative to api-key (or BILLY_TOKEN env var)
  --help, -h  Show help

Links

from github.com/Agent-Billy/mcp

Install Agent Billy Server in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install agent-billy-mcp-server

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add agent-billy-mcp-server --env BILLY_API_URL="" --env BILLY_TOKEN="" -- npx -y agent-billy

Step-by-step: how to install Agent Billy Server

FAQ

Is Agent Billy Server MCP free?

Yes, Agent Billy Server MCP is free — one-click install via Unyly at no cost.

Does Agent Billy Server need an API key?

Yes, it requires environment variables: BILLY_API_URL, BILLY_TOKEN. Unyly injects them into the config during install.

Is Agent Billy Server hosted or self-hosted?

A hosted option is available: Unyly runs the server in the cloud, no local setup required.

How do I install Agent Billy Server in Claude Desktop, Claude Code or Cursor?

Open Agent Billy Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Changes

Versions and requested access over time.

  • New version published
  • New version published

Related MCPs

$5

Stripe

Payments, customers, subscriptions

Stripeby Stripe

malamutemayhem/unclick-agent-native-endpoints

110+ tools for AI agents spanning social media, finance, gaming, music, AU-specific services, and utilities. Zero-config local tools plus platform connectors. n

malamutemayhemby malamutemayhem

whiteknightonhorse/APIbase

Unified API hub for AI agents with 56+ tools across travel (Amadeus, Sabre), prediction markets (Polymarket), crypto, and weather. Pay-per-call via x402 micropa

whiteknightonhorseby whiteknightonhorse

trackerfitness729-jpg/sitelauncher-mcp-server

Deploy live HTTPS websites in seconds. Instant subdomains ($1 USDC) or custom .xyz domains ($10 USDC) on Base chain. Templates for crypto tokens and AI agent pr

trackerfitness729-jpgby trackerfitness729-jpg

embeddedlayers/mcp-analytics

Statistical analysis, forecasting, and ML for business data (Shopify, Stripe, WooCommerce, eBay, GA4, Search Console). Upload a CSV or connect live data sources

embeddedlayersby embeddedlayers

carrierone/verilexdata-mcp

20 structured datasets (NPI healthcare, SEC filings, OFAC sanctions, crypto whales, Polymarket signals, patents, economic indicators) via x402 pay-per-query wit

carrieroneby carrierone

tipdotmd/tip-md-x402-mcp-server

MCP server for cryptocurrency tipping through AI interfaces using x402 payment protocol and CDP Wallet.

tipdotmdby tipdotmd

laundromatic/shopgraph

Structured product data from the open web — Schema.org + AI extraction for e-commerce enrichment. Pay per call via Stripe. [shopgraph.dev](https://shopgraph.dev

laundromaticby laundromatic

mrslbt/xendit-mcp

Xendit payment gateway for Southeast Asia. Invoices, disbursements, balance checks, and bank transfers across Indonesia, Philippines, Thailand, Vietnam, and Mal

mrslbtby mrslbt

@arbitova/mcp-server

Non-custodial on-chain escrow + AI dispute arbitration for agent-to-agent USDC payments on Base. Seven tools covering the full EscrowV1 contract surface: create

jiayuanliang0716-maxby jiayuanliang0716-max

Compare Agent Billy Server with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All finance MCPs