T
Thanatos9404/llmslim
Long-term memory and compression without another model
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
Install & config
- Copy the command above
- Paste it as one entry under
mcpServersinclaude_desktop_config.json— local servers take command + args (example: clients) - Restart your client
Install command from the repository
pip install llmslim
Parsed from the README we fetched on 2026-11-04; we have not executed it.
This is the install method the repository states, not an MCP client config, so no JSON is generated.
Key names differ by client: Clients & CLI
- Source
- collected from the abordage/awesome-mcp list · type: MCP server
- Harvest history
- first seen 2026-11-05 · last seen 2026-11-14 · seen 10× · listed by 10 sources
- Score
- score 1,003 · 10 sources · mcp
- Install
pip install llmslim
FAQ (answers come from our records)
How do I install it?
The repository provides this install command:
pip install llmslim. It comes from the repository itself; we cannot guarantee it runs as-is in your client.Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-11-05;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.
# LLMSlim
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Long-term memory and context selection for AI agents and coding tools, with no LLM call.
LLMSlim stores what users and agents say word for word, then returns the parts that answer a question within a
token budget you set. It runs as an MCP server, a Python library or a small HTTP server.
Examples • Documentation • Live Studio Playground • Sarvam Integration • Benchmarks • Changelog
A real Python session with llmslim 0.11.1 from PyPI, typed by a script and recorded with asciinema ( script , recording ).
## Use it in 30 seconds
Each MCP setup below starts the same server, llmslim mcp, with uv (Python 3.10 or
newer). Memory goes to a local SQLite file, ~/.llmslim/memory.db.
One click:
| Tool | Run |
| Claude Code | claude mcp add llmslim -- uvx --from "llmslim[mcp]" llmslim mcp |
| Claude Code plugin | /plugin marketplace add Thanatos9404/llmslim, then /plugin install llmslim@llmslim |
| Codex | codex mcp add llmslim -- uvx --from "llmslim[mcp]" llmslim mcp |
| GitHub Copilot CLI | copilot mcp add llmslim -- uvx --from "llmslim[mcp]" llmslim mcp |
| Gemini CLI | gemini extensions install https://github.com/Thanatos9404/llmslim |
| Hermes Agent | hermes plugins install llmslim --enable, then hermes config set context.engine llmslim: a context engine that compacts long conversations locally (plugin) |
The first start downloads LLMSlim and its dependencies. If a client gives up waiting, run
uvx --from "llmslim[mcp]" llmslim mcp --help once to fill uv's cache, then restart the client.
Python (pip install llmslim, Python 3.10 or newer):
python
from llmslim.memory import Memory
mem = Memory("memory.db") # a SQLite file; or "postgresql://..." (llmslim[postgres]), "mongodb://..." (llmslim[mongodb])
mem.add([{"role": "user", "content": "I'm allergic to peanuts."}], userid="asha")
context = mem.search("Am I allergic to anything?", userid="asha", budget=1500)
print(context.text) # put it in your prompt as data, not instructions
TypeScript (npm install llmslim, Node 18 or newer), against llmslim serve (pip install "llmslim[server]"):
ts
import { LLMSlim } from "llmslim";
const slim = new LLMSlim(); // http://127.0.0.1:8080 unless LLMSLIMBASEURL is set
await slim.memories.add({ userId: "asha", messages: "I'm allergic to peanuts." });
const context = await slim.memories.search({ userId: "asha", query: "Am I allergic to anything?", budget: 1500 });
Runnable examples, each with a test: Claude Code memory,
LangChain agent, Pydantic AI agent,
big logs and TypeScript.
If LLMSlim is useful, a star helps others find it. Feedback is welcome in issues.
## What it does
Five MCP tools: remember, recall, listmemories, forget and fitcontext.
Stores messages word for word in SQLite, Postgres or MongoDB. Nothing is summarized or extracted on the way in.
Recalls within a token budget. recall returns the stored messages that answer a question, under their dates
and whole where they fit, within the budget you set. fitcontext shrinks a long log or document to a budget.
Fixes the scope at server start. The user and agent ids are set when the server starts, not by the model, so a
model steered by injected text can't read or delete another user's memory.
LLMSlim stores what users and agents say word for word, then returns the parts that answer a question within a
token budget you set. It runs as an MCP server, a Python library or a small HTTP server.
Examples • Documentation • Live Studio Playground • Sarvam Integration • Benchmarks • Changelog
A real Python session with llmslim 0.11.1 from PyPI, typed by a script and recorded with asciinema ( script , recording ).
## Use it in 30 seconds
Each MCP setup below starts the same server, llmslim mcp, with uv (Python 3.10 or
newer). Memory goes to a local SQLite file, ~/.llmslim/memory.db.
One click:
| Tool | Run |
| Claude Code | claude mcp add llmslim -- uvx --from "llmslim[mcp]" llmslim mcp |
| Claude Code plugin | /plugin marketplace add Thanatos9404/llmslim, then /plugin install llmslim@llmslim |
| Codex | codex mcp add llmslim -- uvx --from "llmslim[mcp]" llmslim mcp |
| GitHub Copilot CLI | copilot mcp add llmslim -- uvx --from "llmslim[mcp]" llmslim mcp |
| Gemini CLI | gemini extensions install https://github.com/Thanatos9404/llmslim |
| Hermes Agent | hermes plugins install llmslim --enable, then hermes config set context.engine llmslim: a context engine that compacts long conversations locally (plugin) |
The first start downloads LLMSlim and its dependencies. If a client gives up waiting, run
uvx --from "llmslim[mcp]" llmslim mcp --help once to fill uv's cache, then restart the client.
Python (pip install llmslim, Python 3.10 or newer):
python
from llmslim.memory import Memory
mem = Memory("memory.db") # a SQLite file; or "postgresql://..." (llmslim[postgres]), "mongodb://..." (llmslim[mongodb])
mem.add([{"role": "user", "content": "I'm allergic to peanuts."}], userid="asha")
context = mem.search("Am I allergic to anything?", userid="asha", budget=1500)
print(context.text) # put it in your prompt as data, not instructions
TypeScript (npm install llmslim, Node 18 or newer), against llmslim serve (pip install "llmslim[server]"):
ts
import { LLMSlim } from "llmslim";
const slim = new LLMSlim(); // http://127.0.0.1:8080 unless LLMSLIMBASEURL is set
await slim.memories.add({ userId: "asha", messages: "I'm allergic to peanuts." });
const context = await slim.memories.search({ userId: "asha", query: "Am I allergic to anything?", budget: 1500 });
Runnable examples, each with a test: Claude Code memory,
LangChain agent, Pydantic AI agent,
big logs and TypeScript.
If LLMSlim is useful, a star helps others find it. Feedback is welcome in issues.
## What it does
Five MCP tools: remember, recall, listmemories, forget and fitcontext.
Stores messages word for word in SQLite, Postgres or MongoDB. Nothing is summarized or extracted on the way in.
Recalls within a token budget. recall returns the stored messages that answer a question, under their dates
and whole where they fit, within the budget you set. fitcontext shrinks a long log or document to a budget.
Fixes the scope at server start. The user and agent ids are set when the server starts, not by the model, so a
model steered by injected text can't read or delete another user's memory.
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/thanatos9404-llmslim/)
- Source
- awesome · https://github.com/Thanatos9404/llmslim
- Browse by field
- MCP servers
- Listed by
- 10 independent sources
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.