cursor-eff
A local MCP server that improves token efficiency for Cursor's agent by providing cheaper tools like search_code, outline_file, read_snippet, project_map, and handoff, along with rules that steer the agent to use them and reduce excessive context usage.
README
cursor-eff
Token-efficiency toolkit for Cursor: a local MCP server + steering rules that cut how much context Cursor's agent burns, regardless of which model you use.
Why
On a Cursor subscription, quota drains through three habits: the agent reading whole files to find things, re-exploring the repo every chat, and long conversations re-sending their entire history each turn. cursor-eff attacks all three at the source by giving the agent cheaper primitives and rules that make it prefer them.
What the agent gets
| Tool | Replaces | Typical saving |
|---|---|---|
search_code |
reading whole files to find something | ~10–50x |
outline_file |
full file reads for orientation | ~10x |
read_snippet |
full file reads for a known region | proportional |
project_map |
recursive directory exploration, re-done every chat | cached, 10 min TTL |
handoff |
continuing a bloated 100-message chat | fresh chat seeded with ~1 page |
Plus a rules file (.cursor/rules/efficiency.mdc) that steers the agent to use them, avoid re-reads, stay terse, and suggest fresh chats.
Setup
Requires Node.js 18+. Works on Windows, macOS, and Linux (ripgrep binaries ship with the install).
From npm (once published):
npm install -g cursor-eff
cursor-eff register # once — adds the MCP server to ~/.cursor/mcp.json
cursor-eff init <project> # per project — installs rules + .cursorignore entries
From source:
git clone https://github.com/aclermont318-sys/cursor-eff.git && cd cursor-eff
npm install && npm run build
node dist/cli.js register
node dist/cli.js init <project>
Restart Cursor afterwards. Verify under Settings → MCP that cursor-eff shows 5 tools.
init never overwrites an existing efficiency.mdc (so your project-specific edits survive); pass --force to reset it to the stock template.
Daily use
Nothing changes — the agent uses the tools on its own. Two habits multiply the savings:
- When the agent says "state saved, start a fresh chat", do it: open a new chat and say "read .cursor/handoffs/latest.md and continue".
- Keep one chat per task, not one chat per day.
Development
npm run build # compile
npm run smoke # end-to-end MCP stdio test (10 checks)
Limits (by design)
Cursor's prompt pipeline is closed — this tool cannot rewrite what Cursor sends for its subscription models. It reduces what the agent asks for, which is where most waste is. Savings depend on the model following the rules; frontier models follow tool-preference rules well.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。