Stop re-explaining yourself to Agents. Give it the right context, right when it needs it.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Stop re-explaining yourself to Agents. Give it the right context, right when needed.
LLMs are stateless β each conversation starts from scratch. ContextBook gives your AI tools a persistent, searchable knowledge library to draw the right context when they need it. No bloatware, no pre-loaded junk. Just the right information, at the right time.
Two Go binaries share a PostgreSQL database:
cmd/api) β the control plane: user login, OAuth 2.0, dashboard, book/page CRUDcmd/mcp) β the data plane: 8 MCP tools for AI agents, protected by Bearer tokensAll tools require a valid Bearer token and are scoped to the authenticated user.
| Tool | Description |
|---|---|
book_create_or_update | Create a Book or update its metadata |
book_list | Paginated list of Book metadata |
book_get | Retrieve all pages of a Book |
page_insert | Push an atomic page into a Book; embeds immediately |
page_update | Replace a page's content; re-embeds |
page_delete | Remove a page (indices not re-numbered) |
page_search | Semantic search across all Books |
readme | Returns the usage guide (call once per session) |
Migrations run automatically on API server startup.
For Cursor (.cursor/mcp.json):
For any MCP-compatible client, point the server URL to http://localhost:8081/mcp.
git checkout -b feature/my-feature)cd backend && go build ./cmd/api ./cmd/mcp)cd frontend && npm run build)MIT β see the LICENSE file for details.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/context-book)<a href="https://allmcps.com/mcp/context-book"><img src="https://allmcps.com/api/badge/context-book?style=directory" alt="Context Book on AllMCPs" /></a>