llmtrim
在请求发往 LLM 前压缩提示词、对话历史、工具输出和代码以降低 token 成本,带质量门控、不改变回答。MCP server 提供 `llmtrim_compress`、`llmtrim_compress_text`、`llmtrim_stats` 三个工具;也可作为本地代理、CLI 或库使用。
知识、记忆与 RAG
npm 0 platforms
0 features
Install
npx -y fkiene/llmtrim
Paste the configuration above into your MCP client config (claude_desktop_config.json for Claude Desktop) and restart the client.
{
"mcpServers": {
"llmtrim": {
"command": "npx",
"args": [
"-y",
"fkiene/llmtrim"
]
}
}
}Paste the configuration above into your MCP client config (claude_desktop_config.json for Claude Desktop) and restart the client.
Sources: public MCP Server directories. This is an independent third-party directory with no affiliation to or endorsement from the maintainers of the listed servers.