lean-ctx
活跃·★ 2.3k·MIT·更新于 2026-05-29
★ 宝藏工具★ 开发者工具★ 记忆与上下文
lean-ctx 是一个开源的 MCP 服务器,通过透明地压缩 AI 编码上下文,将 Claude Code、Cursor 和 Copilot 等工具的 LLM token 消耗降低高达 99%。
lean-ctx 是一个开源的 MCP 服务器,旨在大幅降低 Claude Code、Cursor 和 Copilot 等 AI 编程工具的 LLM token 成本。它通过透明地压缩命令行输出和文件上下文来实现,可节省高达 99% 的成本,使 AI 编程更快、更经济、更高效,且无需改变工作流程。
#agentic-coding#人工智能#AI 编程#Claude Code#context-engineering#Copilot#Cursor#开发者工具
01
功能特性
01透明的 Shell Hook 实现命令行输出压缩
02带有 28 个智能工具的上下文服务器
03AI 编码代理的一键集成
04通过认知效率协议实现自适应 LLM 通信
05用于上下文连续性的跨会话内存
02
兼容性
Cursor
自动配置
已通过文档验证
Claude Code
自动配置
已通过文档验证
GitHub Copilot
自动配置
已通过文档验证
VS Code
自动配置
已通过文档验证
JetBrains IDEs
自动配置
已通过文档验证
03
快速开始
1
$ curl -fsSL https://leanctx.com/install.sh | sh
2
$ lean-ctx setup
3
$ lean-ctx doctor
04
使用场景
↳降低 Claude Code、Cursor 和 Copilot 的 token 成本
↳优化 MCP 服务器性能
↳每月节省 30-100+ 美元的 AI 编程 API 费用
05
同类工具
相关搜索
评论
登录后发表评论
- CCorey Thompson2026年5月1日
MCP Server plus Shell Hook combination covers both interactive and automated workflows.
- JJordan Lewis2026年5月1日
99% AI coding cost reduction via context compression is a bold claim worth testing.
- PPhoenix Harris2026年4月5日
Context management at this level can make AI coding economically viable for large codebases.
- LLogan Nguyen2026年3月19日
Works with Cursor, Claude Code, and other MCP-compatible tools.