# Context Book

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5
- Author: aditya201551
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/aditya201551/context-book
- Updated: 2026-06-06
- HTML: https://affpapa.org/en/nevibecode/mcp/context-book

## What it 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.

## Requirements
- Remote server: `https://context-book-mcp-production.up.railway.app`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http context-book-mcp https://context-book-mcp-production.up.railway.app
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add context-book --url https://context-book-mcp-production.up.railway.app
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "context-book": {
            "url": "https://context-book-mcp-production.up.railway.app"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "context-book": {
            "type": "http",
            "url": "https://context-book-mcp-production.up.railway.app"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http context-book https://context-book-mcp-production.up.railway.app
```

## When to use it
- 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
- 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.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119231
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47577
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43902

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
