Hookmark MCP Server
Hookmark MCP Server exposes seven tools for managing Hookmark bidirectional links on macOS.
Generate stable
hook://URLs for files or web URLs.Create bidirectional links between two items.
List items linked to an item, or list all bookmarks, with path/hook/markdown/verbose formats.
Search bookmarks by keyword across names and URLs.
Remove bidirectional links between two items.
Clone all hooks from one item to another without modifying the source.
Get a
hook://URL for the active document/window in a specified macOS app.
Allows linking local files and research notes directly to GitHub issues and repositories using stable Hookmark URLs.
Enables connecting project documents and development files to specific Jira tickets for better task context.
Provides full access to Hookmark's linking capabilities on macOS, allowing bidirectional connections between files, emails, and desktop applications.
Supports outputting lists of connected items and search results in Markdown format for easy documentation and sharing.
Enables capturing hooks from active Obsidian notes and connecting them to other local or web resources.
Allows for capturing and linking web URLs directly from the active Safari browser window to other documents or files.
Facilitates linking source code and technical notes to relevant Stack Overflow answers for quick reference.
Supports workflows where stable Hookmark links are added to Todoist tasks to provide instant cross-device access to related materials.
Enables linking active Xcode documents and projects to related design docs, requirements, or research.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Hookmark MCP Server Link the PDF on my desktop to this meeting note"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
links: "[[Ideaverse/AI/Hook/Hook|Hook]]"
hookmark-mcp
MCP server that gives Claude Code (and other MCP clients) full access to Hookmark — the macOS app that creates bidirectional links between files, URLs, emails, notes, and anything else with an address.
Link a PDF to an email. Connect a note to a webpage. Find everything related to a project. All through natural language.
Related MCP server: Anybox MCP Server
How It Works
Claude Code ──MCP──▶ hookmark-mcp ──shell──▶ hook CLI ──▶ Hookmark.app
(this server) (v2.1.3) (macOS)The server wraps Hookmark's hook CLI as seven MCP tools. Claude calls them like any other tool — you just talk normally:
"Link my TODO to that PDF on the desktop"
"What's connected to this file?"
"Search hookmark for everything about invoices"
"Hook whatever's open in Mail to this project"
You never need to remember tool names or parameters.
Quick Start
Prerequisites:
macOS with Hookmark installed
Hookmark's
hookCLI (gem install hookmarkor installed with Hookmark)Node.js 18+ or Bun
Install with Claude Code:
Tell Claude:
"Install the hookmark MCP server from github.com/mnott/Hook"
Claude will clone the repo, build it, and add it to your MCP config.
Or install a release:
npm i -g https://github.com/mnott/Hook/releases/latest/download/hookmark-mcp.tgzUpdate: pai update --package hookmark-mcp. The npm registry is no longer updated; releases come from GitHub.
Manual install:
Add to your Claude Code MCP config (~/.claude.json):
{
"mcpServers": {
"hookmark": {
"command": "npx",
"args": ["-y", "hookmark-mcp"]
}
}
}Or with Bun:
{
"mcpServers": {
"hookmark": {
"command": "bunx",
"args": ["hookmark-mcp"]
}
}
}Restart Claude Code. The tools are ready.
From source (development):
git clone https://github.com/mnott/Hook.git
cd Hook
bun install
bun run buildThen point your MCP config to the local build:
{
"mcpServers": {
"hookmark": {
"command": "node",
"args": ["/path/to/Hook/dist/index.js"]
}
}
}Tools at a Glance
Tool | What it does | Example |
| Get a | "Get me a hook URL for this file" |
| Link two items bidirectionally | "Link this note to that PDF" |
| Show everything linked to an item | "What's linked to this file?" |
| Search all bookmarks by keyword | "Find all bookmarks about 'project X'" |
| Unlink two items | "Remove the link between these two files" |
| Copy all links from one item to another | "This file replaced that one — copy its links" |
| Grab a hook URL from whatever's open in an app | "Get me a hook for whatever's open in Mail" |
User Guide
You never need to remember tool names or parameters — just describe what you want in plain English. Here are the things you can do, organized by what you're trying to accomplish.
Connecting Things
The core of Hookmark is bidirectional links. When you connect two items, each one knows about the other.
"Link my TODO.md to the project requirements PDF on the desktop"
"Connect this source file to the GitHub issue at https://github.com/org/repo/issues/42"
"Hook the meeting notes to the presentation slides"
"Link every .ts file in src/ to the architecture document"
You can link files to files, files to URLs, URLs to URLs — anything with an address.
Finding Connections
Once things are linked, you can explore the web of connections from any starting point.
"What's hooked to this file?"
"Show me everything connected to the project plan"
"List all hooks for src/index.ts in verbose format"
"What files are linked to https://github.com/mnott/Hook?"
"Show me all my Hookmark bookmarks"
Omit the item to list everything. Ask for different output formats — paths, markdown links, hook:// URLs, or verbose details with titles and addresses.
Searching
Search across all your Hookmark bookmarks by keyword — it searches both names and URLs.
"Search hookmark for 'invoice'"
"Find all bookmarks related to the quarterly report"
"Search hookmark for anything mentioning 'API design'"
"Search just bookmark names for 'meeting' — don't search URLs"
"Search hookmark for 'budget' but only show files, no emails"
Working with Apps
Hookmark can reach into the frontmost window of any macOS app and grab a reference to whatever's active — the open document, email, note, task, or webpage.
"Get me a hook for whatever's open in Mail"
"Hook the current Obsidian note to this project"
"Link whatever's open in Finder to my TODO"
"Grab a hook URL from Safari and connect it to the design doc"
Supported apps include Finder, Mail, Safari, Obsidian, Bear, DEVONthink, Xcode, and any app that Hookmark supports (most document-based macOS apps).
Moving and Reorganizing Files
When you move or rename a file, its hooks don't follow automatically. Clone them to the new location.
"I moved report.md to the archive — clone its hooks to the new path"
"Copy all links from the old config to the new config file"
"This file replaced the other one — transfer its hooks"
The original keeps its links. The destination gets copies of all the same connections.
Cleaning Up
Remove links you no longer need.
"Unlink the budget spreadsheet from the old project plan"
"Remove the hook between these two files"
"Disconnect the meeting notes from the wrong project"
Real-World Workflows
Research and reference management
"Link this paper PDF to the notes I'm writing about it" "What sources are connected to my literature review?" "Hook this Stack Overflow answer to the bug fix commit"
Project organization
"Connect every file in this project to the project brief" "What's linked to the project requirements? Show me the full list." "Link the Jira ticket URL to the implementation file"
Email and communication
"Hook whatever's open in Mail to this contract PDF" "Search hookmark for that email about the deadline" "Link the client's email to the proposal document"
Code and documentation
"Link the API spec to the implementation in src/api/routes.ts" "What documentation is connected to this module?" "Hook the test file to the source file it tests"
Knowledge management
"Connect this Obsidian note to the original article URL" "What notes are linked to this topic?" "Link the DEVONthink document to my project TODO"
Combining MCP Servers
Hookmark becomes especially powerful when combined with other MCP servers. Here's a workflow that bridges email, document management, and task tracking across devices.
Email → DEVONthink → Hookmark → Todoist
You archive important emails in DEVONthink. DEVONthink items have stable URLs (x-devonthink-item://...) that work in DEVONthink To Go on iOS/iPadOS too. By creating a Hookmark link to a DEVONthink document and adding it to a Todoist task, you get a clickable reference from your task list straight to the email — on any device.
"Search DEVONthink for the email from the lawyer about the contract" "Get a hook URL for that DEVONthink document" "Create a Todoist task 'Review lawyer contract' with that link in the description"
Or in one shot:
"Find the email from Müller about the invoice in DEVONthink, get a hookmark link, and create a Todoist task to follow up on it by Friday"
This works because:
DEVONthink MCP finds the archived email
Hookmark MCP creates a stable
hook://URL that resolves to the DEVONthink itemTodoist MCP creates the task with the link in the description
On your iPhone, tapping the link in Todoist opens DEVONthink To Go and jumps straight to the email
The same pattern works with any combination — link Obsidian notes to Todoist tasks, connect GitHub issues to DEVONthink research, hook Calendar events to project files.
MCP Tool Reference
hookmark_link
Get the stable hook:// URL for a file or web URL.
Parameter | Required | Description |
| yes | Absolute file path or URL |
hookmark_connect
Create a bidirectional link between two items.
Parameter | Required | Description |
| yes | File path, URL, or |
| yes | File path, URL, or |
hookmark_list
List all items hooked to a given item. Omit item to list all bookmarks.
Parameter | Required | Default | Description |
| no | — | File path, URL, or |
| no |
|
|
| no |
| Exclude non-file items (emails, etc.) |
hookmark_search
Search bookmarks by keyword.
Parameter | Required | Default | Description |
| yes | — | Search term |
| no |
|
|
| no |
| Search only bookmark names, not URLs |
| no |
| Exclude non-file items |
hookmark_remove
Remove the bidirectional link between two items.
Parameter | Required | Description |
| yes | File path, URL, or |
| yes | File path, URL, or |
hookmark_clone
Copy all hooks from source to destination. Source is not modified.
Parameter | Required | Description |
| yes | Item to copy hooks from |
| yes | Item to copy hooks onto |
hookmark_frontmost
Get the hook:// URL for the active document in a macOS app.
Parameter | Required | Default | Description |
| yes | — | App name without |
| no |
| Return as a Markdown link |
Configuration
Variable | Default | Description |
|
| Path to the |
Override the CLI path if your hook binary is installed elsewhere:
{
"mcpServers": {
"hookmark": {
"command": "npx",
"args": ["-y", "hookmark-mcp"],
"env": {
"HOOK_CLI": "/usr/local/bin/hook"
}
}
}
}Item References
Hookmark items can be referenced in three ways:
Absolute file path:
/Users/you/Documents/report.pdfURL:
https://example.com/pageHook URL:
hook://file/5g29VkHoQ?p=...&n=index%2Ets
Hook URLs are stable identifiers — they survive file renames and moves (as long as Hookmark is tracking the file).
Troubleshooting
"hook: command not found"
The hook CLI isn't in the expected path. Install it with gem install hookmark or set HOOK_CLI to point to your binary. Find it with which hook or gem which hookmark.
"Hookmark is not running"
The hook CLI requires Hookmark.app to be running. Open it from Applications.
Tool calls return empty results
Hookmark only knows about items it has bookmarked. Open a file in Hookmark first (or use hookmark_link to create a bookmark), then hooks can be created.
"Permission denied" errors Claude Code needs accessibility permissions to interact with Hookmark via AppleScript. Check System Settings > Privacy & Security > Accessibility.
Requirements
macOS (Hookmark is macOS-only)
Hookmark with an active license
hookCLI v2.0+ (gem install hookmark)Node.js 18+ or Bun
License
MIT
Author
Matthias Nott — github.com/mnott
Links: [[Ideaverse/AI/Hook/Hook|Hook]]
Available Tools
7 toolshookmark_cloneA
Clone all hooks from one item onto another. Every item hooked to the source will also become hooked to the destination. The source item's hooks are not modified — this is a copy operation. Useful when duplicating a file or moving content to a new location.
Inputs: source (required), destination (required).
hookmark_connectA
Create a bidirectional hook (link) between two items. Both items must be referenced by their file path, URL, or hook:// URL. After this call, each item will appear in the other's hook list. Use hookmark_link or hookmark_frontmost to obtain hook:// URLs first.
Inputs: item_a (required), item_b (required).
hookmark_frontmostA
Get the hook:// URL for the active document or window in the frontmost macOS application. Brings the specified application to the foreground and creates a Hookmark bookmark for whatever is currently active in that app (document, email, note, task, etc.). Returns the hook:// URL that can be used with hookmark_connect to link it to other items. Specify the app name without the '.app' suffix, e.g. 'Finder', 'Mail', 'Obsidian', 'Bear'.
Inputs: app (required), markdown.
hookmark_linkA
Generate a hook:// URL for a file or web URL and copy it to the clipboard. Returns the hook:// URL that Hookmark assigned to the item. Use this URL as a stable reference to the item when calling hookmark_connect. Accepts an absolute file path (e.g. '/Users/you/note.md') or any URL (e.g. 'https://example.com').
Inputs: item (required).
hookmark_listA
List all items hooked to a given file or URL. Returns one item per line in the requested format. Use format 'paths' (default) for plain paths/URLs, 'markdown' for clickable links, 'hooks' for hook:// URLs only, or 'verbose' for full details. Accepts an absolute file path, URL, or hook:// URL. Call with no item to list all Hookmark bookmarks.
Inputs: item, format, files_only.
hookmark_removeA
Remove a bidirectional hook between two items. Both items must be referenced by their file path, URL, or hook:// URL. This removes the link from both directions — after this call neither item will appear in the other's hook list.
Inputs: item_a (required), item_b (required).
hookmark_searchA
Search Hookmark bookmarks by keyword. Searches both bookmark names and URLs by default. Returns matching items, one per line. Use format 'paths' (default), 'markdown', 'hooks', or 'verbose' to control output. Use names_only to restrict the search to bookmark names only.
Inputs: query (required), format, files_only, names_only.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose with no overlap: clone copies hooks, connect creates links, frontmost gets active app URLs, link generates URLs, list shows hooked items, remove deletes links, and search finds bookmarks. The descriptions reinforce these unique functions, making misselection unlikely.
All tools follow a consistent 'hookmark_verb' pattern (e.g., hookmark_clone, hookmark_connect), using snake_case throughout. This predictability makes the tool set easy to navigate and understand at a glance.
With 7 tools, the server is well-scoped for managing Hookmark bookmarks and links. Each tool serves a specific, necessary function in the workflow—from creating and listing hooks to searching and removing them—without feeling bloated or sparse.
The tool set provides complete coverage for the Hookmark domain: it supports creating (connect, link, frontmost), reading (list, search), updating (clone), and deleting (remove) hooks, with no obvious gaps. Agents can perform all core operations without dead ends.
Maintenance
Related MCP Connectors
Search your saved web highlights and notes from MarklyKit, a Chrome extension for highlighting and annotating web pages. Your AI assistant can search your research, get recent highlights, get highlights for a URL, list folders and read a folder's research, each with source links. Requires MarklyKit Pro (OAuth sign-in).
Search, save, tag, and summarize the links in your Link Crypt bookmark library.
Search, save, and set reminders in your personal MarkIt library of links, posts, and notes.
Mac & Windows: let ChatGPT, Claude & Cursor use your email, calendar, iMessage, Teams, files.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceConnect AI with any macOS app. Deep integration with native apps like Calendar, Mail, Notes, plus UI control for all applications. Works with Claude, Cursor, Raycast, and any MCP-compatible AI.45MIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Anybox bookmark manager on macOS, allowing users to search, save, and organize bookmarks with tags and folders through natural language.15-
- AlicenseNot gradedqualityCmaintenanceProvides seamless integration with macOS native applications including Messages, Notes, Contacts, Mail, Reminders, Calendar, and Maps, enabling natural language control and automation of Apple ecosystem apps.17MIT
- FlicenseCqualityBmaintenanceLocal tools that let your AI use Mail, Calendar, Contacts, Teams, Slack, WhatsApp, OneDrive, Google Drive, Notion, Outlook and Office files on Mac and Windows. Runs on your computer. Works with Claude, ChatGPT, Codex, Cursor and other MCP clients.40480-