Heratiki/locallama-mcp
MCP server that routes coding tasks to the cheapest capable model
What it solves
Without it, coding tasks go straight to paid models while local and free capacity sits idle, driving up token costs.
- Local, free, then paid routing
- Async tasks polled by task_id
- Cost, latency, quality thresholds
Works with
- cursor
- vscode
Copy-ready config
{
"mcpServers": {
"locallama": {
"command": "node",
"args": [
"/path/to/locallama-mcp/dist/index.js"
],
"env": {
"LM_STUDIO_ENDPOINT": "http://localhost:1234/v1",
"OLLAMA_ENDPOINT": "http://localhost:11434/api",
"DEFAULT_LOCAL_MODEL": "qwen2.5-coder-3b-instruct",
"TOKEN_THRESHOLD": "1500",
"COST_THRESHOLD": "0.02",
"QUALITY_THRESHOLD": "0.07",
"OPENROUTER_API_KEY": "your_openrouter_api_key_here"
}
}
}
} Security flags
- Needs API key: Yes
- Runs locally: Yes
- Network access: Yes
- Needs root: No
Maintenance
| Last commit | 2026-12-05(0d) |
|---|---|
| Stars | 43 |
| Open issues | 0 |
| License | — |
| Archived | No |
| Data fetched | 2026-12-05 |
Source excerpt
Verbatim README excerpt, unedited, so you can check the summary above.
Local-first, provider-neutral Model Context Protocol server for coding-agent workflows.