Give agents real-time pricing and current docs
Use the Narev MCP server to let AI agents access live LLM pricing data and search this documentation while they work. Instead of relying on web search or stale model knowledge, your agent can check real-time prices across providers and query current Narev docs through Model Context Protocol (MCP).https://mcp.narev.ai. No API key required.Real-time LLM pricing
Search current docs
Reduce hallucinations
Available MCP functions
The Narev MCP server exposes six tools across two categories.Pricing tools
| Tool | What it does | Use it for |
|---|---|---|
list_providers | Returns all supported AI providers. | Discovering which providers Narev tracks. |
list_models | Returns available models, optionally filtered by provider. | Browsing models before checking prices. |
get_prices | Returns current pricing for models with optional filtering and sorting. | Comparing prices across models or providers. |
calculate_cost | Calculates inference cost given token counts (prompt, completion, cache, reasoning). | Estimating spend before running a workload. |
Docs tools
| Tool | What it does | Use it for |
|---|---|---|
search_narev_docs | Searches indexed Narev Docs pages and returns relevant snippets, titles, and links. | Finding the right guide or API page from a natural-language question. |
query_docs_filesystem_narev_docs | Reads and navigates the docs as a virtual filesystem with shell-style commands. | Fetching full page content, browsing docs structure, or reading specific sections. |
Before you start
You need:- An MCP-compatible client, such as Cursor, Claude Code, Claude Desktop, or VS Code.
- Network access to
https://mcp.narev.ai. - No API key - the server is public.
Connect your agent
Add the Narev MCP server
- Cursor
- Claude Code
- Claude Desktop
- VS Code
- Manual JSON-RPC
Verify the tools are available
Check current GPT-4o pricing.
Search docs for Polar billing integration.
Use pricing data and docs during implementation
Look up Claude Sonnet 4.6 input and output token prices.
Compare GPT-4o and Claude Opus 4 at 1M input tokens.
Calculate cost for a specific gpt-4o call.
Find the Next.js billing integration pattern in Narev Docs.
Look up custom quality metrics API details.
Read Narev SDK price resolver docs.
What agents can do with MCP
After connection, agents can look up live pricing data and retrieve documentation for common Narev workflows:- LLM pricing: Current prices for any model across all supported providers, with filtering and sorting.
- Cost calculation: Exact inference cost given prompt tokens, completion tokens, cache tokens, and reasoning tokens.
- Narev Cloud billing: Framework adapters, billing platforms, Customer Tagging, and usage-based billing concepts.
- Narev SDK: Provider middleware, destinations, price resolvers, and package reference pages.
- Benchmarking: Benchmark creation, variants, data sources, integrations, and result analysis.
- API usage: Pricing lookup, model cost calculation, chat completions, and custom quality metrics.
- Narev Self-Hosted: Infrastructure cost mapping and FOCUS format docs when the search index includes those pages.
Troubleshooting
The MCP server returns Method not allowed
The MCP server returns Method not allowed
https://mcp.narev.ai through an MCP client, not a browser GET request. The endpoint expects MCP JSON-RPC calls over HTTP.The client cannot connect
The client cannot connect
https://mcp.narev.ai. Then restart your MCP client or reload MCP servers from the client settings.Search results miss a page
Search results miss a page
docs.json navigation includes by default. Confirm the page is public and appears in the docs navigation.The agent gives a generic answer
The agent gives a generic answer
A model is missing from pricing results
A model is missing from pricing results
list_models to see all tracked models. If a model is not listed, it may not yet be indexed by Narev. Check the Narev Cloud API reference for the current provider and model coverage.