Give your agent live LLM pricing as callable tools — look up what a model costs, compare models to find a cheaper one, estimate a job before running it, and check what is being retired.
https://agentcost.tech/api/mcp
Streamable HTTP. Public — no credentials, no sign-up. Protocol revisions 2026-07-28, 2025-06-18, 2025-03-26, so both the current stateless revision and the older handshake era work.
Add the remote server from the terminal.
claude mcp add --transport http agentcost https://agentcost.tech/api/mcp
Add an entry under mcpServers in the client's config file.
{
"mcpServers": {
"agentcost": {
"type": "http",
"url": "https://agentcost.tech/api/mcp"
}
}
}Point any MCP client at the endpoint over Streamable HTTP. No install step, no API key, no OAuth flow.
https://agentcost.tech/api/mcp
Search the public AgentCost catalogue of LLM models and their per-1,000-token rates. Filter by provider and/or a substring of the model name. Use this to compare model costs or find a cheaper alternative. Returns rates in USD; no credentials required.
Look up the per-1,000-token rates for a single named model. Resolves the name exactly, then case-insensitively, then by provider-prefixed suffix (so 'gpt-4o' finds 'azure/gpt-4o'). Use this when you already know which model you are pricing.
Work out the USD cost of one or more LLM calls before making them, from the current catalogue. Give a model and the token counts involved. Use `calls` to price a whole job rather than a single call. Cached input tokens bill at the provider's cached rate when one is published and at the full input rate when it is not; the result reports which happened.
List models with an upstream-announced retirement date, soonest first. Use this to check whether a model a user depends on is being retired, or to avoid recommending one that is.
* required
These tools read the public pricing catalogue only. They cannot see your own spend, projects or budgets — that needs an authenticated account and the REST API. Nothing here writes anything, so every tool is safe to call speculatively.
curl -sX POST https://agentcost.tech/api/mcp \
-H "Content-Type: application/json" \
-H "MCP-Protocol-Version: 2026-07-28" \
-H "Mcp-Method: tools/list" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'Related: REST API reference · Versioning & deprecation policy · OpenAPI spec