MCP server and CLI for the DataGate billing platform API
Project description
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-mcp
Or run the MCP server directly:
uvx datagate-mcp
Configuration
Set two environment variables:
| Variable | Description |
|---|---|
DATAGATE_API_KEY |
Bearer token from DataGate portal |
DATAGATE_CLIENT_ID |
Integration GUID from DataGate portal |
DATAGATE_BASE_URL |
(optional) Override base URL (default: https://api.dgportal.net) |
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 list
Write 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 --confirm
MCP Tools
| Tool | Description |
|---|---|
list_customers |
List customers with pagination |
get_customer |
Get single customer by ID |
search_invoices |
Search invoices by date/period |
get_invoice_details |
Invoice with line-item transactions |
list_products |
Products with pricing, filterable by customer |
get_product |
Single product with charges |
list_agreements |
Billing agreements, filterable by customer |
get_agreement |
Single agreement |
list_sites |
Physical locations, filterable by customer |
list_customer_users |
Portal login accounts |
list_service_items |
Service items |
list_rate_cards |
Rate cards |
list_kit_templates |
Kit templates |
Rate Limits
- 60 calls/minute
- 5,000 calls/day
- The client automatically paces requests to stay within limits.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
datagate_mcp-0.1.1.tar.gz
(8.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datagate_mcp-0.1.1.tar.gz.
File metadata
- Download URL: datagate_mcp-0.1.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57dd9809d03e49a99dd9d6cb7ea731aa9575d33169c55bf989f0b72544b7fa7a
|
|
| MD5 |
e56d1bbf48990b3847f3882d94885691
|
|
| BLAKE2b-256 |
b539b2c0f64e2f4ca29b73465b8d37619d7b4512f6a79bf48dc733020e8f070e
|
File details
Details for the file datagate_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: datagate_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8454bae12a74b99f22b1c6c2310ae520349eb3cd4d9e453bbc7314681a55f2c
|
|
| MD5 |
0192dbdbb5b1cfeda6db69c1c282e896
|
|
| BLAKE2b-256 |
71bf98154ed0c50cd5ffb63027aaf25a4fdd81cda4dd4d0328f5acabef97805e
|