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

openrouter-task2model

v1.4.4

Published

MCP Server to find the best AI model for your task. Searches 300+ OpenRouter models by semantic match and constraints.

Readme

openrouter-task2model

MCP Server to find the best AI model for your task. Searches 300+ OpenRouter models.

Installation

Claude Code

claude mcp add openrouter-task2model -e OPENROUTER_API_KEY=sk-or-... -- npx -y openrouter-task2model

Manual Configuration

{
  "mcpServers": {
    "openrouter-task2model": {
      "command": "npx",
      "args": ["-y", "openrouter-task2model"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-..."
      }
    }
  }
}

Design Philosophy

The AI decides which model to use, not the embeddings.

Price limits, age filters, and semantic search narrow down 300+ models to ~100 candidates. From there, the AI uses its own knowledge to decide which models to benchmark. The ranking within those 100 is not a quality indicator - it just helps reduce the search space.

Think of it as: price + date + embeddings filter, AI selects.

Tools

task2model

Find models for a task. Returns top 100 model IDs.

{ "task": "Build a coding assistant with tool use" }

Output:

{
  "task": "Build a coding assistant with tool use",
  "models": ["anthropic/claude-sonnet-4", "openai/gpt-4o", "..."],
  "count": 100,
  "price_range": "$0.10-$50/1M",
  "note": "Ranked by description similarity. Does not predict actual task performance. Benchmark before production use."
}

Options

| Parameter | Default | Description | |-----------|---------|-------------| | hard_constraints.max_age_days | 365 | Filter models older than N days | | hard_constraints.max_price_per_1m | - | Max price per 1M tokens | | hard_constraints.required_parameters | - | e.g. ["tools", "structured_outputs"] | | hard_constraints.input_modalities | - | e.g. ["text", "image"] | | hard_constraints.providers | - | e.g. ["anthropic", "openai"] | | result.limit | 100 | Number of models to return | | result.detail | names_only | names_only, minimal, standard, full |

get_model_profile

Get detailed info for a specific model.

{ "model_id": "google/gemini-2.5-flash" }

sync_catalog

Refresh the model catalog cache.

{ "force": true }

Known Limitations

Semantic ranking does NOT predict performance.

The ranking is based on model descriptions (marketing text), not benchmarks. Example:

| Model | Semantic Rank | Actual Performance | |-------|---------------|-------------------| | GPT-5.1-Codex-Mini | #6 | Poor | | Gemini 2.5 Flash | #77 | Best |

However, both models are in the top 100 candidates. The AI can pick either one to test - ranking within the 100 is not a quality signal. The AI should use its own judgment to select from the pool.

Environment Variables

| Variable | Description | |----------|-------------| | OPENROUTER_API_KEY | Required for semantic search | | CACHE_TTL_MS | Cache TTL (default: 600000) |

License

MIT