whatisgithub

What is openrouter-mcp?

aaryanptl/openrouter-mcp — explained in plain English

Analysis updated 2026-05-18

0TypeScriptAudience · developerComplexity · 2/5Setup · easy

In one sentence

An MCP tool that lets an AI assistant look up, compare, and estimate costs for over 300 OpenRouter AI models, each with a visual widget.

Mindmap

mindmap
  root((openrouter-mcp))
    What it does
      Looks up model price and specs
      Compares models side by side
      Filters for cheapest matching model
      Estimates cost interactively
      Ranks models by benchmark
    Tech stack
      TypeScript
      React
      MCP protocol
      OpenRouter API
    Use cases
      Ask an AI which model fits a budget
      Compare models before choosing one
      Estimate token costs for a project
    Audience
      Developers
      Vibe coders
      PMs and founders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Ask an AI assistant what a specific model like claude-opus-4.8 costs and supports.

USE CASE 2

Compare two to four AI models side by side to pick the best value for a task.

USE CASE 3

Find the cheapest model that supports vision and a large context window.

USE CASE 4

Estimate the dollar cost of a task given expected input and output token counts.

What is it built with?

TypeScriptReactMCPNode.js

How does it compare?

aaryanptl/openrouter-mcp0xkinno/astraea0xkinno/halcyon
Stars000
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasyhardhard
Complexity2/54/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

No API key is needed for the main features since the model catalog endpoint is public.

Unknown from the shown README, check the repository license file for exact terms.

So what is it?

This project lets an AI assistant like Claude or ChatGPT answer questions about the more than 300 AI models listed on OpenRouter, a service that gives access to many different AI models through one place. It works using the MCP standard, which lets an AI tool call small external tools mid conversation, and each tool here also comes with a small visual widget built in React so the answer shows up as a card or chart instead of plain text. It is built to be deployed on a platform called Manufact, though it can also run locally. Under the hood, everything relies on one public OpenRouter web address that lists every model along with its price per token, how much text it can handle at once, what kinds of input it accepts, and benchmark scores, and this project fetches that list once every six hours and reuses it, so no login or API key is needed for the main features. The five tools include one that shows a single model's price and capabilities, one that compares two to four models side by side, one that filters for the cheapest model matching certain needs like vision support, an interactive calculator that recomputes cost live as you change token counts, and a ranking of models by a coding benchmark leaderboard. To try it yourself, you install the dependencies with npm and run it locally, which starts a small server along with an inspector tool you can use to call each of the five functions directly with sample inputs. To put it online, you push the code to GitHub and connect the repository through the Manufact platform, and no extra setup is needed unless you later want to add real model calls, in which case an OpenRouter API key would be required. The README notes a few details, like prices being stored as tiny decimal numbers you multiply to get a normal dollar figure, and that not every model has a benchmark score available.

Copy-paste prompts

Prompt 1
Help me run this openrouter-mcp server locally with npm run dev and test the model-card tool.
Prompt 2
Explain how the cost-estimator tool recomputes pricing live as I change token counts.
Prompt 3
Show me how to deploy this project on Manufact by connecting my GitHub repository.
Prompt 4
Walk me through comparing gpt-5, claude-sonnet, and deepseek using the compare-models tool.

Frequently asked questions

What is openrouter-mcp?

An MCP tool that lets an AI assistant look up, compare, and estimate costs for over 300 OpenRouter AI models, each with a visual widget.

What language is openrouter-mcp written in?

Mainly TypeScript. The stack also includes TypeScript, React, MCP.

What license does openrouter-mcp use?

Unknown from the shown README, check the repository license file for exact terms.

How hard is openrouter-mcp to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is openrouter-mcp for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.