Skip to content

lemma

Local MCP server that gives coding agents a verifiable project memory, trims what enters their context, and masks secrets — with honest accounting of what it saves and costs.

build.protocol_tooling.mcp#semantic-cache#privacy-firewall#ai-security#cost-optimization#intelligent-proxy#ai-agents#orchestration#ide-sync#llm-gateway#openai-proxy

Install lemma in your MCP client

lemma is a Model Context Protocol server. Add it to your MCP client config once, restart, and the server's tools become available to your AI assistant. The same JSON snippet below works across all four major clients — only the config file path differs.

  1. Locate your client's MCP config file.
    • Cursor: ~/.cursor/mcp.json
    • Claude Desktop (macOS): ~/Library/Application Support/Claude/claude_desktop_config.json
    • Claude Desktop (Windows): %APPDATA%\Claude\claude_desktop_config.json
    • VS Code: Settings → Extensions → MCP
    • Windsurf: Settings → MCP Servers
  2. Add lemma to the mcpServers map — paste the snippet below into your config file. If you already have other MCP servers, merge the entry into the existing mcpServers object.
  3. Restart your client so it picks up the new server.
  4. Verify — ask the assistant to list available tools; lemma's tools should appear.
{
  "mcpServers": {
    "lemma": {
      "command": "npx",
      "args": [
        "-y",
        "@nxuss/lemma"
      ]
    }
  }
}

Install lemma in Cursor

Open ~/.cursor/mcp.json in your editor, paste the snippet above into mcpServers, save, and restart Cursor. lemma will show up in the assistant's tool list on next launch.

Install lemma in Claude Desktop (macOS)

Open ~/Library/Application Support/Claude/claude_desktop_config.json in your editor, paste the snippet above into mcpServers, save, and restart Claude Desktop (macOS). lemma will show up in the assistant's tool list on next launch.

Install lemma in Claude Desktop (Windows)

Open %APPDATA%\Claude\claude_desktop_config.json in your editor, paste the snippet above into mcpServers, save, and restart Claude Desktop (Windows). lemma will show up in the assistant's tool list on next launch.

Install lemma in VS Code

Open Settings → Extensions → MCP in your editor, paste the snippet above into mcpServers, save, and restart VS Code. lemma will show up in the assistant's tool list on next launch.

npm package: @nxuss/lemma

Transport

lemma supports the following MCP transports. Most AI clients use stdio by default for locally-installed servers.

stdio

From the lemma README

# 🧠 Lemma [![npm version](https://img.shields.io/npm/v/@nxuss/lemma.svg?color=orange&style=flat-square)](https://www.npmjs.com/package/@nxuss/lemma) [![License](https://img.shields.io/npm/l/@nxuss/lemma.svg?color=blue&style=flat-square)](https://github.com/Nxusbets/lemma/blob/main/LICENSE) [![MCP](https://img.shields.io/badge/MCP-111%20tools-ff69b4?style=flat-square)](https://github.com/Nxusbets/lemma) [![Local-first](https://img.shields.io/badge/local--first-no%20cloud%20required-success?style=flat-square)](https://github.com/Nxusbets/lemma) **A memory your AI agent can verify, and a context window that only holds what matters.** Coding agents forget everything between sessions, re-read the same files, and dump whole test logs into their context. Lemma is a local MCP server (plus an o…

Other Model Context Protocol servers in the same space as lemma. Each one adds different capabilities to your AI assistant — pick based on the data sources or workflows you need.

Browse the full MCP server directory or use Stork's one-line install to let your agent pick the right server automatically.