Graph
An MCP server that gives your agent a persistent project brain: vision, architecture decisions, conventions, roadmaps, and automatic session handoff.
README
Graph
Your agent forgets everything between sessions. Your architecture decisions, naming conventions, business rules, project vision — gone. Every new chat starts from zero. You re-explain the same context, re-make the same decisions, and watch the agent drift from patterns you already established.
Graph fixes that. It's an MCP server that gives your agent a persistent project brain: vision and goals, architecture decisions, conventions, structured roadmaps, and automatic handoff between sessions.
Install
npx -y @graph-tl/graph init
Restart Claude Code. That's it.
See it work
Tell your agent:
"Use graph to build out the project vision, architecture, and a roadmap for my app."
The agent will:
- Interview you about goals, business rules, principles, and constraints
- Document everything as persistent knowledge — architecture decisions, naming conventions, specs
- Build a roadmap with prioritized, dependency-aware tasks across milestones
- Start executing — claiming tasks, recording evidence, unblocking the next piece
Next session, the agent calls graph_onboard and instantly has full context — your vision, architecture, naming conventions, and what was done yesterday. One call, zero re-explanation.
Before and after
Without Graph — every session starts cold:
You: "Continue working on the project"
Agent: "I don't see any prior context. What's the architecture?
What conventions are you using? What's been built?"
You: *spends 5 minutes re-explaining everything*
With Graph — the agent calls graph_onboard and knows immediately:
Agent: "I see the project. Vision: multi-tenant SaaS platform.
12 of 30 tasks done. Auth and data layer shipped last week.
Conventions: kebab-case files, Zod validation at boundaries.
3 tasks are actionable — I'll pick up the billing integration,
it's highest priority and its dependencies are resolved."
One call. Full context. Zero re-explanation.
What you get
- Persistent project brain — vision, goals, architecture, business rules, conventions — all survive between sessions
- Structured roadmaps — dependency-aware task trees with priorities, milestones, and automatic unblocking
- Knowledge that sticks — decisions, specs, nomenclature recorded once, auto-surfaced to every future agent
- Evidence trail — every task records commits, decisions, and file changes so nothing is lost
- Context-aware responses — compressed, structured output designed to inform without flooding your context window
- Local and private — single SQLite file on your machine, no cloud, no telemetry
How it works
graph_onboard → "What's the state of this project?"
graph_next → "What should I work on?" (claims it)
... agent does the work ...
graph_update → "Done. Here's what I did." (resolves with evidence)
→ engine returns newly unblocked tasks
graph_next → "What's next?"
Planning
The agent calls graph_plan to build a dependency tree. This isn't a flat todo list — it's a structured breakdown with blocking relationships:
SaaS Platform
├── Foundation
│ ├── Document architecture decisions
│ ├── Define naming conventions & code principles
│ └── Write API spec
├── Core
│ ├── Auth & tenancy (depends on: architecture, API spec)
│ ├── Data layer (depends on: architecture)
│ └── Billing integration (depends on: Auth & tenancy)
├── Features
│ ├── User management (depends on: Auth & tenancy)
│ └── Dashboard (depends on: Data layer, User management)
└── Release
├── E2E tests (depends on: all Features)
└── Deploy pipeline (depends on: E2E tests)
The engine knows: architecture docs, naming conventions, and API spec are actionable now. Everything else is blocked. When a task resolves, dependents unblock automatically.
Knowledge
As the agent works, it records decisions and conventions as persistent knowledge — not buried in chat history, but stored and auto-surfaced in future sessions:
knowledge: "architecture" → "Event-driven, PostgreSQL, Redis for cache"
knowledge: "convention" → "kebab-case files, Zod at boundaries, no default exports"
knowledge: "decision" → "Stripe for billing — evaluated Paddle, chose Stripe for metered billing support"
knowledge: "api-contract" → "REST, versioned /v1/, snake_case JSON fields"
Convention and architecture entries are automatically included in relevant tool responses. The agent follows your patterns without being told every session.
Handoff
Session 1 ends after completing 5 tasks. Session 2 starts:
→ graph_onboard("my-project")
← goal: "SaaS Platform"
summary: 5 of 14 resolved, 3 actionable
recently_resolved: Architecture, Conventions, API spec, Auth, Data layer
knowledge: 6 entries (architecture, conventions, 2 decisions, API contract, env setup)
actionable: Billing integration (priority 9), User management (priority 8), Dashboard (priority 7)
continuity_confidence: 92/100
The new agent knows the vision, the architecture, the conventions, what was built, and what to do next. The continuity confidence score tells it how much to trust the existing state.
Tools
Graph exposes 22 MCP tools. Here are the ones agents use most:
| Tool | What it does |
|---|---|
graph_onboard |
Full project context in one call — summary, tree, evidence, knowledge, actionable tasks |
graph_plan |
Batch-create a task tree with dependencies. Atomic |
graph_next |
Get the highest-priority actionable task. Optional claim |
graph_update |
Resolve tasks with evidence. Returns newly unblocked tasks |
graph_resolve |
One-call resolve — auto-collects git commits and modified files |
graph_status |
Formatted project dashboard with progress and integrity checks |
graph_roadmap |
Release-pipeline view grouped by horizon (now / next / later / paused) |
<details> <summary>All tools</summary>
Core workflow: graph_open, graph_plan, graph_next, graph_update, graph_resolve
Navigation: graph_onboard, graph_context, graph_tree, graph_query, graph_history
Structure: graph_connect (dependency edges with cycle detection), graph_restructure (move, merge, drop, delete tasks), graph_roadmap
Quality: graph_status, graph_retro (structured retrospectives with drift detection), graph_agent_config
Knowledge: graph_knowledge_write, graph_knowledge_write_batch, graph_knowledge_read, graph_knowledge_search, graph_knowledge_delete, graph_knowledge_audit
</details>
Configuration
npx -y @graph-tl/graph init # Auto-configures everything
Or add manually to .mcp.json:
{
"mcpServers": {
"graph": {
"command": "npx",
"args": ["-y", "@graph-tl/graph@latest"],
"env": {
"GRAPH_AGENT": "claude-code"
}
}
}
}
<details> <summary>Environment variables</summary>
| Variable | Default | Description |
|---|---|---|
GRAPH_AGENT |
default-agent |
Agent identity for audit trail |
GRAPH_DB |
~/.graph/db/<hash>/graph.db |
Database path (per-project, outside your repo) |
GRAPH_CLAIM_TTL |
60 |
Soft claim expiry in minutes |
</details>
<details> <summary>CLI commands</summary>
graph init # Set up graph in the current project
graph update # Clear npx cache and re-run init to get the latest version
graph ship # Build, test, bump, commit, push, and create GitHub release
graph doctor # Run integrity checks on all projects
graph backup # List, create, or restore database backups
graph ui # Start the web UI
graph --version # Print version
graph --help # Print usage summary
</details>
Updating
Graph checks npm for newer versions on startup. To update:
npx @graph-tl/graph update
Data & security
Your data stays on your machine.
- Single SQLite file in
~/.graph/db/— outside your repo, nothing to gitignore - Local-first — stdio MCP server, no telemetry, no cloud sync
- No secrets stored — task summaries, evidence notes, and file path references only
- You own your data — back it up, delete it, move it between machines
License
MIT — free and open source.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。