{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_p3r2xn4k789h","handle":"datagate-mcp","url":"https://wellknown.network/agents/datagate-mcp","links":{"self":"https://wellknown.network/agents/datagate-mcp/record.json","html":"https://wellknown.network/agents/datagate-mcp","markdown":"https://wellknown.network/agents/datagate-mcp/record.md","api":"https://wellknown.network/api/v1/agents/datagate-mcp","status":"https://wellknown.network/api/v1/agents/datagate-mcp/status","claim":"https://wellknown.network/agents/datagate-mcp/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/datagate-mcp/claim.json","badge":"https://wellknown.network/agents/datagate-mcp/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/datagate-mcp/history","tools":"https://wellknown.network/api/v1/agents/datagate-mcp/tools"},"ard":{"identifier":"urn:air::server:datagate-mcp","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"datagate-mcp","summary":"MCP server and CLI for the DataGate billing platform API","description":"# datagate-mcp\n\nMCP server and CLI for the [DataGate](https://dgportal.net) billing platform API.\n\n- **MCP server** — read-only tools for Claude Desktop, Claude Code, and other MCP clients\n- **CLI** — full CRUD for managing customers, invoices, products, agreements, sites, and payments\n\n## Install\n\n```bash\npip install datagate-mcp\n```\n\nOr run the MCP server directly:\n\n```bash\nuvx datagate-mcp\n```\n\n## Configuration\n\nSet two environment variables:\n\n| Variable | Description |\n|----------|-------------|\n| `DATAGATE_API_KEY` | Bearer token from DataGate portal |\n| `DATAGATE_CLIENT_ID` | Integration GUID from DataGate portal |\n| `DATAGATE_BASE_URL` | *(optional)* Override base URL (default: `https://api.dgportal.net`) |\n\n## MCP Setup\n\n### Claude Desktop\n\nAdd to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"datagate\": {\n      \"command\": \"uvx\",\n      \"args\": [\"datagate-mcp\"],\n      \"env\": {\n        \"DATAGATE_API_KEY\": \"your-api-key\",\n        \"DATAGATE_CLIENT_ID\": \"your-client-id\"\n      }\n    }\n  }\n}\n```\n\n### Claude Code\n\nAdd to `.mcp.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"datagate\": {\n      \"command\": \"uvx\",\n      \"args\": [\"datagate-mcp\"],\n      \"env\": {\n        \"DATAGATE_API_KEY\": \"your-api-key\",\n        \"DATAGATE_CLIENT_ID\": \"your-client-id\"\n      }\n    }\n  }\n}\n```\n\n## CLI Usage\n\n```bash\n# List customers\ndatagate customers list\ndatagate customers list --page 2 --page-size 25\n\n# Get a customer\ndatagate customers get <customer-id>\n\n# Search invoices\ndatagate invoices search --invoice-date 2026-01-01\ndatagate invoices search --period-start 2025-12-01 --period-end 2025-12-31\n\n# Invoice line items\ndatagate invoices details <invoice-id>\n\n# List products (optionally by customer)\ndatagate products list --customer-id <id>\n\n# JSON output\ndatagate --json customers list\n```\n\n### Write Operations\n\nAll write commands require `--confirm`:\n\n```bash\ndatagate customers create --name \"Acme Corp\" --code \"50099\"\ndatagate customers update <id> --data '{\"companyName\": \"Acme…","publisher":{"name":"Mike Hyams","url":null},"homepage":null,"repository":"https://github.com/hyamie/datagate-mcp","version":"0.1.1","license":null,"protocols":["mcp"],"tags":["billing","cli","datagate","mcp"],"pricing":null,"endpoints":[{"url":"pypi:datagate-mcp","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","repoUrl":"pypi","summary":"pypi","version":"pypi","description":"pypi","publisherName":"pypi"}},"derived":{"capabilities":[{"slug":"documents.invoice-processing","name":"Invoice Processing","confidence":0.814,"provenance":"derived"},{"slug":"commerce.payments","name":"Payments","confidence":0.814,"provenance":"derived"}],"categories":["commerce","documents"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"datagate-mcp","registry":"pypi","observedAt":"2026-11-09T03:24:19.934Z","publishedAt":"2026-03-18T21:08:50.394545Z","latestVersion":"0.1.1"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"datagate-mcp","url":"https://pypi.org/project/datagate-mcp/","firstSeenAt":"2026-09-09T13:21:30.038Z","fetchedAt":"2026-11-09T03:22:45.164Z","normalizedAt":"2026-11-09T03:22:45.164Z"}]},"firstSeenAt":"2026-09-09T13:21:30.038Z","updatedAt":"2026-11-09T03:24:19.934Z"}