Set up Linkhut in Metorial for Claude, ChatGPT and Cursor
Share Linkhut with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or personal access token sign-in, 11 tools (8 read-only).
To give your team Linkhut in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Linkhut integration in a Metorial portal, and each person signs in to Linkhut with their own account. Save, tag, manage, and share web bookmarks with Linkhut. The integration has 11 tools, 8 read-only, 1 write and 2 destructive, plus 2 triggers.
What you'll learn
- How an admin shares Linkhut in a portal and how each person connects
- The 4 OAuth scopes Linkhut can request, and what each one allows
- How to keep the 8 read-only tools and reject the other 3
Before you start
- A portal with at least one access group
- An account with Linkhut for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| Personal Access Token | API token | token |
| OAuth (default) | OAuth | Signs in to Linkhut |
The portal and metorial setup use OAuth unless someone picks another method.
Personal Access Token
To connect, a person enters:
token: Personal access token from https://ln.ht/_/oauth/personal-token
OAuth
People sign in to Linkhut and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
posts:read | Read Posts | Read access to bookmarks |
posts:write | Write Posts | Create, update, and delete bookmarks |
tags:read | Read Tags | Read access to tags |
tags:write | Write Tags | Delete and rename tags |
Use your own Linkhut OAuth app
With your own OAuth app, people see your company's name on the Linkhut consent screen, and the client ID and secret belong to you.
Start the credentials in Metorial
In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Linkhut and copy the Redirect URI.
Register the app with Linkhut
Create an OAuth app or client in Linkhut and add the redirect URI from Metorial as its redirect or callback URL.
Finish in Metorial
Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Linkhut integration.
Admin: share Linkhut in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Linkhut. Under Auth Method, keep OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to Linkhut as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Linkhut.
Choose who gets it
Add the access groups that should see Linkhut. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Linkhut integration. Once it exists, check which groups have it:
Employee: connect Linkhut
In the portal
Open Linkhut in the catalog
Sign in to your portal and open Linkhut. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Linkhut sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID. metorial setup uses OAuth. To connect with Personal Access Token instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.
Add it to your AI client
metorial install adds your Linkhut connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 8 read-only tools, such as list_tags and get_bookmarks, and lose the write tool add_bookmark, and the 2 destructive tools, such as manage_tag or delete_bookmark.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 11 tools, minus any you rejected. list_tags takes no input. It retrieves all tags in the user's account along with the number of times each tag has been used.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (8)
list_tags: Retrieve all tags in the user's account along with the number of times each tag has been used.list_all_bookmarks: Retrieve all bookmarks from the user's account with optional filtering by tag and date range.get_bookmarks: Retrieve bookmarks from Linkhut.list_recent_bookmarks: Retrieve the most recently added bookmarks.get_tag_suggestions: Get tag suggestions for a given URL. Needsurl.get_bookmark_dates: Get a count of bookmarks per date.check_for_updates: Check the timestamp of the most recent bookmark modification.get_bookmark_hashes: Get the URL hashes and change signatures of all bookmarks for efficient synchronization.
Write tools (1)
add_bookmark: Save a new bookmark to Linkhut. Needsurlandtitle.
Destructive tools (2)
manage_tag: Delete or rename a tag across all bookmarks. Needsactionandtag.delete_bookmark: Remove a bookmark from Linkhut by its URL. Needsurl.
Triggers
Linkhut has 2 triggers, which fire on events in Linkhut:
inbound_webhookbookmark_changed: Triggers when bookmarks are added, updated, or deleted.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Linkhut there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Linkhut on metorial.com: the integration overview