Kosha Model Discovery MCP Server
by sriinnuio.github.sriinnu/kosha-discoveryv1.8.1
Tells your agent which model to use and what it costs, across 46 providers and local runtimes.
context tax
queued
security
queued
cold start
queued
freshness
Active3d ago
Install Kosha Model Discovery MCP server
Install in Claude Code
claude mcp add kosha-discovery -e ANTHROPIC_API_KEY='<anthropic-api-key>' -e OPENAI_API_KEY='<openai-api-key>' -e GOOGLE_API_KEY='<google-api-key>' -e OPENROUTER_API_KEY='<openrouter-api-key>' -e XAI_API_KEY='<xai-api-key>' -e TYPESAFE_API_KEY='<typesafe-api-key>' -- npx -y @sriinnu/kosha-discoveryInstall in Cursor
{
"mcpServers": {
"kosha-discovery": {
"command": "npx",
"args": [
"-y",
"@sriinnu/kosha-discovery"
],
"env": {
"ANTHROPIC_API_KEY": "<anthropic-api-key>",
"OPENAI_API_KEY": "<openai-api-key>",
"GOOGLE_API_KEY": "<google-api-key>",
"OPENROUTER_API_KEY": "<openrouter-api-key>",
"XAI_API_KEY": "<xai-api-key>",
"TYPESAFE_API_KEY": "<typesafe-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"kosha-discovery": {
"command": "npx",
"args": [
"-y",
"@sriinnu/kosha-discovery"
],
"env": {
"ANTHROPIC_API_KEY": "<anthropic-api-key>",
"OPENAI_API_KEY": "<openai-api-key>",
"GOOGLE_API_KEY": "<google-api-key>",
"OPENROUTER_API_KEY": "<openrouter-api-key>",
"XAI_API_KEY": "<xai-api-key>",
"TYPESAFE_API_KEY": "<typesafe-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"kosha-discovery": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sriinnu/kosha-discovery"
],
"env": {
"ANTHROPIC_API_KEY": "<anthropic-api-key>",
"OPENAI_API_KEY": "<openai-api-key>",
"GOOGLE_API_KEY": "<google-api-key>",
"OPENROUTER_API_KEY": "<openrouter-api-key>",
"XAI_API_KEY": "<xai-api-key>",
"TYPESAFE_API_KEY": "<typesafe-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"kosha-discovery": {
"command": "npx",
"args": [
"-y",
"@sriinnu/kosha-discovery"
],
"env": {
"ANTHROPIC_API_KEY": "<anthropic-api-key>",
"OPENAI_API_KEY": "<openai-api-key>",
"GOOGLE_API_KEY": "<google-api-key>",
"OPENROUTER_API_KEY": "<openrouter-api-key>",
"XAI_API_KEY": "<xai-api-key>",
"TYPESAFE_API_KEY": "<typesafe-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| ANTHROPIC_API_KEY | — | yes | Anthropic API key. Optional — without it, Anthropic models are read from the public models.dev / LiteLLM catalogs instead of the live API. |
| OPENAI_API_KEY | — | yes | OpenAI API key. Optional — falls back to the public catalogs when absent. |
| GOOGLE_API_KEY | — | yes | Google AI Studio / Gemini API key. Optional. |
| OPENROUTER_API_KEY | — | yes | OpenRouter key. Optional for discovery (unauthenticated requests are rate-limited), required to execute through OpenRouter. |
| XAI_API_KEY | — | yes | xAI (Grok) API key. Optional. |
| TYPESAFE_API_KEY | — | yes | TypeSafe System One (Jev) API key. Optional. |
| KOSHA_CACHE_TTL_HOURS | — | — | Override the discovery cache TTL. Defaults to 24 hours. |
Freshness
Active — last maintenance signal 3d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-06 · 3d ago · GitHub
Latest release
2026-10-06 · 3d ago · GitHub · v1.8.1
Package published
no data · npm/PyPI
Registry entry updated
2026-10-06 · 3d ago · official registry · v1.8.1
FAQ
›How do I install the Kosha Model Discovery MCP server in Claude Code?
Run: claude mcp add kosha-discovery -e ANTHROPIC_API_KEY='<anthropic-api-key>' -e OPENAI_API_KEY='<openai-api-key>' -e GOOGLE_API_KEY='<google-api-key>' -e OPENROUTER_API_KEY='<openrouter-api-key>' -e XAI_API_KEY='<xai-api-key>' -e TYPESAFE_API_KEY='<typesafe-api-key>' -- npx -y @sriinnu/kosha-discovery. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Kosha Model Discovery require an API key?
Yes. It expects ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY, OPENROUTER_API_KEY, XAI_API_KEY, TYPESAFE_API_KEY, of which 6 are secrets.
›Can I use Kosha Model Discovery as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Kosha Model Discovery in the official MCP registry?
Yes, as io.github.sriinnu/kosha-discovery.