datagate-mcp
datagate-mcp
MCP server and CLI for the DataGate billing platform API.
MCP server — read-only tools for Claude Desktop, Claude Code, and other MCP clients
CLI — full CRUD for managing customers, invoices, products, agreements, sites, and payments
Install
pip install datagate-mcpOr run the MCP server directly:
uvx datagate-mcpConfiguration
Set two environment variables:
Variable | Description |
| Bearer token from DataGate portal |
| Integration GUID from DataGate portal |
| (optional) Override base URL (default: |
MCP Setup
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"datagate": {
"command": "uvx",
"args": ["datagate-mcp"],
"env": {
"DATAGATE_API_KEY": "your-api-key",
"DATAGATE_CLIENT_ID": "your-client-id"
}
}
}
}Claude Code
Add to .mcp.json:
{
"mcpServers": {
"datagate": {
"command": "uvx",
"args": ["datagate-mcp"],
"env": {
"DATAGATE_API_KEY": "your-api-key",
"DATAGATE_CLIENT_ID": "your-client-id"
}
}
}
}CLI Usage
# List customers
datagate customers list
datagate customers list --page 2 --page-size 25
# Get a customer
datagate customers get <customer-id>
# Search invoices
datagate invoices search --invoice-date 2026-01-01
datagate invoices search --period-start 2025-12-01 --period-end 2025-12-31
# Invoice line items
datagate invoices details <invoice-id>
# List products (optionally by customer)
datagate products list --customer-id <id>
# JSON output
datagate --json customers listWrite Operations
All write commands require --confirm:
datagate customers create --name "Acme Corp" --code "50099"
datagate customers update <id> --data '{"companyName": "Acme Corp LLC"}'
datagate customers delete <id> --confirm
datagate products create --customer-id <id> --code "Internet 1Gb"
datagate sites create --customer-id <id> --name "123 Main St"
# Payments are IRREVERSIBLE — void only via DataGate portal
datagate payments create --customer-id <id> --amount 100.00 --confirmMCP Tools
Tool | Description |
| List customers with pagination |
| Get single customer by ID |
| Search invoices by date/period |
| Invoice with line-item transactions |
| Products with pricing, filterable by customer |
| Single product with charges |
| Billing agreements, filterable by customer |
| Single agreement |
| Physical locations, filterable by customer |
| Portal login accounts |
| Service items |
| Rate cards |
| Kit templates |
Rate Limits
60 calls/minute
5,000 calls/day
The client automatically paces requests to stay within limits.
License
MIT