Karakeep MCP-First
An unofficial Karakeep skill for AI agents that prefers MCP for normal work and keeps CLI/API fallback available for the edge cases MCP does not handle yet.
Use this skill when the user wants an agent to work with their Karakeep bookmarks: save links, search saved content, organize lists, apply tags, clean up duplicates, summarize research, or create meaningful highlights.
Video walkthrough: https://youtu.be/WQNhRyYyl64
What It Does
- Uses Karakeep MCP first for normal bookmark, list, tag, and content workflows.
- Falls back to the Karakeep CLI only for unavailable MCP features, bulk work, debugging, migrations, dumps, or raw JSON verification.
- Uses the Karakeep API directly only when MCP and CLI do not expose the needed operation.
- Keeps highlights intentional instead of spraying annotations everywhere.
- Helps turn Karakeep from a passive bookmark manager into an AI-usable research and workflow system.
Quick Setup
- Run Karakeep and create an API key.
- Configure the official Karakeep MCP server in your agent.
- Install the optional CLI fallback if you want it:
npm install -g @karakeep/cli
- Set your Karakeep environment variables:
export KARAKEEP_API_KEY="your-api-key"
export KARAKEEP_SERVER_ADDR="https://your-karakeep.example.com"
- Restart your agent session and ask it to use
karakeep-mcp-first.
Tool Priority
Use tools in this order:
- Karakeep MCP for normal work.
- Karakeep CLI for fallback, debugging, bulk import/export, migrations, dumps, or raw JSON verification.
- Karakeep API for unsupported operations, especially highlight creation.
- Browser/manual workaround only when the other options are insufficient.
If you do not use MCP, briefly explain why.
MCP Tools
Prefer MCP for:
search-bookmarks
get-bookmark
create-bookmark
update-bookmark
get-bookmark-content
get-lists
create-list
add-bookmark-to-list
remove-bookmark-from-list
attach-tag-to-bookmark
detach-tag-from-bookmark
Do not verify with CLI unless there is a clear reason.
Agent Behavior
- Search before creating when duplicate bookmarks might matter.
- Use lists for durable collections, projects, source libraries, and workflows.
- Use tags for reusable labels across lists.
- Reuse existing tags when possible and avoid near-duplicates such as
ai-tools, aitools, and ai tool.
- Prefer lowercase tags such as
ai, research, reference, todo, read-later, dev, business, video, or project-specific tags.
- Confirm before destructive deletes, broad archive operations, or large cleanup sweeps.
- Avoid printing API keys or local secrets.
Meaningful Highlights
Do not create highlights by default. Create highlights only when they preserve the exact part of the content the user cares about.
Good reasons to highlight:
- Ingredients, steps, commands, requirements, definitions, warnings, compatibility notes, pricing, conclusions, or key evidence.
- One obvious passage that is basically the reason to save the bookmark.
Highlighting rules:
- Highlight the smallest useful passage.
- Prefer 1-3 highlights unless the user asks for more.
- Add a concrete note such as
Ingredients requested by the user or Core compatibility requirement.
- Do not highlight text that is not present in the saved content.
MCP does not currently expose highlight creation. When highlighting is warranted, use MCP to retrieve the bookmark/content, then use the Karakeep API to create the highlight and explain that API fallback was used.
CLI Fallback
Use the CLI only when MCP is unavailable, incomplete, or the task needs bulk/debug/raw JSON behavior.
Useful fallback commands:
karakeep whoami --json
karakeep bookmarks search "is:fav #work" --json
karakeep bookmarks get <bookmark-id> --include-content --json
karakeep dump --help
karakeep migrate --help
karakeep wipe --help
More Detail
For search syntax, bookmark/list/tag concepts, and expanded workflow examples, read references/karakeep-details.md when needed. Do not load it unless the task needs those details.
1---2name: karakeep-mcp-first3description: Unofficial MCP-first skill for using Karakeep with AI agents. Use it to save, search, organize, tag, list, summarize, and highlight Karakeep bookmarks through MCP first, with CLI/API fallback only when needed.4---56# Karakeep MCP-First78An unofficial Karakeep skill for AI agents that prefers MCP for normal work and keeps CLI/API fallback available for the edge cases MCP does not handle yet.910Use this skill when the user wants an agent to work with their Karakeep bookmarks: save links, search saved content, organize lists, apply tags, clean up duplicates, summarize research, or create meaningful highlights.1112Video walkthrough: https://youtu.be/WQNhRyYyl641314## What It Does1516- Uses Karakeep MCP first for normal bookmark, list, tag, and content workflows.17- Falls back to the Karakeep CLI only for unavailable MCP features, bulk work, debugging, migrations, dumps, or raw JSON verification.18- Uses the Karakeep API directly only when MCP and CLI do not expose the needed operation.19- Keeps highlights intentional instead of spraying annotations everywhere.20- Helps turn Karakeep from a passive bookmark manager into an AI-usable research and workflow system.2122## Quick Setup23241. Run Karakeep and create an API key.252. Configure the official Karakeep MCP server in your agent.263. Install the optional CLI fallback if you want it:2728```bash29npm install -g @karakeep/cli30```31324. Set your Karakeep environment variables:3334```bash35export KARAKEEP_API_KEY="your-api-key"36export KARAKEEP_SERVER_ADDR="https://your-karakeep.example.com"37```38395. Restart your agent session and ask it to use `karakeep-mcp-first`.4041## Tool Priority4243Use tools in this order:44451. Karakeep MCP for normal work.462. Karakeep CLI for fallback, debugging, bulk import/export, migrations, dumps, or raw JSON verification.473. Karakeep API for unsupported operations, especially highlight creation.484. Browser/manual workaround only when the other options are insufficient.4950If you do not use MCP, briefly explain why.5152## MCP Tools5354Prefer MCP for:5556- `search-bookmarks`57- `get-bookmark`58- `create-bookmark`59- `update-bookmark`60- `get-bookmark-content`61- `get-lists`62- `create-list`63- `add-bookmark-to-list`64- `remove-bookmark-from-list`65- `attach-tag-to-bookmark`66- `detach-tag-from-bookmark`6768Do not verify with CLI unless there is a clear reason.6970## Agent Behavior7172- Search before creating when duplicate bookmarks might matter.73- Use lists for durable collections, projects, source libraries, and workflows.74- Use tags for reusable labels across lists.75- Reuse existing tags when possible and avoid near-duplicates such as `ai-tools`, `aitools`, and `ai tool`.76- Prefer lowercase tags such as `ai`, `research`, `reference`, `todo`, `read-later`, `dev`, `business`, `video`, or project-specific tags.77- Confirm before destructive deletes, broad archive operations, or large cleanup sweeps.78- Avoid printing API keys or local secrets.7980## Meaningful Highlights8182Do not create highlights by default. Create highlights only when they preserve the exact part of the content the user cares about.8384Good reasons to highlight:8586- Ingredients, steps, commands, requirements, definitions, warnings, compatibility notes, pricing, conclusions, or key evidence.87- One obvious passage that is basically the reason to save the bookmark.8889Highlighting rules:9091- Highlight the smallest useful passage.92- Prefer 1-3 highlights unless the user asks for more.93- Add a concrete note such as `Ingredients requested by the user` or `Core compatibility requirement`.94- Do not highlight text that is not present in the saved content.9596MCP does not currently expose highlight creation. When highlighting is warranted, use MCP to retrieve the bookmark/content, then use the Karakeep API to create the highlight and explain that API fallback was used.9798## CLI Fallback99100Use the CLI only when MCP is unavailable, incomplete, or the task needs bulk/debug/raw JSON behavior.101102Useful fallback commands:103104```bash105karakeep whoami --json106karakeep bookmarks search "is:fav #work" --json107karakeep bookmarks get <bookmark-id> --include-content --json108karakeep dump --help109karakeep migrate --help110karakeep wipe --help111```112113## More Detail114115For search syntax, bookmark/list/tag concepts, and expanded workflow examples, read `references/karakeep-details.md` when needed. Do not load it unless the task needs those details.