mcpField
A
Agent Billy

Agent Billy

Local
github.com/Agent-BillyAI & Agents0Updated 34w ago

About Agent Billy

Agent Billy is an MCP server for teams that need controlled access to Stripe billing operations. Role-based permissions and transaction refund limits govern the available read and write actions.

Key features

  1. 01Search customers, charges, subscriptions, and invoices
  2. 02View billing activity and revenue statistics
  3. 03Issue full or partial refunds
  4. 04Manage customers, subscriptions, invoices, and coupons
  5. 05Enforce role permissions and refund limits

Use cases

  1. 01Look up customer billing details
  2. 02Review subscription and invoice status
  3. 03Issue refunds within role limits

MCP support

It exposes Stripe billing tools to MCP clients through the Billy container API. API keys carry assigned roles, which determine allowed actions and refund limits.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"agent-billy": {
"command": "npx",
"args": [
"-y",
"agent-billy"
],
"env": {
"BILLY_API_URL": "<BILLY_API_URL>",
"BILLY_TOKEN": "<BILLY_TOKEN>"
}
}
}
}
Run commandnpx -y agent-billy
Environment variables to set
BILLY_API_URL
BILLY_TOKENSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmagent-billy

Tools

18

Saved tool list · updated 5w ago

ParameterTypeRequiredDescription
statusstringNoFilter by charge status: succeeded, failed, pending
limitnumberNoMax number of charges to return (default 25)

Details

From the project README

Agent Billy MCP Server

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
ToolDescription
billy_list_chargesList recent charges. Filter by status (succeeded, failed, pending).
billy_get_chargeGet details for a specific charge by Stripe charge ID.
billy_list_customersList customers with pagination.
billy_get_customerGet details for a specific customer by Stripe customer ID.
billy_list_subscriptionsList subscriptions. Filter by status (active, past_due, canceled, trialing).
billy_list_invoicesList invoices. Filter by status (draft, open, paid, void, uncollectible).
billy_list_refundsList all refunds that have been issued.
billy_get_statsDashboard snapshot: MTD revenue, success rate, active subs, failed charges.
billy_searchSearch across customers, charges, subscriptions, and invoices by keyword.
Write Tools
ToolDescription
billy_create_refundIssue a full or partial refund for a charge.
billy_create_customerCreate a new Stripe customer.
billy_update_customerUpdate a customer's email, name, description, or metadata.
billy_cancel_subscriptionCancel a subscription (at period end or immediately).
billy_reactivate_subscriptionReactivate a canceled subscription that hasn't fully expired.
billy_send_invoiceSend an invoice to the customer via email.
billy_void_invoiceVoid an invoice so it can no longer be paid.
billy_create_couponCreate a discount coupon (percentage or fixed amount).
billy_delete_couponDelete 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.

RoleReadRefundsManage SubsInvoicesCustomersCoupons
OwnerAllUnlimitedFullFullFullFull
Billing ManagerAllUp to $5,000FullFullFullFull
Billing ClerkAllUp to $100View onlyView onlyUpdate onlyNo
Read OnlyAllNoNoNoNoNo

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.