# Lm

> Lm is an open-source MCP server for ai models and llm tooling. Hand routine coding work from Claude to a local or cheaper OpenAI-compatible model. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI
- **Website:** https://houtini.com
- **Repository:** https://github.com/houtini-ai/houtini-lm
- **MCP Registry name:** io.github.houtini-ai/lm
- **Categories:** AI models and LLM tooling, developer tools
- **Listing updated:** 2026-11-16

## About

Houtini LM exists to cut token spend: Claude keeps the planning and judgement, while bounded jobs such as boilerplate, code review, commit messages and format conversion go to another model and come back for Claude to check. The target can be a local model on your GPU, OpenAI GPT models, a LiteLLM router, OpenRouter or any OpenAI-compatible endpoint, set through environment variables for URL, key, model and provider.

With a tool such as code_task_files, source files are read by the houtini-lm process and sent straight to the other model, so they never enter Claude's context. The author's benchmark on TypeScript files shows reviews using roughly 95% fewer tokens in Claude's window, 93.3% averaged across a session, with the caveat that small tasks save less.

Version 3.3 adds direct OpenAI support (sending the parameters those reasoning models accept), reads the real model behind LiteLLM aliases, and lets you set thinking to auto, off or on. It is Apache-2.0 licensed and ships a Docker guide and manual.

## Features

- **Model offloading:** Delegates drafting and review to a model you choose.
- **Wide endpoint support:** Works with local servers, OpenAI, LiteLLM and OpenRouter.
- **Files kept out of context:** Delegated source files bypass Claude's context window.
- **Model-aware requests:** Adjusts parameters for OpenAI reasoning models and router aliases.
- **Thinking control:** Set reasoning to auto, off or on.
- **Second-opinion reviews:** Gets another model to review your code on demand.

## Good for

- Offload commit messages and boilerplate
- Get a second model to review a diff
- Cut token cost on overnight refactors
- Use a local GPU model for drafts
- Route work through a LiteLLM fleet

## Install

### Claude Code (Terminal)

```sh
claude mcp add lm --env HOUTINI_LM_API_KEY='<HOUTINI_LM_API_KEY>' -- npx -y @houtini/lm
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "lm": {
      "command": "npx",
      "args": [
        "-y",
        "@houtini/lm"
      ],
      "env": {
        "HOUTINI_LM_API_KEY": "<HOUTINI_LM_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "lm": {
      "command": "npx",
      "args": [
        "-y",
        "@houtini/lm"
      ],
      "env": {
        "HOUTINI_LM_API_KEY": "<HOUTINI_LM_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "lm": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@houtini/lm"
      ],
      "env": {
        "HOUTINI_LM_API_KEY": "<HOUTINI_LM_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "lm": {
      "command": "npx",
      "args": [
        "-y",
        "@houtini/lm"
      ],
      "env": {
        "HOUTINI_LM_API_KEY": "<HOUTINI_LM_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "lm": {
      "command": "npx",
      "args": [
        "-y",
        "@houtini/lm"
      ],
      "env": {
        "HOUTINI_LM_API_KEY": "<HOUTINI_LM_API_KEY>"
      }
    }
  }
}
```

## Tools

- `code_task_files`: Delegate a review or task on source files to another model without loading them into Claude's context

## FAQ

### What endpoints work?

Any OpenAI-compatible API, including LM Studio, OpenAI, LiteLLM and OpenRouter.

### How is it configured?

Environment variables set the endpoint URL, API key, model and provider.

### What licence is it?

Apache-2.0.

### How much does it save?

The README's benchmark shows about 93% fewer tokens in Claude's context on delegated reviews.

### Is Lm free?

Yes. Lm is open source, so you can use and self-host it for free.

### How do I add Lm to Claude Code?

Run this command in your terminal: claude mcp add lm --env HOUTINI_LM_API_KEY='<HOUTINI_LM_API_KEY>' -- npx -y @houtini/lm

### What are the best alternatives to Lm?

The closest alternatives to Lm are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/lm
