NestMarks · Amanix Labs

API and AI apps

Read and save your bookmarks from your own scripts, or let an AI app like Claude or Cursor search your library for you. Part of NestMarks Pro.

1. Create a token

  1. Open Settings in NestMarks and find API and AI apps.
  2. Give the token a name you will recognise later, like "Claude on my laptop".
  3. Pick what it may do. Read can look but not change anything. Read and write can also save and edit bookmarks.
  4. Copy the token. It starts with nmx_pat_ and is shown only once. If you lose it, revoke it and make a new one.

A token opens your library, so keep it private like a password. Revoke any token you no longer use from the same Settings section. Tokens can only reach your bookmarks, collections, tags, notes and highlights: never your account, password, billing or other tokens.

2. Use it

Send the token in the Authorization header of every request to https://api.nestmarks.com. Requests and answers are JSON.

curl https://api.nestmarks.com/bookmarks?limit=10 \
  -H "Authorization: Bearer nmx_pat_your_token"
curl -X POST https://api.nestmarks.com/bookmarks \
  -H "Authorization: Bearer nmx_pat_your_token" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/article", "note": "Read before Friday"}'

What you can reach

MethodPathWhat it does
GET/bookmarksYour bookmarks, newest first. Filters: q, collectionId, tagId, favorite, page, limit (up to 100).
GET/bookmarks/:idOne bookmark.
POST/bookmarksSave a link: url, and optionally title, note, collectionId, tagIds. A link you already saved answers 409 with the existing bookmark.
PATCH/bookmarks/:idChange title, note, collection, tags or favorite.
DELETE/bookmarks/:idDelete a bookmark.
GET/bookmarks/:id/highlightsHighlights on one bookmark.
GET/collectionsYour collections. POST to create one, PATCH or DELETE /collections/:id to change one.
GET/tagsYour tags. POST to create one, PATCH or DELETE /tags/:id to change one.
GET/search?q=Search bookmarks, notes and highlights together.
GET/notes, /highlightsYour notes and highlights (read only).

A read token gets 403 on anything that changes data. Anything not in this table answers 403 to a token.

Limits and errors

  • 60 requests a minute per token. Over that you get 429; wait a minute and try again.
  • 401: the token is wrong, revoked or expired.
  • 403: the token can't do this (read only, or a route tokens can't use), or your Pro plan has ended. Your tokens are kept and work again as soon as Pro is active.

3. Connect an AI app (MCP)

NestMarks is a remote MCP server at https://api.nestmarks.com/mcp. Add it to your AI app with your token and you can ask things like "find what I saved about pricing pages" or "save this link to my Research collection".

Claude Code

claude mcp add --transport http nestmarks https://api.nestmarks.com/mcp \
  --header "Authorization: Bearer nmx_pat_your_token"

Cursor

Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "nestmarks": {
      "url": "https://api.nestmarks.com/mcp",
      "headers": { "Authorization": "Bearer nmx_pat_your_token" }
    }
  }
}

Claude Desktop

Open Settings → Developer → Edit config, add this to claude_desktop_config.json, and restart Claude. It needs Node.js installed.

{
  "mcpServers": {
    "nestmarks": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.nestmarks.com/mcp",
               "--header", "Authorization:${NESTMARKS_AUTH}"],
      "env": { "NESTMARKS_AUTH": "Bearer nmx_pat_your_token" }
    }
  }
}

Other apps that support remote MCP servers over HTTP work the same way: the address above plus the Authorization header.

Tools

ToolWhat it does
search_bookmarksFind bookmarks by words, optionally in one collection or tag.
list_collectionsList your collections.
list_tagsList your tags.
get_bookmarkOne bookmark with your note and highlights. With saved copies, also the start of the saved page.
save_bookmarkSave a link, with a title, collection, tags and note if you like. Needs a write token.
add_tagsAdd tags to a bookmark. Needs a write token.

Use a read token if you only want the app to search. AI apps only see the parts of your library a tool returns, and answers are kept short.

Questions

Write to [email protected]. Never send us your token.

Start with five links

Import your bookmarks and search for the one you lost.