Agent Billy MCP Server
Provides secure, role-based access to Stripe billing data, allowing AI assistants to manage customers, charges, subscriptions, invoices, and refunds, including the ability to issue refunds and create coupons.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Agent Billy MCP Servershow me the revenue stats and active subscriptions for this month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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-keyOr use environment variables:
export BILLY_API_URL=https://yourorg.agentbilly.ai
export BILLY_API_KEY=billy_your-api-key
npx agent-billyRelated MCP server: Stripe MCP
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.jsonWindows:
%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-billyCursor
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:
Log in at
https://yourorg.agentbilly.aiGo to Settings > API Keys
Click Generate Key and choose a role
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 |
| List recent charges. Filter by status (succeeded, failed, pending). |
| Get details for a specific charge by Stripe charge ID. |
| List customers with pagination. |
| Get details for a specific customer by Stripe customer ID. |
| List subscriptions. Filter by status (active, past_due, canceled, trialing). |
| List invoices. Filter by status (draft, open, paid, void, uncollectible). |
| List all refunds that have been issued. |
| Dashboard snapshot: MTD revenue, success rate, active subs, failed charges. |
| Search across customers, charges, subscriptions, and invoices by keyword. |
Write Tools
Tool | Description |
| Issue a full or partial refund for a charge. |
| Create a new Stripe customer. |
| Update a customer's email, name, description, or metadata. |
| Cancel a subscription (at period end or immediately). |
| Reactivate a canceled subscription that hasn't fully expired. |
| Send an invoice to the customer via email. |
| Void an invoice so it can no longer be paid. |
| Create a discount coupon (percentage or fixed amount). |
| 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 helpLinks
Website: agentbilly.ai
Docs: agentbilly.ai/docs
Support: hello@agentbilly.ai
This server cannot be deployed
Maintenance
Related MCP Connectors
Stripe payments for AI agents. Create links, verify, manage customers.
Billing proxy for MCP servers. Adds Stripe and x402 crypto payments without writing billing code.
Connect Claude or Cursor to books, invoices, bills, payroll, and sealed closes.
Read-only bank access for your AI agent. Connects Claude, ChatGPT, Cursor, Gemini, Codex.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables natural language interaction with Stripe accounts to query customers, revenue, invoices, subscriptions, disputes, and issue refunds.36 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables integration with Stripe APIs through function calling, supporting operations on customers, products, invoices, subscriptions, and more.13,246 npmMIT
- AlicenseAqualityDmaintenanceA local MCP server for Stripe payment operations with 52 tools across 8 domains, featuring built-in PII redaction and strict input validation for safe AI-assisted development workflows.5216 npm1MIT
- AlicenseNot gradedqualityCmaintenanceProduction-grade MCP server for Stripe financial operations, enabling AI assistants to manage payments, customers, subscriptions, invoices, products, prices, refunds, and balance checks.MIT