elim-mcp
An MCP server that gives coding agents a persistent, chained memory of debugging investigations, tracking what's been tried, ruled out, and solved across sessions and scopes.
README
elim-mcp
Every memory tool remembers what's true. This one also remembers what isn't.
An MCP server that remembers what coding agents have already tried, ruled out, and solved — so nobody, human or agent, re-investigates the same dead end twice across sessions, branches, and tools.
Before / after
── Session 1 · Claude Code · branch fix/checkout-500s ──────────────────
Agent: Checking if checkout timeouts are a DB connection pool issue…
→ remember(
content: "Investigated connection pool exhaustion — ruled out,
pool metrics normal under load",
kind: "ruled_out",
topic: "checkout-timeout"
)
→ remember(
content: "Suspected API key rotation mid-deploy — ruled out,
keys match and auth logs are clean",
kind: "ruled_out",
topic: "checkout-timeout",
follows_from: "<id of previous record>"
)
── Session 2 · Cursor · same branch, days later ────────────────────────
Agent: Let me check the DB connection pool—
→ recall(query: "checkout timeout")
← Found 3 record(s):
1. [ruled_out] checkout-timeout
Already ruled out: connection pool (metrics normal under load)
2. [ruled_out] checkout-timeout
Already ruled out: API key rotation (auth logs clean)
3. [solution] checkout-timeout
Confirmed cause: Redis disconnect on deploy
Agent: Skipping the pool. Looking at Redis reconnect behavior instead.
Then dump the whole trail for a handoff or commit message:
→ trace(record_id: "<latest id>")
← Investigation chain (3 step(s), oldest → newest):
Step 1 — ruled out: connection pool
Step 2 — ruled out: API key rotation
Step 3 — solution: Redis disconnect on deploy
Why this exists
Fresh chats and tool switches wipe working context. Mid-debug reasoning — “we ruled out the pool because CPU was fine, then ruled out the API key, then found Redis” — almost never survives past the current window. The fix sometimes lands in a commit message. The dead ends get thrown away.
Existing coding-agent memory tools are good at recording decisions and facts. None give first-class structure to what was investigated and eliminated, chained as one investigation. That negative trail is the wedge: narrower than “generic AI memory,” sharper for day-to-day debugging.
You already use some memory MCP. This one is specifically for stopping agents from cheerfully re-checking the connection pool next Tuesday.
Install
Paste into Cursor (.cursor/mcp.json) or Claude Code / Claude Desktop MCP config:
{
"mcpServers": {
"elim": {
"command": "npx",
"args": ["-y", "elim-mcp"]
}
}
}
No API key. No setup. Restart your editor and it works.
On first write it creates .elim/ledger.db in the project root and auto-captures git branch + session id.
<details> <summary>VS Code / Windsurf</summary>
Same stdio / npx pattern. Example for VS Code–style MCP config:
{
"servers": {
"elim": {
"command": "npx",
"args": ["-y", "elim-mcp"]
}
}
}
Use whatever key your client expects (mcpServers vs servers) — the command / args stay the same.
</details>
The 4 tools
| Tool | Purpose | Example |
|---|---|---|
remember |
Write a ruled-out theory, solution, decision, or note | remember({ kind: "ruled_out", topic: "checkout-timeout", content: "…" }) |
recall |
Search the ledger before re-investigating | recall({ query: "checkout timeout" }) |
get_current |
Load recent records for a chat, branch, or project | get_current({ scope: { level: "branch" } }) |
trace |
Walk the follows_from chain for one investigation |
trace({ record_id: "<uuid>" }) |
Four tools on purpose. Crowded memory servers expose dozens; MCP clients pick tools less reliably as that list grows.
How it works
- Local-first SQLite at
.elim/ledger.db(project root, gitignored) with FTS5 keyword search - Auto-capture of git branch and a per-process session id — no manual scope required for the common case
follows_fromchaining links ruled-out steps into one investigation you cantrace()later- Scopes:
chat·branch(default) ·project·global
Kinds: ruled_out · solution · decision · note.
Platform support (better-sqlite3)
elim-mcp keeps native SQLite performance via better-sqlite3. Install tries a prebuilt binary first, then compiles only if needed.
| Usually zero compile | May need build tools |
|---|---|
| macOS (Intel + Apple Silicon) | Alpine / musl Linux |
| Windows 10/11 | Unusual architectures |
| Linux glibc (Ubuntu, Debian, Fedora, …) | Very new / very old Node |
| Node 18 / 20 / 22 / 24 · x64 / arm64 | Networks blocking prebuild downloads |
Most users never compile anything. If the native module can't load, elim-mcp prints actionable build-tool instructions to stderr and exits — it does not fall back to an in-memory or degraded database.
If that happens:
- macOS:
xcode-select --install - Linux (Debian/Ubuntu):
sudo apt install -y python3 make g++ build-essential - Windows: Visual Studio Build Tools (Desktop development with C++)
Then: npm rebuild better-sqlite3 and re-run npx -y elim-mcp.
Roadmap
Planned, not implemented yet:
- Phase 2 — verify identical behavior across Cursor, Windsurf, VS Code; local embeddings for semantic recall; agent skill snippet (“
recallbefore proposing a fix”) - Phase 3 — optional hosted team sync so “has anyone on the team already ruled this out?” is a real query
Contributing
Issues and PRs welcome on GitHub. Bug reports from real debugging sessions are especially useful — they double as product dogfooding.
License
MIT
Built by DevAsadYasin.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。