Purpose
keep-mcp is an MCP server for Google Keep that enables AI clients supporting the Model Context Protocol to operate Google Keep notes through tool calls. It is based on gkeepapi and connects to Google Keep through an unofficial private API.
Main Capabilities
Query and Read Tools
- find: search notes (case-insensitive by default), with optional filters including labels, color, whether pinned, whether archived, whether in the trash, creation/update date ranges (ISO 8601, UTC), and a limit on the number of results
- get_note: get a single note by ID
Create and Update Tools
- create_note: create a new note with a title and body (automatically adds the keep-mcp label)
- create_list: create a list note
- update_note: update a note's title and body
- add_list_item: add an item to a list note
- update_list_item: update a list item's text and checked state
- delete_list_item: delete a list item
Note State Tools
- set_note_color: set a note's color (valid values: DEFAULT, RED, ORANGE, YELLOW, GREEN, TEAL, BLUE, CERULEAN, PURPLE, PINK, BROWN, GRAY)
- pin_note: pin or unpin
- archive_note: archive or unarchive
- trash_note: move to trash
- restore_note: restore a deleted/trashed note
- delete_note: mark a note as deleted
Label, Collaborator, and Media Tools
- list_labels / create_label / delete_label: list, create, and delete labels
- add_label_to_note / remove_label_from_note: add or remove labels for a note
- list_note_collaborators / add_note_collaborator / remove_note_collaborator: list, add, remove note collaborator emails
- list_note_media: list a note's media attachments (including media links)
- download_media: download note media (images, drawings, audio) to a local directory through an authenticated session (raw media links return 403 to ordinary HTTP clients)
By default, all destructive and modifying operations are only allowed to act on notes created by this MCP server (that is, notes with the keep-mcp label). Set UNSAFE_MODE to true to bypass this restriction.
Usage
Add the MCP server to your MCP server list, and add credentials:
- GOOGLE_EMAIL: your Google account email address
- GOOGLE_MASTER_TOKEN: your Google account master token
Obtaining a Google master token keep-mcp uses gkeepapi to connect to Google Keep through an unofficial private API. The Google master token has full access to the account, so keep it safe as you would a password, and never commit or share it. Use the browser-assisted token exchange flow documented in gpsoauth, with the option of:
- Local Python: follow gpsoauth's alternative flow
- Docker: follow gkeepapi's "Obtaining a Master Token" instructions to run the same exchange flow without a local Python environment Both methods require the browser oauth_token described in the gpsoauth documentation. Older instructions may require using a Google password or app-specific password and calling perform_master_login(), which is unreliable and may return BadAuthentication; use the browser-assisted flow above instead.
Local development (uv + make) If you prefer a JS-style workflow (npm i, npm start), you can use the project's included Makefile. When running real-account smoke tests with credentials, you can also use the equivalent direct uv commands (without make).
Testing The project includes a lightweight unit test suite under tests/, covering: note and list object serialization structures (including labels, collaborators, media, and checklist items); modification safety behavior (the keep-mcp label requirement and the UNSAFE_MODE=true override); the behavior of MCP tools in src/server/cli.py under mocked Keep client objects (tool happy paths and key error paths). For real Keep account smoke tests: a basic lifecycle smoke test (including archive/unarchive) can be run on a dedicated test account. This script is for manual verification and is not run in CI.
GitHub Actions Run on every pull request: lint (ruff check .); unit tests with coverage (pytest -q --cov=src/server --cov-report=term-missing --cov-fail-under=70); bytecode check (python -m compileall src).
Automatic release after merging to main (GitHub Actions) The repository includes a release workflow in .github/workflows/release.yml, which runs on every push to main (including merged PRs): check commits since the last release tag (vX.Y.Z); calculate the next semantic version based on Conventional Commit types; skip release when there are no releasable commit types; run lint and unit tests; publish to PyPI; create a GitHub release/tag v<calculated-version> and generate release notes.
Version bump rules:
- major: commit subject contains ! (such as feat!: or fix(api)!:), or commit body contains BREAKING CHANGE
- patch: fix:, perf:, revert:
- no release: docs:, chore:, ci:, test:, refactor: (unless the commit is marked as a breaking change)
Required repository secret: PYPI_API_TOKEN, a PyPI API token (recommended scope: this project only).
Manual release to PyPI: update the version in pyproject.toml; build the package: pipx run build; upload to PyPI: pipx run twine upload --repository pypi dist/ *.
Run locally with an MCP client When you want the client to run this server from a local checkout instead of from PyPI, create a local virtualenv and install it in editable mode: add the server to the MCP client configuration.
- config.toml clients (Codex, Goose, etc.)
- JSON mcpServers clients (Claude Desktop, Cursor, Cline, etc.) Alternative (without using make): run make install once before starting from the MCP client. Just provide the repository root path (no absolute /.venv/bin/python path is needed). Make sure make and uv are in PATH. Restart the MCP client after updating the configuration file. UNSAFE_MODE is optional; keep it as "false" unless you explicitly want to modify notes other than keep-mcp notes.
When to use
Suitable for users who want to query, create, and manage Google Keep notes through an AI client that supports MCP, including scenarios such as note search, checklist management, tag and collaborator maintenance, and media attachment downloads. It can also be used for local development and testing of this MCP server.
Limitations
- Based on an unofficial private API; the master token has full account access and must be kept like a password
- By default, only notes created by this server may be modified; UNSAFE_MODE=true can bypass this restriction
- The legacy perform_master_login() flow using a Google password/app-specific password is unreliable and may return BadAuthentication; use the browser-assisted flow instead
- If you encounter "DeviceManagementRequiredOrSyncDisabled", you need to disable mobile management (Unmanaged) in https://admin.google.com/ac/devices/settings/general - Original media links return 403 to ordinary HTTP clients and must be downloaded through an authenticated session
Other product details (such as fees, pricing, platform support, effectiveness, etc.) are not yet provided.