ai-price-index-mcp
This server provides a read-only interface to the AI Price Index, letting you query current and historical AI model API prices locally — no API keys required.
Look up current prices (
current_price): Get today's input/output price per million tokens for any supported model (e.g.,gpt-4o,claude-opus-4-5,gemini-2.5-pro), along with the source URL.Look up prices on a specific date (
price_on): Retrieve the exact price in effect on any past date (YYYY-MM-DD) — useful for auditing costs or tracking price changes over time.Compare multiple models side-by-side (
compare): Get input/output prices for several models at once, for today or a specific historical date.Calculate cost from token usage (
cost_from_usage): Compute the USD cost from a token rollup (input, output, cache reads/writes) for a given model at a point in time, with built-in cache multipliers.Discover available models (
list_models): List all known model IDs and aliases, optionally filtered by provider (e.g.,anthropic,openai,google).
All results include cite-ready provenance: source_url, last_validated, confidence, and a CC BY 4.0 attribution string. Short/aliased model IDs are supported and resolve to canonical names.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ai-price-index-mcpWhat was the price of gpt-4 on January 1, 2024?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ai-price-index-mcp
AI model prices for when quality matters - first-party-sourced, dated, point-in-time, and human-verified.
A read-only, zero-key Model Context Protocol server that lets a coding agent (Claude Code, Cursor, and any other MCP client) query the open AI Price Index: dated, first-party-sourced AI model API prices.
Most pricing tools tell an agent what a model costs today. This one also answers what a model cost on a given date, and returns the first-party source URL plus the date that price was last validated, so the agent can cite the number. That point-in-time lookup is the differentiator.
Zero keys, zero prompts, zero network at runtime. The dated dataset is bundled inline inside the
ai-price-indexdependency. The server reads it locally and adds nothing to your traffic.Read-only. It only looks prices up. It cannot write, configure, or call out.
Cite-ready. Every result carries
source_url,last_validated,confidence, and the CC BY 4.0 attribution string.
Install
Requires Node.js 18 or newer. No build step, no API key.
npx -y ai-price-index-mcpThat command runs the stdio server; an MCP client launches it for you using the config below.
Related MCP server: azure-pricing-mcp
Client configuration
Drop this into your MCP client config. The server speaks stdio.
Claude Code (~/.claude.json or a project .mcp.json), and Cursor (~/.cursor/mcp.json), use the
same mcpServers shape:
{
"mcpServers": {
"ai-price-index": {
"command": "npx",
"args": ["-y", "ai-price-index-mcp"]
}
}
}Or, with Claude Code's CLI:
claude mcp add ai-price-index -- npx -y ai-price-index-mcpTools
All tools return structured JSON as text content. Prices are usd_per_mtok (USD per million tokens).
Model ids resolve through the dataset's aliases, so short ids work (e.g. claude-opus-4-5 resolves to
claude-opus-4-5-20251101).
Tool | Arguments | Returns |
|
| Today's input/output price for a model, with its source. |
|
| The price in effect on that date (the point-in-time lookup). |
|
| Side-by-side input/output prices for several models on one date. |
|
| USD value of a token rollup at a point in time, with cache multipliers. |
|
| Known model ids (optionally one provider), each with its aliases. |
tokens for cost_from_usage accepts input, output, cache_read, cache_write_5m,
cache_write_1h (all optional, missing counts as 0). Cache read is 0.1x input, cache write is 1.25x
(5 minute) or 2x (1 hour).
Pass provider (for example openai, anthropic, google) to disambiguate a bare id that exists
under more than one vendor.
Example result
price_on with { "model": "gpt-4", "date": "2024-01-01" }:
{
"query": "gpt-4",
"provider": "openai",
"model": "gpt-4",
"date": "2024-01-01",
"covered": true,
"input": {
"usd_per_mtok": 30,
"unit": "usd_per_mtok",
"effective_from": "2023-03-14",
"effective_to": null,
"last_validated": "2023-04-15",
"confidence": "archived",
"source_url": "https://web.archive.org/web/20230415223802/https://openai.com/pricing"
},
"output": { "usd_per_mtok": 60, "...": "..." },
"provenance": {
"dataset": "AI Price Index by RoninForge",
"data_version": "2026-06-17",
"license": "CC-BY-4.0",
"attribution": "AI Price Index by RoninForge (https://roninforge.org/data/ai-price-index/), CC BY 4.0",
"source": "https://roninforge.org/data/ai-price-index/"
}
}How it works
This server is a thin wrapper over the ai-price-index
npm library, which ships the dated dataset bundled inline. There is no pricing logic, no separate data
layer, and no network call here. The data version a result reports is the dataset release that the
installed ai-price-index pins to. To move to newer prices, update that dependency.
Data license and attribution
The price data is from the AI Price Index and is licensed CC BY 4.0. When you publish anything derived from it, attribute it:
AI Price Index by RoninForge (https://roninforge.org/data/ai-price-index/), CC BY 4.0.
The code of this server is licensed MIT (see LICENSE). Data and tooling licenses are tracked upstream in the ai-price-index repository.
Links
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides AI assistants with real-time access to Azure retail pricing information, enabling price searches, regional cost comparisons, monthly bill estimates, and SKU discovery through natural language queries.Last updated1354MIT
- AlicenseAqualityAmaintenanceEnables LLMs to query Azure service pricing via the public Azure Retail Prices API, with tools for searching prices, estimating costs, comparing regions, and listing services.Last updated5MIT
- Alicense-qualityAmaintenanceEnables AI agents to parse multi-cloud infrastructure-as-code files, query real-time pricing from AWS, Azure, and GCP, and generate cost estimates and comparison reports.Last updated39MIT
- Alicense-qualityCmaintenanceProvides live LLM pricing data from OpenRouter, enabling agents to search models, get pricing, estimate costs, and compare models.Last updated47MIT
Related MCP Connectors
Verified cloud cost forecasting for AI agents. AWS, GCP, Azure pricing matrix.
Verified cloud cost forecasting for AI agents. AWS, GCP, Azure pricing matrix.
Live & historical FX rates and currency conversion for AI agents. No API keys.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/RoninForge/ai-price-index-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server