# Lm (MCP server)

> Lm is an MCP server that connects Claude to any OpenAI-compatible LLM endpoint and offload routine work to a local model. It has 120 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y @houtini/lm. It works with Claude Desktop, Claude Code, Cursor and VS Code and needs an API key.

Houtini LM is an MCP server that lets Claude (or any MCP client) hand bounded work to another model - a local LLM on your GPU, OpenAI's latest GPT models, a LiteLLM router, OpenRouter or a cheap cloud API - while you carry on working in the AI platform you already like. It cuts your token bill, and it gives you a second model to review your code whenever you want one.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/houtini-ai/houtini-lm |
| GitHub stars | 120 |
| License | Apache-2.0 |
| Language | TypeScript |
| Transport | stdio |
| Packages | npm: @houtini/lm |
| Remote URL | none |
| Needs API key | yes |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Developer tools |
| Latest release | v2.8.0 (Mar 18, 2026) |
| Last commit | Oct 6, 2026 |
| MCP registry name | io.github.houtini-ai/lm |

## Install

### Claude Desktop (claude_desktop_config.json)

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

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

### Claude Code

```sh
claude mcp add --env HOUTINI_LM_API_KEY=your-value --transport stdio lm -- npx -y @houtini/lm
```

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

```json
{
  "mcpServers": {
    "lm": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@houtini/lm"
      ],
      "env": {
        "HOUTINI_LM_API_KEY": "your-value"
      }
    }
  }
}
```

Project file; use ~/.cursor/mcp.json to enable it in every project.

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

```json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "houtini_lm_api_key",
      "description": "HOUTINI_LM_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "lm": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@houtini/lm"
      ],
      "env": {
        "HOUTINI_LM_API_KEY": "${input:houtini_lm_api_key}"
      }
    }
  }
}
```

Config formats checked against the official docs on 2026-10-07.

## Environment variables

- `HOUTINI_LM_ENDPOINT_URL`: Base URL of the OpenAI-compatible API endpoint (e.g. http://localhost:1234, https://openrouter.ai/api). Legacy alias: LMSTUDIOURL.
- `HOUTINI_LM_API_KEY` (secret): Bearer token for API authentication (no auth if blank). Legacy aliases: LMSTUDIOPASSWORD, LMPASSWORD, OPENROUTERAPI_KEY.
- `HOUTINI_LM_MODEL`: Model identifier to use for requests (auto-detected if not set). Legacy alias: LMSTUDIOMODEL.
- `HOUTINI_LM_PROVIDER`: Optional provider override: 'openrouter' forces OpenRouter-specific handling (attribution headers, reasoning.exclude, no inference serialisation)…

## Similar MCP servers

- [Gemini CLI](https://appsgit.com/mcp-servers/gemini-cli): An open-source AI agent that brings the power of Gemini directly into your terminal. (107,240 stars, Apache-2.0)
- [Front-End Checklist](https://appsgit.com/mcp-servers/front-end-checklist): Review frontend code and live pages against 386 quality-gated web development rules. (74,390 stars, MIT)
- [Claude Flow](https://appsgit.com/mcp-servers/claude-flow): AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev. (74,016 stars, MIT, needs API key)
- [Codebase Memory](https://appsgit.com/mcp-servers/codebase-memory): Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens. (45,917 stars, MIT)
- [Bytedance Filesystem](https://appsgit.com/mcp-servers/bytedance-filesystem): MCP server for filesystem access. (39,206 stars, Apache-2.0)
- [GitHub](https://appsgit.com/mcp-servers/github): Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language. (33,414 stars, MIT, official, needs API key)

---

Canonical page: https://appsgit.com/mcp-servers/lm
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
