anchor-mcp
An MCP server that reads a team's interviews, tickets, and docs to build a model of the product, exposing tools to ask questions, list contradictions and gaps, and draft documents, with all answers citing their source fragments.
README
<img src="https://raw.githubusercontent.com/amitboker/anchor-mcp/main/.github/assets/banner.jpg" alt="Anchor MCP — ask your product's own history, get answers that cite their sources." width="100%">
Anchor reads a team's interviews, tickets and docs and builds a model of the product — the decisions, the contradictions, and everything nobody has answered. This is that model, exposed to your agent over the Model Context Protocol.
Six tools. All six return the fragments an answer came from, because an answer you cannot check is a guess with better formatting.
Quickstart
Runs with no account, no key and no network, against a bundled sample project. Pick your client:
Claude Code
claude mcp add anchor -- npx -y github:amitboker/anchor-mcp
Claude Desktop — claude_desktop_config.json
{
"mcpServers": {
"anchor": {
"command": "npx",
"args": ["-y", "github:amitboker/anchor-mcp"]
}
}
}
Cursor — .cursor/mcp.json
{
"mcpServers": {
"anchor": {
"command": "npx",
"args": ["-y", "github:amitboker/anchor-mcp"]
}
}
}
VS Code
code --add-mcp '{"name":"anchor","command":"npx","args":["-y","github:amitboker/anchor-mcp"]}'
Restart the client afterwards — all of them read MCP config at boot.
Not on npm yet, so the specs above install from this repository.
npxbuilds it on first run, which takes a few seconds once and is cached after that.
Tools
| Tool | What it does |
|---|---|
ask_brain |
Ask a question about the product. Returns the fragments that bear on it, each with its source. |
list_contradictions |
Statements that cannot both be true, both sides quoted, and the question that resolves each. |
list_gaps |
Questions no source answers, who can answer them, and what they block. |
list_sources |
Everything the brain has read, and how many fragments came out of each. |
get_fragment |
Open one fragment by id — full text and where it sits in its source. |
draft |
A PRD section, user stories or acceptance criteria, every line traced to a fragment. |
What comes back
$ list_contradictions
3 contradictions in checkout-redesign.
## Cart retention window (c-01)
A. The cart persists for 30 days on an unauthenticated session.
— prd-checkout-v3 · §3.1 (PRD — Checkout redesign, v3)
B. Unauthenticated carts must expire within 7 days.
— sec-review-q2 · Findings, item 4 (Security review — payments surface)
→ Does guest checkout keep a 30-day cart and require an identity, or drop
to a 7-day window and stay anonymous?
Two documents, four months apart, in two different tools. Neither author was wrong. Nobody was going to notice.
Two things it will not do
It does not answer what it has not read:
$ ask_brain "quarterly revenue in Belgium"
Nothing in checkout-redesign answers that.
And it does not draft without sources:
$ draft --kind prd_section --topic "offline sync"
Not drafting "offline sync" — nothing in checkout-redesign supports it.
Both are the product working. A tool that fills a gap it cannot see the bottom of is the failure mode this exists to remove.
Sample data, and real projects
Out of the box the server runs on a bundled fixture — a checkout-redesign
project with six sources and ten fragments. Every source, quote and person in
it is invented, and every response says so in its footer.
Set ANCHOR_API_KEY and the same six tools read a real Project Brain
instead. The output shape does not change; only the data does.
{
"mcpServers": {
"anchor": {
"command": "npx",
"args": ["-y", "github:amitboker/anchor-mcp"],
"env": { "ANCHOR_API_KEY": "${ANCHOR_API_KEY}" }
}
}
}
Reference the variable from your shell rather than pasting a key into a file you might commit.
Status: preview. The tool surface is stable enough to build against. The hosted API behind
ANCHOR_API_KEYis not open yet — until it is, every answer comes from the sample project.
Development
npm install
npm run build
npm run inspect
npm run inspect opens the MCP Inspector
against your local build, which is the fastest way to see a tool's real
output while changing it.
src/
index.ts server + tool registration
tools.ts tool bodies, callable without a transport
brain.ts the sample project
cite.ts citation formatting
One rule worth knowing before you add a tool: every response goes through
answer() in cite.ts, and its cites argument is a non-empty tuple. An
uncited answer is a type error rather than a matter of discipline — which is
the only way a rule like that survives a deadline.
Logging goes to stderr, never stdout. stdout is the JSON-RPC transport,
and one stray console.log on it corrupts the stream and takes the session
with it.
Links
- Anchor — the product
- Model Context Protocol — the spec
- Security policy · Contributing
License
MIT — see LICENSE.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。