Ternary MCP for Claude
This guide connects claude.ai to your Ternary data. When you finish, you can ask Claude questions like "what were our top 10 GCP services by spend last month?" and it answers from your live billing data.
Requirements
- A Ternary account (the email you use to sign in to Ternary).
- A Claude plan that includes custom connectors (paid plans; on Team and Enterprise an admin may need to enable custom connectors or add the connector for the organization).
Add the connector
-
In claude.ai, open Customize in the left sidebar, then pick Connectors — or go directly to claude.ai/customize/connectors.
-
Click Add (top right of the Connectors panel) → Add custom connector.
-
Fill in the dialog:
- Name:
Ternary(any name works — this is just the label you'll see in Claude). - Remote MCP server URL: your region's server URL:
- US:
https://core-api.ternary.app/mcp - EU:
https://core-api.eu.ternary.app/mcp
- US:
- Leave Advanced settings (OAuth client ID / secret) empty. Claude discovers the OAuth configuration automatically.
- Name:
-
Click Add.
-
Claude opens a Ternary sign-in window. Log in with your Ternary credentials and approve the access request.
The connector now shows Connected, and its detail page lists all 8 Ternary tools — Claude marks the whole set read-only.
Use it in a chat
-
Start a new chat.
-
Click the + button below the message box, open Connectors, and check that the Ternary toggle is on.
-
Ask a cost question, for example: "Using the Ternary connector, which tenants can I access? Then show my top 5 services by spend for last month." Claude lists your tenants, picks (or asks you to pick) one, discovers the right fields, and runs the query on its own.
-
The first time Claude uses a Ternary tool, it asks for permission — choose Always allow to let future cost questions run without interruptions (all Ternary tools are read-only).
Good first prompts:
- "Which Ternary tenants can I access?"
- "Show my total cloud spend for last month, grouped by service."
- "List my saved reports and summarize the one named Monthly Executive Summary."
Claude Code (command line)
Claude Code is Anthropic's coding agent for the terminal. It uses the same Ternary server as claude.ai, configured from the command line.
claude mcp add --transport http ternary https://core-api.ternary.app/mcpUse your region's URL: https://core-api.ternary.app/mcp for US, https://core-api.eu.ternary.app/mcp for EU.
Then start Claude Code and run /mcp. Pick ternary and choose to authenticate. Claude Code opens a Ternary sign-in page in your browser; log in and approve the access request. /mcp then shows ternary as connected, and the session is remembered.
Add -s user to the command above to make the server available in every project instead of only the current one.
Troubleshooting
"Couldn't reach Ternary" when adding the connectorRetry once — the first attempt can time out while the service warms up. If it keeps failing, verify you used the exact URL including the
/mcppath, and the right region.
- Sign-in fails or loops — your email must belong to an existing Ternary user in that region. US and EU are separate: a US account cannot authenticate against the EU URL, and vice versa.
- "No tenants found" — your Ternary user has no explicit role on any tenant. Ask your Ternary admin to grant you a role on the tenants you need.
- Claude doesn't use the connector — check that it's enabled for the current chat under the + menu, and phrase the question so it clearly needs Ternary data.
Updated about 17 hours ago
