MCP · CLI · REST API
Your library, inside your agent
Claude Code, Codex, Claude Desktop, and Cursor can search your saves, read the full source, and save new links for you. Your own code gets the same three abilities through the REST API.
Connecting a computer requires ExaMark 1.1 or later on iPhone.
1. Connect in one command
npx examark-cli setup- The CLI shows an 8-character code.
- On your iPhone, open Settings → Connect a computer and enter it.
- ExaMark is added to every agent it finds. Restart the agent and ask, “Search my ExaMark saves for onboarding ideas.”
2. What agents can do
| MCP tool | CLI | REST | |
|---|---|---|---|
| Search | search_archive | examark search "…" | GET /v1/search |
| Read the source | get_archive | examark get ID | GET /v1/saves/{id} |
| Recent saves | list_recent | examark recent | GET /v1/saves |
| Save a link or note | save_to_archive | examark save URL | POST /v1/saves |
To use the examark command in your terminal, install it once: npm install -g examark-cli
Search matches keywords and meaning across original text, transcripts, video analysis, and summaries, then returns the matched passage with its source URL. A new save is collected, transcribed, analyzed, and indexed in the background, usually within a minute.
3. Build with the API
Full reference: REST API docs. Every request sends Authorization: Bearer <key>. To get a key, open Settings → Connect a computer → Use a key instead, and set EXAMARK_API_KEY.
curl -H "Authorization: Bearer $EXAMARK_API_KEY" \
"https://examark-api-emgdzdf56a-uc.a.run.app/v1/search?q=onboarding"
curl -X POST -H "Authorization: Bearer $EXAMARK_API_KEY" \
-H "Content-Type: application/json" -d '{"url":"https://example.com/post"}' \
https://examark-api-emgdzdf56a-uc.a.run.app/v1/savesAccess and safety
- Keys can search, read, and add saves. They cannot edit or delete anything.
- New saves count toward your monthly plan. Saving the same link again is free.
- Keys expire after 90 days. Settings → Disconnect all computers revokes every key at once.
- The CLI stores its key in
~/.config/examarkwith owner-only permissions. Keep keys out of chats and source code. - Saved pages are untrusted source material. Agents are told not to follow instructions found inside them.