# Context Book

Stop re-explaining yourself to Agents. Give it the right context, right when it needs it.

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y smithery mcp add context-book/connect

# Browse available tools
npx -y smithery tool list context-book/connect

# Get full schema for a tool
npx -y smithery tool get context-book/connect book_create_or_update

# Call a tool
npx -y smithery tool call context-book/connect book_create_or_update '{}'
```

## Direct MCP Connection

Endpoint: `https://context-book.run.tools`

## Tools (8)

- `book_create_or_update` — Create a new Book or update an existing one. All fields (title, source, tags) are required. If book_id is omitted a new…
- `book_get` — Retrieve all pages of a Book in order by its book_id.
- `book_list` — List available Books. Returns metadata including book_id, title, and tags.
- `page_delete` — Permanently remove a page from a Book using its book_id and page_index. Note: Page indices will not be re-indexed after…
- `page_insert` — Insert a page of text (≤1000 words) into a Book. Each page is an atomic, semantically meaningful chunk. Maintains retri…
- `page_search` — Perform semantic search across all Books using a natural language query. Returns matching pages with their book_id and …
- `page_update` — Update a specific page within a Book using its book_id and page_index. Max content size: 1000 words.
- `readme` — Returns the ContextBook usage guide. Call this once at the start of a session if you have not already loaded the instru…

```bash
# Get full input/output schema for a tool
npx -y smithery tool get context-book/connect <tool-name>
```

## Resources

- `contextbook://instructions` — A guide for AI agents on how to use ContextBook tools and the Knowledge Hierarchy.
