# ainote MCP server

Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.

## Links
- Registry page: https://www.getdrio.com/mcp/io-github-seunghan91-ainote
- Repository: https://github.com/seunghan91/ainote
- Website: https://docs.ainote.dev

## Install
- Command: `npx -y @ainote/mcp`
- Endpoint: https://api.ainote.dev/api/mcp
- Auth: Auth required by registry metadata

## Setup notes
- Remote header: Authorization (required; secret)
- Package: Npm @ainote/mcp v1.3.2
- Environment variable: AINOTE_API_KEY (required; secret)
- The upstream registry signals required auth or secrets.
- Remote endpoint: https://api.ainote.dev/api/mcp
- Header: Authorization

## Tools
- delete_task - Soft-delete a task by ID. Destructive but reversible within 30 days (TaskCleanupJob purges trash daily at 2am KST). Returns 404 if the task does not exist or is not owned by the authenticated user. Endpoint: https://api.ainote.dev/api/mcp
- list_papers - List notes/papers from AI Note. Supports keyword search across title and content, category filtering, pagination, and sorting. Returns id/title/content_preview/category_id/created_at. Use this when the user asks 'find my note about X', 'what did I write on Y', or wants to search their knowledge base. Endpoint: https://api.ainote.dev/api/mcp
- project_read - List the authenticated user's projects (L2 intent layer), or fetch one by id. Each entry includes riskiest_assumption — the single highest-priority unverified assumption (or, if all are verified, the highest-criticality one). Endpoint: https://api.ainote.dev/api/mcp
- project_write - Create or update a project (L2 intent layer). Omit `id` to create, pass it to update. There is no delete tool — use status: 'archived' to retire a project. Endpoint: https://api.ainote.dev/api/mcp
- assumption_write - Create or update an assumption under a project (L2 intent layer). Omit `id` to create, pass it to update. There is no delete tool.

🔴 `verdict` is REJECTED with an error if passed — verdict is confirmed only through a human judgment decision (see judgment_submit). This tool can only shape the assumption itself: what is being assumed, how critical it is, and what evidence would settle it.
 Endpoint: https://api.ainote.dev/api/mcp
- judgment_submit - Request a human judgment (L3 layer) by attaching evidence — approval, evidence, or verdict. This is the ONLY door an agent has into the judgment queue.

🔴 `decision` is REJECTED with an error if passed — judgments are always created with decision='pending'. Only a human decides them (from the /command queue). Use judgment_list afterwards to check whether this judgment has since been decided.

risk_tier controls urgency: 1=destructive (blocks execution until decided), 2=reversible (may auto-proceed after a wait window), 3=informational (auto-expires after 24h).
 Endpoint: https://api.ainote.dev/api/mcp
- judgment_list - List the authenticated user's own judgments (L3 layer) — use this to check your own blocking status (risk_tier 1 pending = execution blocked). Default order matches the /command queue: risk_tier ascending, then arrival order. Endpoint: https://api.ainote.dev/api/mcp
- delete_dev_doc - Soft-delete a dev document by title or UUID. Reversible from trash. Pass `category` when multiple docs share the same title across subcategories (memory/claude/cursor/env/docs). Endpoint: https://api.ainote.dev/api/mcp
- get_setup_guide - Get instructions for setting up AI Note MCP in Claude Desktop, Cursor, or other MCP clients. No authentication required. Endpoint: https://api.ainote.dev/api/mcp
- vault_create - Create a new private vault as a GitHub repository under the user's account. Requires the user to have completed the GitHub App install flow first. Endpoint: https://api.ainote.dev/api/mcp
- vault_sync - Wrapper around vault file sync. action=list|pull|push to work against the primary vault. list/pull are paginated — narrow with `path`/`since` and follow `next_cursor` instead of pulling the whole vault. For push: WAF-bypass via `content_b64` or `content: '__B64__:...'` prefix (mirrors sync_push). Endpoint: https://api.ainote.dev/api/mcp
- sync_push - Push a markdown file into the primary vault. Optional CAS via base_sha to detect concurrent multi-PC writes (Layer 3 of multi-PC sync plan). WAF-bypass tip: large bodies (~10KB+) that get false-positive blocked at Cloudflare can be sent via `content_b64` (base64-encoded) OR `content` prefixed with `__B64__:` instead. When the push CREATES a new .md file, the response may carry `dedup_candidates` — existing memory files that look similar (keyword + title similarity, no LLM). It is an advisory, not a rejection: YOU decide to merge into one of them (re-push that path), drop this write as a duplicate (skip), or keep it as a new memory (store). Endpoint: https://api.ainote.dev/api/mcp
- sync_push_batch - Push MANY files into the primary vault in ONE call. Use this instead of looping sync_push whenever you have more than a couple of changed paths — the cost of sync_push is round trips, not bytes. Per-item semantics are identical to sync_push (Layer 3 base_sha CAS, superseded contract, content_b64 WAF fallback). Partial success is normal and returns HTTP 200: read `results[]` and match entries by `path`, NOT by position. A conflict result always carries `remote_sha` + `conflict_reason` so you can go straight to sync_merge. Request-level failures (duplicate paths in one batch, idempotency key reused with a different payload, >200 items, >4MB) return 4xx and apply NOTHING. Each item MUST carry `content_sha` (SHA1 hex of the decoded body, same algorithm as git_sha) — it powers both the integrity check and the retry-safe `skipped_identical` result. Newly created .md items may carry `dedup_candidates` (same merge/skip/store advisory as sync_push); a batch creating more than 10 new files skips the check entirely and reports `dedup_skipped: "bulk"`. Endpoint: https://api.ainote.dev/api/mcp
- sync_delete - Delete a file from the primary vault. Optional CAS via base_sha to detect concurrent multi-PC writes. Protected paths (global/memory/, global/skills/, global/planning/, global/claude-config/, handoffs/) require base_sha or explicit force:true (audited). Idempotent: deleting a non-existent path returns success with deleted:false. Endpoint: https://api.ainote.dev/api/mcp
- sync_audit_layer5 - Record the result of a client-side Layer 5 codex review (sync.py merge gate) as a vault_events row. Body of the review is NOT stored — only an HMAC digest of the summary so operators can correlate without exposing review content. Opt-in: server skips writes (still returns success) unless ENV['AINOTE_LAYER5_AUDIT']='on' AND a versioned HMAC secret is configured. Used by the sync.py SessionStart hook + merge command to surface 'why was this blocked?' across multi-PC sessions. Endpoint: https://api.ainote.dev/api/mcp
- handoff_save - Save a session handoff note for cross-device / cross-session continuation. Stored at handoffs/{project}-{topic}-{YYYY-MM-DD}.txt in the user's primary vault. Use the optional `time` param (HHMM, KST) to disambiguate multiple handoffs saved on the same day — it is appended to the topic slug (e.g. topic='phase-d', time='1555' → handoffs/{project}-phase-d-1555-{date}.txt). Endpoint: https://api.ainote.dev/api/mcp
- graph_soft_delete - Soft-delete an env_sync graph node (sets deleted_at; .live scope hides it from reads). Idempotent — re-deleting a deleted node is a no-op success. Endpoint: https://api.ainote.dev/api/mcp
- env_sync.secret_push - Push a new client-encrypted secret. Ciphertext only — server never sees plaintext. Recipients must include the pushing device's own pubkey. Endpoint: https://api.ainote.dev/api/mcp
- env_sync.secret_pull - Pull an encrypted secret blob. Response is ciphertext_b64 only — server never sees and never returns plaintext. Endpoint: https://api.ainote.dev/api/mcp
- env_sync.secret_rotate - Rotate a secret: soft-delete the old node, create a new live node with the same alias and the new ciphertext+recipients. 7-day grace before hard delete of old ciphertext bytes. Endpoint: https://api.ainote.dev/api/mcp
- env_sync_txn_push - Ingest a batched envelope of client-recorded env_sync mutations. HLC-skew gated, partial-success on conflict. Endpoint: https://api.ainote.dev/api/mcp
- env_sync_txn_rollback - Inverse-apply a prior env_sync transaction. Safety gates: ownership, idempotency, descendant-conflict (force opt-out). Endpoint: https://api.ainote.dev/api/mcp
- tasks_read - Read tasks and task categories. action: tasks | categories (consolidated surface — same handlers as the legacy tools) Endpoint: https://api.ainote.dev/api/mcp
- task_write - Create or update a task (non-destructive). action: create | update. Deletion is a separate tool (delete_task). (consolidated surface — same handlers as the legacy tools) Required per action — create: content | update: id. Endpoint: https://api.ainote.dev/api/mcp
- dev_docs_read - Read dev docs. action: get | list | categories | pull (consolidated surface — same handlers as the legacy tools) Endpoint: https://api.ainote.dev/api/mcp
- dev_doc_write - Create or update a dev doc (non-destructive). action: create | update. Deletion is a separate tool (delete_dev_doc). (consolidated surface — same handlers as the legacy tools) Required per action — create: title, content | update: content. Endpoint: https://api.ainote.dev/api/mcp
- sync_read - Read-only vault sync operations. action: list | pull | diff | merge | conflicts. Writes (push/delete) are separate tools — they carry CAS semantics. (consolidated surface — same handlers as the legacy tools) Required per action — diff: path | merge: path, base_text, local_text. Endpoint: https://api.ainote.dev/api/mcp
- vault_read - Read vault metadata. action: list | clone | status (consolidated surface — same handlers as the legacy tools) Required per action — clone: name. Endpoint: https://api.ainote.dev/api/mcp
- env_sync_read - Read env-sync state. action: devices | drift | status | txn_pull. Secret reads are a separate tool (env_sync.secret_pull). (consolidated surface — same handlers as the legacy tools) Endpoint: https://api.ainote.dev/api/mcp
- env_sync_write - Non-destructive env-sync writes. action: enroll | request_share | heartbeat. Secret push/rotate are separate tools. (consolidated surface — same handlers as the legacy tools) Required per action — enroll: alias, age_pubkey, enrollment_token | request_share: target_device_id, secret_shares, device_id | heartbeat: device_id, installed_skills_hash, installed_hooks_hash. Endpoint: https://api.ainote.dev/api/mcp
- graph_read - Read knowledge-graph nodes. action: get | list (consolidated surface — same handlers as the legacy tools) Endpoint: https://api.ainote.dev/api/mcp
- graph_write - Add or update a graph entity (non-destructive). action: add | update. Deletion is a separate tool (graph_soft_delete). (consolidated surface — same handlers as the legacy tools) Required per action — add: node_type, alias, payload, device_id | update: node_id, device_id, field_updates. Endpoint: https://api.ainote.dev/api/mcp
- handoff_read - Read session handoffs. action: get | list (consolidated surface — same handlers as the legacy tools) Required per action — get: project, topic. Endpoint: https://api.ainote.dev/api/mcp
- memory_read - Read agent memory. action: get | search (consolidated surface — same handlers as the legacy tools) Required per action — get: source | search: query. Endpoint: https://api.ainote.dev/api/mcp
- auth_key - Obtain an MCP key. action: login | signup (consolidated surface — same handlers as the legacy tools) Required per action — login: email, password | signup: email, password. Endpoint: https://api.ainote.dev/api/mcp

## Resources
- ainote://tasks/demo - Unauthenticated demo data — sign up via signup_and_get_key to see real tasks at ainote://tasks. MIME type: application/json
- ainote://categories/demo - Unauthenticated demo data — sign up via signup_and_get_key to see real categories at ainote://categories. MIME type: application/json

## Prompts
Not captured

## Metadata
- Owner: io.github.seunghan91
- Version: 1.3.2
- Runtime: Npm
- Transports: STDIO, HTTP
- License: Not captured
- Language: Not captured
- Stars: Not captured
- Updated: May 14, 2026
- Source: https://registry.modelcontextprotocol.io
