Give your AI 17 tools over your notes

onekb-mcp connects Claude Code, Cursor, and any MCP-capable AI terminal to your OneKB library — the same powers you have in the web editor, over stdio.

Read & search

list_docsread_docsearch_docsfind_docsread_versions

Write & organize

create_docupdate_docappend_to_docrename_docmove_doccreate_folder

Safety & recovery

delete_docrestore_docdelete_folderrestore_version

Audit & insight

list_ai_writeslist_unresolved_entities

Safe by construction

  • · Every AI write creates a version — roll back anything in one click.
  • · An audit ledger records every AI tool call: what changed, when, by which tool.
  • · Deletes go to trash, never straight to gone. API keys are scoped and revocable.
  • · Optimistic locking stops AI and human edits from silently overwriting each other.

Set up in two minutes

  1. Create an API key in OneKB Settings (scoped to read, write, or both).
  2. Add the server to your MCP config:

Claude Code / Cursor config

{
  "mcpServers": {
    "onekb": {
      "command": "npx",
      "args": ["-y", "onekb-mcp"],
      "env": { "ONEKB_API_KEY": "okb_..." }
    }
  }
}

That's it — ask your AI to create today's journal, reorganize folders, or search your notes.