npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@llmrates/mcp

v0.1.1

Published

MCP server for LLM Rates — real-time LLM pricing data

Readme

@llmrates/mcp

MCP server that gives AI agents real-time LLM pricing data — current prices, price history, change alerts, and model recommendations.


Install

Run directly with npx (no install step required):

npx @llmrates/mcp

Configuration

Claude Code (~/.claude/mcp.json)

{
  "mcpServers": {
    "llmrates": {
      "command": "npx",
      "args": ["@llmrates/mcp"],
      "env": {
        "LLMRATES_API_KEY": "your-api-key-here"
      }
    }
  }
}

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "llmrates": {
      "command": "npx",
      "args": ["@llmrates/mcp"],
      "env": {
        "LLMRATES_API_KEY": "your-api-key-here"
      }
    }
  }
}

Tools

| Tool | Description | Required params | Tier | |------|-------------|-----------------|------| | get_cheapest_model | Find the cheapest model matching your task requirements. Returns a ranked list with pricing and trust metadata. | task | Developer | | compare_models | Compare up to 5 models side-by-side with current pricing and trust metadata. | models (array, 2–5 IDs) | Free | | get_price_history | Retrieve the full pricing history for a specific model with timestamped records and source attribution. | model_id | Developer | | get_recent_changes | Get recent LLM pricing changes across all providers, optionally filtered by provider or time range. | — | Free | | get_context_snapshot | Get a ~2k-token pricing snapshot optimised for agent system prompts. Supports json and markdown output. | — | Developer | | subscribe_to_changes | Register an HTTPS webhook URL to receive real-time notifications when prices change. | url | Pro |

Tool details

get_cheapest_model

{
  "task": "code generation",
  "min_context": 32000,
  "max_input_price": 5.0,
  "modality": "text"
}

compare_models

{
  "models": ["openai/gpt-4o", "anthropic/claude-3-5-sonnet", "google/gemini-1.5-pro"]
}

get_price_history

{
  "model_id": "openai/gpt-4o",
  "from": "2025-01-01T00:00:00Z",
  "to": "2025-06-01T00:00:00Z"
}

get_recent_changes

{
  "since": "2025-06-01T00:00:00Z",
  "provider": "anthropic"
}

get_context_snapshot

{
  "format": "markdown"
}

subscribe_to_changes

{
  "url": "https://your-service.com/webhooks/llmrates",
  "events": ["price_change", "model_added"]
}

Example output

get_recent_changes returns:

{
  "data": [
    {
      "model_id": "anthropic/claude-3-5-sonnet",
      "provider": "anthropic",
      "changed_at": "2025-09-14T08:22:11Z",
      "field": "input_price_per_1m_tokens",
      "old_value": 3.00,
      "new_value": 2.50,
      "change_pct": -16.67,
      "confidence": "high",
      "sources": ["openrouter", "anthropic_docs"],
      "confirmed_at": "2025-09-14T08:30:00Z"
    },
    {
      "model_id": "openai/gpt-4o-mini",
      "provider": "openai",
      "changed_at": "2025-09-10T14:05:33Z",
      "field": "output_price_per_1m_tokens",
      "old_value": 0.60,
      "new_value": 0.40,
      "change_pct": -33.33,
      "confidence": "high",
      "sources": ["openrouter", "litellm", "openai_docs"],
      "confirmed_at": "2025-09-10T14:15:00Z"
    }
  ],
  "meta": {
    "total": 2,
    "age_hours": 0.5
  }
}

Environment variables

| Variable | Required | Default | Description | |----------|----------|---------|-------------| | LLMRATES_API_KEY | Yes | — | Your LLM Rates API key. Get one at llmrates.com. | | LLMRATES_API_URL | No | https://api.llmrates.com | Override the API base URL (useful for self-hosted or staging deployments). |


Tiers

| Tier | Price | Rate limit | Tools available | |------|-------|------------|-----------------| | Free | $0/month | 100 req/day | compare_models, get_recent_changes | | Developer | $15/month | 10,000 req/day | All tools except subscribe_to_changes | | Pro | $50/month | Unlimited | All tools including webhooks + SLA |

Tools that require a higher tier return a descriptive error message — no silent failures.


Get your API key

https://llmrates.com