🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@atriumn/tariff

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@atriumn/tariff

LLM Pricing Oracle — MCP server exposing real model pricing data from LiteLLM

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Tariff

LLM Pricing Oracle — an MCP server that pulls real pricing data from the LiteLLM community registry and exposes it as tools any MCP client can query.

No API keys. No accounts. No configuration files.

Install

Claude Code:

claude mcp add tariff -- npx -y @atriumn/tariff

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "tariff": {
      "command": "npx",
      "args": ["-y", "@atriumn/tariff"]
    }
  }
}

Tools

ToolDescription
get_model_detailsLook up pricing, context window, and capabilities for a model
calculate_estimateEstimate cost for a given token count
compare_modelsFilter and compare models by provider, context window, or mode
refresh_pricesForce re-fetch pricing data from the registry

Example

"How much does Claude Sonnet 4.5 cost per million tokens?"

Model: claude-sonnet-4-5
Provider: anthropic
Mode: chat

Pricing (per 1M tokens):
  Input:  $3.00
  Output: $15.00

Context Window:
  Max Input:  200K
  Max Output: 8K

Capabilities: vision, function_calling, parallel_function_calling

How it works

  • On first use, the server fetches pricing data from the LiteLLM community registry
  • Data is cached in-memory for 24 hours (with a disk fallback)
  • Your AI assistant calls tools via the MCP protocol
  • Results are returned as formatted text

No data leaves your machine — the only network request is fetching the public pricing registry.

Docs

Full documentation at tokencost.dev

License

MIT

Keywords

mcp

FAQs

Package last updated on 16 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts