BillingServ MCP
OfficialAllows GitHub Copilot to connect to a BillingServ account, enabling AI-assisted billing operations like looking up customers, invoices, and creating orders or tickets.
Allows OpenAI assistants (like ChatGPT/Codex) to connect to a BillingServ account for querying billing data and performing actions such as creating invoices or support tickets.
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
Related MCP server: datagate-mcp
Configuration
Every client setup below uses the same three environment variables:
Variable | Required | Description |
| Yes | Your BillingServ API v2 base URL, e.g. |
| Yes | Your BillingServ API key |
| No | Request timeout in milliseconds (default |
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-serverRestart 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:
npxArguments:
-y @billingserv/mcp-serverEnvironment: 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 |
|
Invoices |
|
Orders |
|
Packages |
|
Reports |
|
Support tickets |
|
Marketing |
|
Usage metering |
|
Settings |
|
VPN |
|
Geography |
|
Modules |
|
And these write endpoints, available through billingserv_create:
Area | Endpoints |
Support tickets |
|
Orders |
|
Customers |
|
Invoices |
|
Packages |
|
Marketing |
|
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 startOr put the variables in a local .env file (gitignored) and run npm run start:dev.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/BillingServ/MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server