MCP server that saves Claude Code tokens by delegating bounded tasks to local or cloud LLMs. Works with LM Studio, Ollama, vLLM, DeepSeek, Groq, Cerebras.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add lm --env HOUTINI_LM_API_KEY='<HOUTINI_LM_API_KEY>' -- npx -y @houtini/lm~/.codex/config.toml
[mcp_servers.lm]
command = "npx"
args = ["-y", "@houtini/lm"]
env = { HOUTINI_LM_API_KEY = "<HOUTINI_LM_API_KEY>" }
# codex mcp add lm --env HOUTINI_LM_API_KEY='<HOUTINI_LM_API_KEY>' -- npx -y @houtini/lm~/.cursor/mcp.json
{
"mcpServers": {
"lm": {
"command": "npx",
"args": [
"-y",
"@houtini/lm"
],
"env": {
"HOUTINI_LM_API_KEY": "<HOUTINI_LM_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"lm": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@houtini/lm"
],
"env": {
"HOUTINI_LM_API_KEY": "<HOUTINI_LM_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"lm": {
"command": "npx",
"args": [
"-y",
"@houtini/lm"
],
"env": {
"HOUTINI_LM_API_KEY": "<HOUTINI_LM_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"lm": {
"command": "npx",
"args": [
"-y",
"@houtini/lm"
],
"env": {
"HOUTINI_LM_API_KEY": "<HOUTINI_LM_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"lm": {
"command": "npx",
"args": [
"-y",
"@houtini/lm"
],
"env": {
"HOUTINI_LM_API_KEY": "<HOUTINI_LM_API_KEY>"
}
}
}
}Environment variables
HOUTINI_LM_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.