Skip to main content
MCP server CX Codex

LLMSlim memory — Claude Code MCP server: memory and setup

This MCP server keeps agent and user messages in local SQLite, then selects relevant context under a token budget.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env LLMSLIM_MEMORY_DB=<LLMSLIM_MEMORY_DB> --env LLMSLIM_USER_ID=<LLMSLIM_USER_ID> --env LLMSLIM_AGENT_ID=<LLMSLIM_AGENT_ID> --transport stdio llmslim-memory -- uvx llmslim
Open on GitHub

What LLMSlim memory does

LLMSlim memory gives coding agents persistent local memory without sending storage or retrieval through an LLM. It exposes five MCP tools: remember, recall, list_memories, forget, and fit_context. Retrieval selects stored messages that match a question within the budget you set; fit_context can reduce a long log or document to that limit.

The server receives LLMSLIM_USER_ID and LLMSLIM_AGENT_ID at startup, so the model cannot switch memory scopes through injected text. Data is kept in a local SQLite file, and the MCP process runs through uvx. Python 3.10 or newer is required for the MCP server.

What it helps with

  • store agent messages in a local database
  • retrieve relevant records within a token limit
  • reduce a long log to a context budget
  • keep user and agent memory scopes separate

Example prompts for the agent

  • Remember that this project keeps its database in data.db.
  • Check whether the user has already shared API requirements and return the matching memories.
  • Fit logs/session.txt into the context budget.

How to install LLMSlim memory

Platform CLI

claude mcp add --env LLMSLIM_MEMORY_DB=<LLMSLIM_MEMORY_DB> --env LLMSLIM_USER_ID=<LLMSLIM_USER_ID> --env LLMSLIM_AGENT_ID=<LLMSLIM_AGENT_ID> --transport stdio llmslim-memory -- uvx llmslim

Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from llmslim <command>

Step 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 LLMSlim memory

How do I install LLMSlim memory in Claude Code?

Run claude mcp add llmslim -- uvx llmslim. Claude Code can then start the MCP server.

What does LLMSlim memory do?

It stores messages as provided and retrieves relevant records within a token budget. The default memory flow does not call an LLM or require an API key.

Which Python version does the MCP server need?

The MCP server needs Python 3.10 or newer. The LLMSlim library itself supports Python 3.9 or newer.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor