anchor-mcp
A portable MCP server that provides a shared persistent working state for AI coding agents, managing tasks, plans, notepads, memory, and project rules across different tools like Claude Code, OpenCode, and Cursor.
README
anchor-mcp
A portable agent working state server. Any AI coding agent drops anchor here.
Anchor is an MCP server that manages persistent working state for AI coding agents — tasks, plans, scratch notes, learnings, and project rules. It works with Claude Code, OpenCode, Codex CLI, Cursor, Windsurf, or any MCP-compatible agent.
Why?
Every AI coding tool has its own proprietary state directory (.claude/,
.codex/, .opencode/). None of them share state. Anchor gives every agent
a shared home base — the same active task, the same plans, the same memory —
regardless of which tool you're using.
What it stores
Per git worktree, Anchor manages:
- Active task — what you're working on right now
- Plans — execution blueprints with linked issues and learnings
- Notepads — freeform scratch notes by topic
- Memory — tagged learnings, decisions, and patterns
- Rules — project-specific agent instructions
Quick start
Install
npm install -g anchor-mcp
Configure (Claude Code)
Add to .claude/.mcp.json:
{
"mcpServers": {
"anchor": {
"command": "anchor-mcp"
}
}
}
Configure (OpenCode)
Add to ~/.config/opencode/opencode.json:
{
"mcp": {
"anchor": {
"type": "local",
"command": ["anchor-mcp"],
"enabled": true,
"environment": {}
}
}
}
Configure (Codex CLI)
Add to .codex/config.toml:
[mcp_servers.anchor]
command = "anchor-mcp"
Configure (Cursor / Windsurf)
Add to your MCP server settings:
{
"anchor": {
"command": "anchor-mcp"
}
}
Tools
Anchor provides 6 grouped tools. Each tool accepts an action parameter:
| Tool | Actions | Description |
|---|---|---|
task_manager |
get_active, set_active, complete, list |
Manage the active task and task list |
plan_manager |
get, save, list |
Manage execution plans with issues and learnings |
notepad_manager |
get, save, list |
Manage freeform scratch notes by topic |
memory_manager |
add, search, list |
Store and retrieve learnings, decisions, patterns |
rules_manager |
get, save |
Manage project-specific agent instructions |
promote_learning |
(single action) | Promote plan learnings into project rules |
Usage examples
Set an active task:
task_manager(action="set_active", description="Implement user authentication")
Save a plan:
plan_manager(action="save", name="auth-flow", content="# Auth Flow Plan\n\n1. Add login endpoint\n2. Add JWT middleware")
Add a memory:
memory_manager(action="add", content="Always use httpOnly cookies for JWT", tags=["auth", "security"])
Search memories:
memory_manager(action="search", query="authentication")
State directory
Anchor stores state in .anchor/ at your project root:
.anchor/
├── state.json # Active task + task list (gitignored)
├── plans/
│ └── {plan-name}/
│ ├── plan.md
│ ├── issues.md
│ └── learnings.md
├── notepads/
│ └── {topic}.md
├── memory.jsonl
└── rules.md
Plans, notepads, rules, and memory are designed to be committed to git.
state.json is machine-specific and should be gitignored.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.