Context Book — Claude Code MCP server: features and setup
Context Book stores project notes in searchable books and lets AI agents retrieve relevant context when needed. Use it to keep recurring details available across agent conversations.
claude mcp add --transport http context-book-mcp https://context-book-mcp-production.up.railway.appWhat Context Book does
Context Book organizes saved information into books and pages. An agent can create or edit a book, fetch its pages, add or replace a page, and search across books by meaning. Updated page content is embedded again, so searches can use the revised material.
The project has a REST API and an MCP server, backed by PostgreSQL. Its eight MCP tools require a valid Bearer token and operate on the authenticated user’s data. Running the project yourself requires Go 1.26+, Node.js 22+, PostgreSQL 16+ with pgvector and pg_trgm, plus a Voyage AI API key. Without a Bearer token, the agent cannot call the tools.
What it helps with
- store project context in books and pages
- search saved notes by meaning
- retrieve every page from a selected book
- revise book details or replace page content
Example prompts for the agent
- Save the project architecture in a book and add a page about the API.
- Search the books for notes on how authorization works.
- Show me the pages in the book about the database.
How to install Context Book
Platform CLI: remote server
claude mcp add --transport http context-book-mcp https://context-book-mcp-production.up.railway.appPlatform CLI: remote server
codex mcp add context-book --url https://context-book-mcp-production.up.railway.appConfig file
{
"mcpServers": {
"context-book": {
"url": "https://context-book-mcp-production.up.railway.app"
}
}
}Config file
{
"servers": {
"context-book": {
"type": "http",
"url": "https://context-book-mcp-production.up.railway.app"
}
}
}Platform CLI: remote server
gemini mcp add -t http context-book https://context-book-mcp-production.up.railway.appStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Context Book
How do I install Context Book in Codex?
Run codex mcp add context-book --url https://context-book-mcp-production.up.railway.app. Codex can then connect to the MCP server.
What does Context Book do?
It stores information as books and pages. Agents can retrieve or edit those records and search across books using MCP tools.
What do I need to run Context Book yourself?
You need Go 1.26+, Node.js 22+, and PostgreSQL 16+ with pgvector and pg_trgm. Page embeddings use a Voyage AI API key, and MCP calls require a Bearer token.