book-notes-mcp
Syncs notes from Google Keep, allowing import and update of reading notes captured via Keep into the MCP knowledge base.
Stores processed notes, metadata, and embeddings, and enables semantic search and vector retrieval across the reading history.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@book-notes-mcpsearch notes about habit formation"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
book-notes-mcp
book-notes-mcp is a personal reading system for turning messy capture into usable notes.
The input can be rough: something typed quickly on your phone, an OCR scrape from a page, a voice transcript, or a note pulled in from Google Keep. The app processes that raw text once, stores the result in Supabase, generates embeddings, and makes it available through semantic search, RAG-style Q&A, and a small web interface.
It is built for one practical problem: reading produces a lot of fragments, but the value only shows up later when those fragments are easy to retrieve and connect.
What the project does
Processes raw notes into a structured shape:
book_title,summary,ideas,tags,actionsStores both the raw capture and the processed note
Builds embeddings for retrieval across your reading history
Exposes the knowledge base through MCP tools, a web API, and a browser UI
Syncs notes from Google Keep using
gkeepapi
Related MCP server: vault-rag-mcp
Core tools
Tool | Purpose |
| Turn one raw note into a stored note with metadata and embeddings |
| Semantic search across the library |
| Answer a question using retrieved notes as context |
| Fetch one note by id |
| Browse recent notes, optionally by tag |
| Find related notes based on shared concepts |
| Poll the configured Google Keep label and import or update notes |
How it is meant to be used
Capture notes wherever it is easiest. Google Keep is the intended inbox for phone capture because it handles typing, OCR, and voice well.
Let this project do the organizing. Raw text is processed into something cleaner and easier to search.
Retrieve later by concept, not by memory of exact wording. That is what the embeddings and Q&A layer are for.
Stack
FastAPI web app for the browser UI and HTTP endpoints
Supabase for note storage and vector search
LiteLLM for model routing
MCP server for Claude Desktop / Cursor workflows
gkeepapifor scheduled Google Keep sync
Setup
1. Clone and install
git clone <your-repo>
cd book-notes-mcp
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"2. Create .env
At minimum:
GEMINI_API_KEY=<your key>
SUPABASE_URL=<your project url>
SUPABASE_SERVICE_KEY=<your service role key>Optional model configuration:
LLM_MODEL=gemini/gemini-2.5-flash
EMBEDDING_MODEL=gemini/text-embedding-004
VECTOR_DIM=768Optional Keep sync configuration:
GOOGLE_EMAIL=<your google account email>
GOOGLE_APP_PASSWORD=<16-character app password>
KEEP_LABEL=book-note
KEEP_TOKEN_FILE=.keep_token
KEEP_SYNC_INTERVAL_MINUTES=53. Set up Supabase
Run schema.sql in the Supabase SQL editor.
Note on vector size:
Gemini
text-embedding-004: usevector(768)OpenAI
text-embedding-3-small: usevector(1536)If you change embedding dimensions, update both the schema and
VECTOR_DIM
4. Connect the MCP server
Add this to Claude Desktop:
{
"mcpServers": {
"book-notes": {
"command": "/path/to/book-notes-mcp/.venv/bin/python",
"args": ["/path/to/book-notes-mcp/book_server/server.py"],
"env": {
"PYTHONPATH": "/path/to/book-notes-mcp"
}
}
}
}Running the app
Start the web app locally:
python web/app.pyOpen:
http://localhost:8080on the same machinehttp://<your-local-ip>:8080from your phone on the same network
Google Keep sync
The intended setup is a dedicated Google account used only for capture. The server polls that account through gkeepapi and imports notes matching the configured Keep label.
Authentication
Turn on 2-step verification for the Google account
Create a Google App Password
Put
GOOGLE_EMAILandGOOGLE_APP_PASSWORDin.envOptionally set
KEEP_LABELif you do not want to use the defaultbook-note
The first successful sync caches a Keep token in KEEP_TOKEN_FILE.
Run one sync pass
book-notes-keep-syncThe sync behavior is:
new Keep note with the configured label -> create a new note in the library
changed Keep note -> update the existing mapped note and refresh its embedding
unchanged Keep note -> skip
deleted or missing Keep note -> no automatic deletion in the app
Schedule it
Run the sync command every 5 minutes on the deployed server.
Example cron entry:
*/5 * * * * cd /path/to/book-notes-mcp && /path/to/.venv/bin/book-notes-keep-sync >> keep-sync.log 2>&1API surface
Web endpoints in web/app.py:
POST /api/processPOST /api/askPOST /api/searchGET /api/notesGET /api/notes/{id}GET /api/notes/{id}/linkPOST /api/webhook/keep
Development
Run tests:
pytest tests/ -vThe current test suite focuses on processing logic and Keep sync behavior with mocked external services.
Project layout
book-notes-mcp/
├── agent/ RAG query logic
├── book_server/ MCP server, Keep sync, ingestion services
├── embeddings/ embedding generation and storage helpers
├── processing/ note extraction and summarization
├── storage/ Supabase and filesystem persistence
├── tests/ unit tests
├── web/ FastAPI app and frontend
├── config.py environment-driven config
├── pyproject.toml package metadata and scripts
└── schema.sql database schemaWhat is intentionally not here yet
Delete propagation from Keep into the library
Book-level rollups
Graph-style visualization
A polished mobile capture app of its own
That is deliberate. The project is currently optimized around capture, storage, and retrieval rather than around building a full reading platform.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ayush1298/book-notes-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server