Sorting with MCP
The bukmark MCP server lets any MCP client (Claude Code, Cursor, Zed or another) read your unsorted bookmarks and file them into hubs, with your approval.
-
In the web app, open Settings → Access tokens, enter a name under New token (e.g. “Claude Code”) and click Create token, then Copy. The token is shown only once.
-
In Claude Code, copy
.mcp.json.exampleto.mcp.jsonat the repo root and fill in your token. For another client, see Other MCP clients.cp .mcp.json.example .mcp.json -
Restart your MCP client.
Using it
Section titled “Using it”- Ask your MCP client to “sort my unsorted bukmark links”.
- Review the hubs it proposes for each link.
- Approve. It applies them in one batch.
Configuration
Section titled “Configuration”The MCP server runs pnpm exec tsx apps/mcp/src/index.ts with
BUKMARK_API_URL and BUKMARK_API_TOKEN set. For Claude Code, in .mcp.json
at the repo root:
{ "mcpServers": { "bukmark": { "command": "pnpm", "args": ["exec", "tsx", "apps/mcp/src/index.ts"], "env": { "BUKMARK_API_URL": "http://localhost:3000", "BUKMARK_API_TOKEN": "bkm_..." } } }}Other MCP clients
Section titled “Other MCP clients”Put the same command, args and environment variables in your client’s MCP config. See modelcontextprotocol.io.
Available tools
Section titled “Available tools”| Tool | What your client can do with it |
|---|---|
add_bookmarks |
Add new links to your hubs. |
list_unsorted |
See what needs sorting, with the browser folder an imported link came from. |
list_hubs |
See your existing hubs. |
assign_hubs |
Assign links to one or more hubs. |
Troubleshooting
Section titled “Troubleshooting”If every tool call fails with “bukmark rejected the request (401)”, set
BUKMARK_API_TOKEN to a token from Settings → Access tokens and restart
your client.
Made by XO Vision, a Jovian division