MCP.Market

Kosha Model Discovery MCP server

by sriinnu·io.github.sriinnu/kosha-discovery·v1.12.0·2 stars

Tells your agent which model to use and what it costs, across 46 providers and local runtimes.

B83/100grade B
What users say
No reviews yet
Be the first
Safety scan
B83/100

not scanned yet

Adoption
Growing

2 stars305 downloads/wk

Reviews

Write one

Nobody has reviewed Kosha Model Discovery yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Kosha Model Discovery tools

No tool declarations could be read from the package source. They show once the server is installed.

Not scanned yet. New listings are scanned within a day or two of arriving.

How Kosha Model Discovery compares

Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
83/100
higher than 68% of 4,460 AI and agents servers
GitHub stars
2
more than 65% of 2,711 AI and agents servers
Downloads a week
305
more than 80% of 1,538 AI and agents servers with a package

Release history: 6 versions in the registry since 2026-09-19, latest 2026-11-03, typically one every 3 days.

Install Kosha Model Discovery in Claude Code, Cursor or VS Code

Runs npx -y @sriinnu/kosha-discovery on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add kosha-discovery -- npx -y @sriinnu/kosha-discovery
Add to Cursor

What the publisher says

From the Kosha Model Discovery repository's README, as published. We do not edit it. Read it on GitHub

kosha-discovery

Tells your agent — or your code — which model to use and what it costs.

kosha discovers models across 45 providers and local runtimes, finds your API keys wherever they already live (env vars, Claude CLI, Codex, gcloud ADC, AWS SSO), fills in pricing and context limits, and answers questions like the cheapest model with tool use and 128k context that I actually hold a key for. It ships as a TypeScript library, a CLI, an HTTP API, an OpenAI-compatible proxy with a spend ledger, and an MCP server.

It works with no API keys at all — discovery falls back to the public models.dev and LiteLLM catalogs, so kosha list is useful on a fresh machine.

Install

npm install @sriinnu/kosha-discovery       # library / server
npm install -g @sriinnu/kosha-discovery    # global `kosha` CLI

Requires Node.js 22+.

Quick start

Library

import { createKosha } from "@sriinnu/kosha-discovery";

const kosha = await createKosha();

const models   = kosha.models();                          // ModelCard[] across every provider
const cheapest = kosha.cheapestModels({ role: "image" }); // ranked by price, with missingCredentials
const sonnet   = kosha.model("sonnet");                   // alias → canonical ID; undefined if unknown
console.log(sonnet?.pricing); // { inputPerMillion: 2, outputPerMillion: 10, cacheReadPerMillion: 0.2, ... }

CLI

kosha discover                       # query every provider; writes ~/.kosha/cache and the manifest
kosha list --provider anthropic      # read from the local cache
kosha model sonnet                   # one model, alias-aware
kosha routes claude-opus-5           # every serving route for a model (direct, OpenRouter, Bedrock, …)
kosha cheapest --role embeddings     # rank by price for a role
kosha doctor --ci                    # deprecations + provider health; non-zero exit for CI
kosha spend --since 2026-09-01       # roll up the proxy's spend ledger
kosha refresh                        # bypass the cache and re-discover
kosha serve --port 3000              # HTTP API + proxy; binds 127.0.0.1 (see Proxy below)

Every command takes --json. kosha --help lists the rest.

After each discovery, a stable v1 manifest lands at ~/.kosha/registry.json:

jq '.models[] | select(.pricing.inputPerMillion < 0.1) | .modelId' ~/.kosha/registry.json

Public snapshot

A weekly discovery run publishes a full snapshot — every provider, model, price and limit kosha can see without your keys — at a stable URL:

curl -sL https://github.com/sriinnu/kosha-discovery/releases/download/snapshot-latest/kosha-latest.json \
  | jq '.modelCount, .providerCount'

It is a release asset rather than a file in the repository: at ~2.8 MB growing with every provider added, committing it weekly would put roughly 150 MB of already-stale data a year into a repo people are meant to clone. Dated snapshot-YYYY-MM-DD pre-releases keep a short trail for diffing, pruned to the two most recent, and an older one is only removed once a newer one exists.

HTTP API

GET  /api/models?provider=&originProvider=&mode=&capability=
GET  /api/models/:idOrAlias             GET  /api/models/:idOrAlias/routes
GET  /api/models/cheapest?role=…        GET  /api/capabilities
GET  /api/providers[/:id]               GET  /api/roles
GET  /api/resolve/:alias                GET  /api/discovery-errors
GET  /api/discovery[/delta|/watch|/cheapest|/binding]   (stable v1 contract)
POST /api/refresh                       GET  /health          GET  /metrics
GET  /proxy/v1/models                   POST /proxy/v1/chat/completions

Parameters and response shapes: docs/api.md.

Proxy

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Kosha Model Discovery: common questions

Is Kosha Model Discovery MCP server safe?
Mostly: it is graded B (83/100). Read the Kosha Model Discovery safety report
How do I install Kosha Model Discovery?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Kosha Model Discovery need an API key?
Yes. The registry entry asks for ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY, OPENROUTER_API_KEY and 2 more.
Is Kosha Model Discovery maintained?
The last commit was 36 days ago (2026-09-29). The latest release is v1.12.0.
What can I use instead of Kosha Model Discovery?
Servers from other publishers that do the same job: Grandet MCP server, LLM Sandbox MCP server and Alibaba Cloud DashScope — Qwen MCP server.
How does Kosha Model Discovery compare with other AI and agents MCP servers?
safety score 83/100 (higher than 68% of 4,460 AI and agents servers); github stars 2 (more than 65% of 2,711 AI and agents servers); downloads a week 305 (more than 80% of 1,538 AI and agents servers with a package). Full comparison.

Alternatives to Kosha Model Discovery

Same job from other publishers: the closest match first, then the best rated.

  • Grandet
    Cheapest API for any model across official, inference and relay providers; find free credits
    A
  • LLM Sandbox
    Securely run LLM-generated code in isolated containers across 7 languages and 3 container backends.
    A
  • Alibaba Cloud DashScope — Qwen
    Alibaba Cloud DashScope MCP: Qwen chat, embeddings, and model discovery on your own account.
    B
  • freellmpool
    OpenAI-compatible MCP gateway cataloging 22 LLM providers, with routing, failover, and tools.
    A
  • llmtrim
    MCP server and proxy that compresses LLM prompts, tool output, and replies to cut token cost.
    A