独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
T

Thanatos9404/llmslim

Long-term memory and compression without another model

装之前:有可直接复制的命令 · 许可证未标注 · 链接可访问

在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
安装与配置
  1. 复制上面的命令
  2. 粘成 claude_desktop_config.json 里 mcpServers 的一项(本地服务器用 command + args,示例见 客户端接法)
  3. 重启客户端
取自该仓库的安装命令
pip install llmslim

解析自我们于 2026-11-04 抓取的该仓库 README;我们未执行过。

这条是仓库自己写的安装方式,不是 MCP 客户端配置,所以不生成 JSON。
配置项的键名以你的客户端为准:客户端与 CLI
来源明细
收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
评分构成
综合分 1,003 · 10 个来源 · mcp
安装
pip install llmslim
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是 pip install llmslim。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。

# 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.
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/thanatos9404-llmslim/)
来源
awesome · https://github.com/Thanatos9404/llmslim
按领域浏览
MCP 服务
收录来源
10 个独立来源
收录于
今天

同类推荐

全部 6,229 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引