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

whichmodel-mcp

v1.1.1

Published

MCP server that provides cost-optimised model recommendations for autonomous agents

Readme

whichmodel-mcp

A model routing advisor for autonomous agents — get cost-optimised LLM recommendations via MCP.

whichmodel.dev tracks pricing and capabilities across 100+ LLM models, updated every 4 hours. This MCP server exposes that data so AI agents can pick the right model at the best price for every task.

MCP Endpoint

https://whichmodel.dev/mcp

Transport: Streamable HTTP (MCP spec 2025-03-26)

Quick Start

Add to your MCP client config:

{
  "mcpServers": {
    "whichmodel": {
      "url": "https://whichmodel.dev/mcp"
    }
  }
}

No API key required. No installation needed.

Stdio (local clients)

For MCP clients that use stdio transport (Claude Desktop, Cursor, etc.):

{
  "mcpServers": {
    "whichmodel": {
      "command": "npx",
      "args": ["-y", "whichmodel-mcp"]
    }
  }
}

This runs a thin local proxy that forwards requests to the remote server.

Tools

recommend_model

Get a cost-optimised model recommendation for a specific task type, complexity, and budget.

| Parameter | Type | Description | |-----------|------|-------------| | task_type | enum (required) | chat, code_generation, code_review, summarisation, translation, data_extraction, tool_calling, creative_writing, research, classification, embedding, vision, reasoning | | complexity | low | medium | high | Task complexity (default: medium) | | estimated_input_tokens | number | Expected input size in tokens | | estimated_output_tokens | number | Expected output size in tokens | | budget_per_call | number | Maximum spend in USD per call | | requirements | object | Capability requirements: tool_calling, json_output, streaming, context_window_min, providers_include, providers_exclude |

Returns: recommended model, alternative, budget option, cost estimate, and reasoning.


compare_models

Head-to-head comparison of 2–5 models with optional volume cost projections.

| Parameter | Type | Description | |-----------|------|-------------| | models | string[] (required) | Model IDs, e.g. [anthropic/claude-sonnet-4, openai/gpt-4.1] | | task_type | enum | Context for comparison | | volume | object | calls_per_day, avg_input_tokens, avg_output_tokens for daily/monthly cost projections |

Returns: pricing, capabilities, quality tiers, and projected costs per model.


get_pricing

Raw pricing data lookup with filters by model, provider, price ceiling, and capabilities.

| Parameter | Type | Description | |-----------|------|-------------| | model_id | string | Specific model ID | | provider | string | Filter by provider, e.g. anthropic | | max_input_price | number | Max input price per million tokens (USD) | | capabilities | string[] | Required capabilities: tool_calling, json_output, streaming, vision | | min_context_window | number | Minimum context window in tokens | | limit | number | Max results (1–100, default 20) |


check_price_changes

See what model pricing has changed since a given date.

| Parameter | Type | Description | |-----------|------|-------------| | since | string (required) | ISO date, e.g. 2026-04-01 | | model_id | string | Filter to a specific model | | provider | string | Filter to a specific provider |

Returns: price increases, decreases, new models, and deprecations.

Data Freshness

Pricing data is refreshed every 4 hours from OpenRouter. Each response includes a data_freshness timestamp so you know how current the data is.

Links