BillingServ MCP
This is an MCP server for the BillingServ API. Once it's set up, your AI assistant can look up customers, invoices, orders, packages, and reports straight from your BillingServ installation
README
BillingServ MCP Server
Connect AI assistants like Claude, ChatGPT (Codex), Cursor, and Gemini to your BillingServ account.
This is an MCP server for the BillingServ API. Once it's set up, your AI assistant can look up customers, invoices, orders, packages, and reports straight from your BillingServ installation. Ask things like:
- "Which customers have unpaid invoices this month?"
- "Show me the revenue trend for this year."
- "What packages does customer 123 have, and what could they upgrade to?"
And your assistant answers from live billing data instead of guessing.
You can also ask it to do things: raise a support ticket, create an order, draft an invoice, or add a note to a customer.
Safe by design. The server only calls a fixed allowlist of BillingServ endpoints, checked on every request. Reads and writes are separate tools, so you can let your AI look things up freely while requiring approval for anything that creates or changes records. Deleting records and capturing payments are deliberately not available.
Requirements
- Node.js 20 or newer (
npxcomes with it) - A BillingServ API key
Configuration
Every client setup below uses the same three environment variables:
| Variable | Required | Description |
|---|---|---|
BILLINGSERV_API_BASE_URL |
Yes | Your BillingServ API v2 base URL, e.g. https://billing.example.com/api/v2 |
BILLINGSERV_API_KEY |
Yes | Your BillingServ API key |
BILLINGSERV_TIMEOUT_MS |
No | Request timeout in milliseconds (default 15000) |
Setup
Find your client below, drop in your URL and API key, and you're done.
Claude Code
One command:
claude mcp add billingserv \
--env BILLINGSERV_API_BASE_URL="https://billing.example.com/api/v2" \
--env BILLINGSERV_API_KEY="your_api_key" \
-- npx -y @billingserv/mcp-server
Restart Claude Code and try asking it to list your BillingServ endpoints.
Claude Desktop
Open Settings → Developer → Edit Config and add this to claude_desktop_config.json:
{
"mcpServers": {
"billingserv": {
"command": "npx",
"args": ["-y", "@billingserv/mcp-server"],
"env": {
"BILLINGSERV_API_BASE_URL": "https://billing.example.com/api/v2",
"BILLINGSERV_API_KEY": "your_api_key"
}
}
}
}
Restart Claude Desktop and look for the billingserv tools under the tools icon.
OpenAI Codex CLI
Add this to ~/.codex/config.toml:
[mcp_servers.billingserv]
command = "npx"
args = ["-y", "@billingserv/mcp-server"]
[mcp_servers.billingserv.env]
BILLINGSERV_API_BASE_URL = "https://billing.example.com/api/v2"
BILLINGSERV_API_KEY = "your_api_key"
Cursor
Add this to ~/.cursor/mcp.json (global) or .cursor/mcp.json in your project:
{
"mcpServers": {
"billingserv": {
"command": "npx",
"args": ["-y", "@billingserv/mcp-server"],
"env": {
"BILLINGSERV_API_BASE_URL": "https://billing.example.com/api/v2",
"BILLINGSERV_API_KEY": "your_api_key"
}
}
}
}
VS Code (GitHub Copilot)
Add this to .vscode/mcp.json in your workspace:
{
"servers": {
"billingserv": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@billingserv/mcp-server"],
"env": {
"BILLINGSERV_API_BASE_URL": "https://billing.example.com/api/v2",
"BILLINGSERV_API_KEY": "your_api_key"
}
}
}
}
Gemini CLI
Add this to ~/.gemini/settings.json:
{
"mcpServers": {
"billingserv": {
"command": "npx",
"args": ["-y", "@billingserv/mcp-server"],
"env": {
"BILLINGSERV_API_BASE_URL": "https://billing.example.com/api/v2",
"BILLINGSERV_API_KEY": "your_api_key"
}
}
}
}
Other MCP clients
Any MCP client that supports stdio servers will work. Point it at:
- Command:
npx - Arguments:
-y @billingserv/mcp-server - Environment: the variables from Configuration
Tools
The server gives your assistant three tools:
billingserv_list_endpoints
Lists every BillingServ endpoint the server can call, along with descriptions, required parameters, and valid values. Assistants usually call this first to see what data is available.
billingserv_get
Calls one allowlisted BillingServ API v2 GET endpoint.
{
"endpoint": "customer/get",
"query": { "id": 123 }
}
Endpoints with placeholders in the path take a path object instead:
{
"endpoint": "meter/{customer_id}/get/{order_id}",
"path": { "customer_id": 123, "order_id": 456 }
}
billingserv_create
Creates or updates records through an allowlisted set of POST endpoints. This is the tool to gate behind approval in your MCP client if you want a confirmation step before anything changes.
{
"endpoint": "ticket/create",
"body": {
"subject": "Question about my last invoice",
"user_id": 123,
"message": "Customer called about a duplicate charge.",
"support_department": "billing"
}
}
Available endpoints
| Area | Endpoints |
|---|---|
| Customers | customer/lists, customer/get, customer/get-credit |
| Invoices | invoice/lists, invoice/get-payment-method, invoice/get-transactions |
| Orders | order/get-orders, order/get-orders-by-status, order/available-package-changes, order/preview-package-change, order/check-fraud |
| Packages | package/lists, package/get, package/show, package/get-by-customer, package/group/lists, package/group/get, package/option/lists, package/option/get |
| Reports | report/annual-sales, report/revenue-trend, report/sales-by-staff, report/sales-by-customer, report/package-leaderboard, report/customer-receipt, report/customer-credit, report/customer-invoice, report/customer-debt, report/login-history |
| Support tickets | ticket/lists, ticket/get |
| Marketing | marketing/lists, marketing/get-discount |
| Usage metering | meter/{customer_id}/get/{order_id} |
| Settings | setting/invoice, setting/lists-staff, setting/get-staff, setting/lists-tax-zone, setting/get-tax-zone, setting/lists-tax-class, setting/get-tax-class |
| VPN | vpn/branding/get, vpn/servers/list |
| Geography | country/lists, country/get, county/lists-by-country |
| Modules | module/get-module-configuration |
And these write endpoints, available through billingserv_create:
| Area | Endpoints |
|---|---|
| Support tickets | ticket/create, ticket/reply, ticket/update |
| Orders | order/add-order |
| Customers | customer/create, customer/add-note |
| Invoices | invoice/create-invoice, invoice/create-quote, invoice/send-invoice, invoice/send-invoice-reminder |
| Packages | package/create, package/update, package/group/create, package/group/update, package/option/create, package/option/update |
| Marketing | marketing/create-discount |
Security
- The endpoint allowlist is compiled into the server and checked on every request. Only allowlisted endpoints can be called.
- Sensitive routes like password reset are deliberately left out.
- Your API key is read from the environment and only ever sent to the base URL you configure. It's never logged or included in tool output.
Development
git clone https://github.com/billingserv/billingserv-mcp-server.git
cd billingserv-mcp-server
npm install
npm run build
BILLINGSERV_API_BASE_URL="https://billing.example.com/api/v2" \
BILLINGSERV_API_KEY="your_api_key" \
npm start
Or put the variables in a local .env file (gitignored) and run npm run start:dev.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。