Set up Shorten.REST in Metorial for Claude, ChatGPT and Cursor
Share Shorten.REST with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 7 tools (4 read-only).
To give your team Shorten.REST in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Shorten.REST integration in a Metorial portal, and each person connects with an API key. Agents can create, retrieve, update, delete, and list shortened URLs. The integration has 7 tools, 4 read-only, 2 write and 1 destructive, plus 1 trigger.
What you'll learn
- How an admin shares Shorten.REST in a portal and how each person connects
- What Shorten.REST asks for when you connect, and where to find it
- How to keep the 4 read-only tools and reject the other 3
Before you start
- A portal with at least one access group
- An API key from Shorten.REST for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| API Key | API token | token |
API Key
To connect, a person enters:
token: Your Shorten.REST API key. Found in your account dashboard at dash.shorten.rest.
Admin: share Shorten.REST 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 Shorten.REST. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Shorten.REST.
Choose who gets it
Add the access groups that should see Shorten.REST. 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 Shorten.REST integration. Once it exists, check which groups have it:
Employee: connect Shorten.REST
In the portal
Open Shorten.REST in the catalog
Sign in to your portal and open Shorten.REST. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API key (token).
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.
Add it to your AI client
metorial install adds your Shorten.REST 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 4 read-only tools, such as get_alias and get_clicks, and lose the 2 write tools, such as create_alias or update_alias, and the destructive tool delete_alias.
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 7 tools, minus any you rejected. list_aliases takes no input.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (4)
get_alias: Retrieves full details of a shortened URL including its destinations, meta tags, snippets, and timestamps. NeedsaliasName.get_clicks: Retrieves clicks for a specific alias and domain by filtering one page of account-wide click data. NeedsaliasName.list_aliases: Lists a page of alias names for a given domain, newest first.list_clicks: Retrieves one page of click records across the connected account, newest first.
Write tools (2)
create_alias: Creates a new shortened URL (alias) that redirects to one or more destination URLs. Needsdestinations.update_alias: Updates an existing shortened URL's destinations, meta tags, or tracking snippets. NeedsaliasName.
Destructive tools (1)
delete_alias: Permanently deletes a shortened URL alias. NeedsaliasName.
Triggers
Shorten.REST has 1 trigger, which fire on events in Shorten.REST:
inbound_webhook
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Shorten.REST there
- Tool permissions: tool filters and what employees see
- Shorten.REST on metorial.com: the integration overview