leaf-books
Leaf — Reading Tracker Connect your Leaf reading library to any AI assistant.
What it can do
- Get Status: Call this at the very start of every conversation before any other tool. Returns current streak, milestone, active books, today's progress, and whether streak recovery is possible. If the
- List Books: List the user's books with full details, optionally filtered by reading status. Use get_status for greetings and reading context; use this when you need the full book catalogue (all status
- Search Books: Search for books by title, author, or ISBN to retrieve metadata (cover, ISBN, page count, language, year) before adding to the library
What data it sees
Do you need an account
No: the server works without sign-in
Leaf — Reading Tracker
Connect your Leaf reading library to any AI assistant. Track books, log reading sessions, manage your backlog, and stay on top of your reading streak — all through natural conversation.
What you can do
- Check your reading status — current streak, today's progress, active books, and milestone tracking
- Log reading sessions — record pages read for any book in your library
- Manage your library — add books, change their status (reading, finished, dropped, backlog), or remove them
- Set reading goals — pages per day or a target finish date, with projected completion dates
- Search books — look up books by title or ISBN with cover art and metadata
Requirements
- A Leaf account with an active Leaf Pro subscription
- Authentication via OAuth — you'll be prompted to sign in with your Leaf account on first use
Authentication
This server uses OAuth 2.0 with PKCE. Your MCP client will open a browser window to sign in — no manual token setup required.
How to connect
How to connect leaf-books to Claude
The server address to paste into Claude settings:
https://leaf-books--kaayru.run.tools
- Open Claude (claude.ai or the desktop app).
- Go to Settings → Connectors.
- Click Add custom connector.
- Paste the server address copied below into Remote MCP server URL and click Add.
- In a chat, click + → Connectors and switch the new connector on.
Custom connectors are available on Free, Pro, Max, Team and Enterprise plans (Free is limited to one). On Team and Enterprise an organization Owner adds the connector first under Organization settings → Connectors.
Authorization
After you click Add, a sign-in window for the service opens. Sign in with your own account and approve access. Claude never sees your password.
How to connect leaf-books to ChatGPT
The server address to paste into ChatGPT settings:
https://leaf-books--kaayru.run.tools
- Open ChatGPT in a browser (chatgpt.com). A Plus, Pro, Business, Enterprise or Edu plan is required.
- Turn on developer mode once: Settings → Apps → Advanced settings → Developer mode.
- Open Settings → Connectors and click Create.
- Fill in the form: Name (anything), Description (one line about what the service does), MCP server URL (copy it below).
- Under Authentication choose OAuth if the service requires sign-in, otherwise None. Click Create.
- In a new chat open + → Apps/Connectors and enable the connector.
OpenAI has renamed this section before (Connectors → Apps/Plugins). If the label differs, search settings for "developer mode". On Business/Enterprise workspaces an admin must allow custom connectors first.
Authorization
On first use ChatGPT opens the service's sign-in window. Sign in and approve access.
How to connect leaf-books to Cursor
The server address to paste into Cursor settings:
https://leaf-books--kaayru.run.tools
Fastest: click Open in Cursor below and confirm the prompt.
Manually:
- In Cursor open Settings → Cursor Settings → MCP and click Add new global MCP server.
- Paste the JSON copied below into
~/.cursor/mcp.json(per project:.cursor/mcp.jsonin the repo root). - Save the file. The server appears in the MCP list; authorize it there if asked.
Authorization
If the service needs sign-in, an authorize button appears next to the server in the MCP list.
Server tool list (9)
Raw names from tools/list. Only developers need these.
| get_status | Call this at the very start of every conversation before any other tool. Returns current streak, milestone, active books, today's progress, and whether streak recovery is possible. If the response includes streak.recoverable_missed_date, ask the user if they want to log reading for that date to recover their streak. |
| list_books | List the user's books with full details, optionally filtered by reading status. Use get_status for greetings and reading context; use this when you need the full book catalogue (all statuses, details). |
| search_books | Search for books by title, author, or ISBN to retrieve metadata (cover, ISBN, page count, language, year) before adding to the library |
| add_book | Add a new book to the user's reading list. Always call search_books first before calling this tool to retrieve accurate metadata (cover, ISBN, page count). Never call this tool without a prior search_books call for the same title. |
| log_reading_progress | Log reading progress for a book. Provide either book_id (preferred) or book_title for fuzzy lookup. Use is_yesterday: true only when the user explicitly confirms they want to backdate to yesterday to recover a missed streak day. |
| set_book_status | Change the reading status of a book. Provide either book_id (preferred) or book_title for fuzzy lookup. |
| delete_book | Remove a book from the user's library. Provide either book_id (preferred) or book_title for fuzzy lookup. Always call without confirmed first — the tool returns the matched book so you can ask the user to confirm. Once the user confirms, call again with confirmed: true and book_id to complete the deletion. |
| set_reading_goal | Set or update the reading goal for a book. Provide either book_id (preferred) or book_title for fuzzy lookup. Returns the updated book with a projected finish date (pagesPerDay goal) or required daily target (days goal). |
| get_reading_stats | Returns lifetime reading statistics: streak history, all unlocked milestones, library counts by status, and total pages read across all books. Use when the user asks about their overall reading progress, stats, or achievements — not for today's live status (use get_status for that). |