It’s a remote server — nothing to install. Authentication uses the same
clientId + apiKey as the REST API, sent as the X-Client-ID and X-Api-Key headers, and the tools automatically return only the data that belongs to you (your tenant scope is enforced server-side).Prerequisites
- A credential pair (
clientId+apiKey) provided by the PagAmerican team, with theanalytics.readscope — see Authentication - An MCP-compatible client (Claude Desktop, Cursor, Claude Code, …)
Configuration
The server lives athttps://external-api-service.pagamerican.app/mcp (Streamable HTTP transport).
- Claude Desktop
- Cursor
- Claude Code (CLI)
Edit Restart Claude Desktop. The
claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):purchases_list and orders_list tools appear in the tool picker.Older Claude Desktop versions don’t support remote servers directly. In that case, bridge it with
mcp-remote: set "command": "npx" with "args": ["-y", "mcp-remote", "https://external-api-service.pagamerican.app/mcp", "--header", "X-Client-ID:YOUR_CLIENT_ID", "--header", "X-Api-Key:YOUR_API_KEY"].Available tools
Both tools take
from and to (YYYY-MM-DD; to is exclusive, max 90 days from from) and an optional limit (1–5000, default 1000).
orders_list is available for creator credentials only — with affiliate keys the tool isn’t listed. Affiliates get the same data through purchases_list.Example prompts
Once connected, try:- “List my sales between April 1 and May 1, 2026.”
- “How much revenue did I make last week? Use the purchases tool.”
- “Show my top 10 most recent purchases and their payment methods.”
- “Which orders were completed in July? Use the orders tool.”
Troubleshooting
401 — Missing or invalid credentials
401 — Missing or invalid credentials
Make sure both
X-Client-ID and X-Api-Key headers are set with your exact clientId and apiKey. If the key was revoked or regenerated, update your config and restart the client.403 — Insufficient scope
403 — Insufficient scope
Your credentials must have the
analytics.read scope. Contact the PagAmerican team if your key is missing it.The tool doesn't show up
The tool doesn't show up
Fully restart the AI client after editing the config (a reload isn’t always enough). Confirm the JSON is valid and the
url has no typos. On older Claude Desktop, use the mcp-remote bridge shown above.Date range error
Date range error
to is exclusive and the window can’t exceed 90 days. To get April, ask for from=2026-04-01 to to=2026-05-01.Authentication
How to obtain your
clientId and apiKey.API Reference
The same data over plain REST, with a “Try it” playground.