liter-llm — Claude Code MCP server: access 170+ LLM providers
liter-llm is a Claude Code MCP server that unifies 174 LLM providers into a single toolset. Agents switch between cloud models and local backends without code rewrites.
MIT ★ 267 updated 2026-11-24
claude mcp add liter-llm -- npx -y @xberg-io/liter-llm-cliWhat liter-llm does
The server provides tools for completions, embeddings, document OCR, and web search across 174 AI vendors. Supported platforms include Anthropic, OpenAI, AWS Bedrock, Groq, and self-hosted runtimes such as Ollama, llama.cpp, or vLLM. Switching targets only requires altering the model name string.
A Rust-based engine drives execution through a Node.js CLI launcher. The system handles fallback routing according to latency or pricing, budget enforcement, and caching backed by OpenDAL. Custom settings and private providers are configured inside liter-llm.toml.
Calls to commercial cloud endpoints depend on valid API keys, and running via npx requires Node.js.
What it helps with
- access 170+ LLM providers
- switch model backends without rewrites
- connect local models from Ollama and vLLM
- route traffic and handle provider failover
- enforce token budgets and cache completions
Example prompts for the agent
- Send this prompt to DeepSeek using liter-llm and return the output
- Generate embeddings using the local Ollama instance
- Search the web using liter-llm search tools
How to install liter-llm
Platform CLI
claude mcp add liter-llm -- npx -y @xberg-io/liter-llm-cliPlatform CLI
codex mcp add liter-llm -- npx -y @xberg-io/liter-llm-cliConfig file
{
"mcpServers": {
"liter-llm": {
"command": "npx",
"args": [
"-y",
"@xberg-io/liter-llm-cli"
]
}
}
}Config file
{
"servers": {
"liter-llm": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@xberg-io/liter-llm-cli"
]
}
}
}Platform CLI
gemini mcp add liter-llm npx -y @xberg-io/liter-llm-cliStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about liter-llm
How to install liter-llm in Claude Code?
Run claude mcp add liter-llm -- npx -y @xberg-io/liter-llm-cli.
What does liter-llm do?
It gives coding agents a unified bridge to 174 language model providers, local inference engines, document OCR, and web search.
What is required to run liter-llm?
You need Node.js to run the CLI via npx, along with active API credentials for external providers or a reachable local server like Ollama.