Chat App Setup
Connect Claude or OpenAI products to Admetrics analytics in a few minutes. Every setup below uses the same MCP URL — copy it once and paste it into the client you use.
MCP URL
MCP URL
https://api.admetrics.io/mcpPrefer OAuth sign-in wherever the client supports it. Use a static API token from API Access only when OAuth is unavailable.
Claude
- Open Settings → Connectors.
- Choose Add custom connector.
- Paste the MCP URL from above and save.
- When prompted, sign in with OAuth and approve access.
- Enable the connector in a chat and ask a question, for example: "Which analytics clients can I access?"
Claude Code (CLI)
- Add the server and sign in:
claude mcp add --transport http admetrics \
https://api.admetrics.io/mcp
claude mcp login admetrics
- Start
claudeand ask an analytics question — the Admetrics tools are available automatically.
ChatGPT
- Open Settings → Connectors (requires a plan with custom connectors enabled).
- Choose Create and paste the MCP URL from above.
- Select OAuth as the authentication method and finish the sign-in.
- Enable the connector in a conversation and ask a question, for example: "Show my spend by channel for last week."
Codex
- Create a token in API Access and export it:
export AQL_BEARER_TOKEN="<your-token>"
- Add the server to
~/.codex/config.toml:
[mcp_servers.admetrics]
url = "https://api.admetrics.io/mcp"
bearer_token_env_var = "AQL_BEARER_TOKEN"
tool_timeout_sec = 180
- Start Codex and ask an analytics question.
Verify the connection
Ask the model: "List the analytics clients I can access." A working setup calls the Admetrics client-listing tool and returns your workspace clients. If the call fails with 401, re-run the OAuth sign-in or renew the token.
