Shorten.REST MCP server for AI agents

Live

API KEY

SHORT LINKS

Marketing

Shorten.REST gives your agent short link management in your Shorten.REST account: create and update short URLs with one or more destinations, look up aliases, and read click records.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Shorten.REST
agent · Acme Q3
Run
Create a short link for our pricing page at go.acme.com/pricing.
S
shortenrest_alias_create
143ms
Link management agent
Created go.acme.com/pricing, which redirects to the pricing page.
Sources: Shorten.REST alias, 1 domain
shortenrest
1 alias
18:29
Message Claude...

Tools your short links agent reaches for on Shorten.REST, scoped per user.

CALL ANY TOOL
6 tools for short links in Shorten.REST: create, update, and delete aliases, look up a short URL, list the aliases on a domain, and read click records.
shortenrest_alias_create
Create alias
Create a short URL (an alias) that redirects to one or more destination URLs, optionally per country or operating system. Returns aliasName, domainName and the full shortUrl. Leave alias_name empty for a random 7-character alias, or use the @rnd macro for a partly random one.
Parameters
Name
Type
Required
Description
destinations
array
Required
Where the short URL redirects. Each item has a url and optionally a country (ISO alpha-2 code such as US) and an os (an operating system from Shorten.REST's supported list); an item with only a url is the default destination, and an OS match wins over a country match. Include one default destination. Example: [{"url": "https://www.example.com/landing"}, {"url": "https://www.example.com/us", "country": "US"}]
alias_name
string
Optional
Alias for the short URL, without a leading slash, case sensitive. Leave empty for a random 7-character alias; @rnd inside it is replaced with random characters (for example spring-@rnd). An alias must be unique on its domain. Example: spring-sale.
domain_name
string
Optional
Domain to create the alias on, without http(s):// or slashes. Defaults to short.fyi, Shorten.REST's shared domain; use your own branded domain if you connected one. Example: short.fyi. Default: `short.fyi`.
metatags
array
Optional
Meta tags served on the redirect page, each with a name and content. They override the domain's meta tags of the same name. Example: [{"name": "og:title", "content": "Spring sale"}]
snippets
array
Optional
Tracking snippets (such as retargeting or conversion pixels) fired on click, each with an id from Shorten.REST's supported snippet list and a parameters object. They override the domain's snippets with the same id. Example: [{"id": "facebook_pixel", "parameters": {"pixel_id": "123456789012345"}}]
shortenrest_alias_delete
Delete alias
shortenrest_alias_get
Get alias
shortenrest_alias_update
Update alias
shortenrest_aliases_list
List aliases
shortenrest_clicks_list
List clicks
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Shorten.REST tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["shortenrest"], toolNames: [
    "shortenrest_alias_create",
    "shortenrest_alias_get",
    "shortenrest_clicks_list"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Create a short link for this page, confirm its destination, and list the latest clicks" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["shortenrest"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Create a short link for this page, confirm its destination, and list the latest clicks" }],
  tools,
});

// Execute the tool call with the user's vaulted Shorten.REST API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["shortenrest"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Create a short link for this page, confirm its destination, and list the latest clicks" }],
  tools,
});

// Tool call runs with the user's vaulted Shorten.REST API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["shortenrest"] }, pageSize: 100,
});

const agent = new Agent({
  name: "link_management_agent",
  model: "gemini-2.5-pro",
  instruction: "Shorten.REST tools scoped to this user",
  tools,
});

await agent.run("Create a short link for this page, confirm its destination, and list the latest clicks");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Shorten.REST tool. Click to copy, paste into your agent, done.
Create and edit
Copy the prompt
Copied
Create a short URL for this campaign page on our domain.
Copy the prompt
Copied
Send visitors from Germany to the German version of this link.
Copy the prompt
Copied
Update the destination of this alias.
Look up
Copy the prompt
Copied
Show the destinations for this alias.
Copy the prompt
Copied
List the newest aliases on our domain.
Copy the prompt
Copied
Get the meta tags of this short URL.
Clicks and cleanup
Copy the prompt
Copied
List the latest raw clicks with their aliases and destinations.
Copy the prompt
Copied
Show the clicks for this alias since Monday.
Copy the prompt
Copied
Delete the old promo alias.
SEE HOW AUTH WORKS
Each user connects their own Shorten.REST API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Shorten.REST
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Shorten.REST
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Shorten.REST
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Shorten.REST
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other marketing connectors.
GTM and RevOps Teams
Outbound prospecting agent
Searches Apollo for prospects matching your ICP, scores and ranks them, drafts personalized outreach in Gmail, and logs every send to Google Sheets. Mail goes out as the rep, not from a shared inbox.
Test other agents
See the same per-user auth pattern across other marketing connectors.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Shorten.REST API key looks fine in a demo. In production every short link change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Shorten.REST today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Shorten.REST as the user or through a shared key?
As the user. Each user connects their own Shorten.REST API key once, and Scalekit sends it with every call. Every alias you create, update, or delete is attributed to that user in your audit trail, not a shared service account.
Where is the Shorten.REST API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Shorten.REST?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the alias and click read tools without shortenrest_alias_delete, which stops a short URL redirecting. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Shorten.REST access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
How does the agent page through aliases?
shortenrest_aliases_list returns alias names on a domain, newest first, plus lastId when there are more. The agent passes lastId as continue_from to read the next page, and uses shortenrest_alias_get for an alias's destinations.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""shortenrest"": {
""url"": ""https://mcp.scalekit.com/shortenrest"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.shortenrest]
url = ""https://mcp.scalekit.com/shortenrest""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""shortenrest"": {
""url"": ""https://mcp.scalekit.com/shortenrest"",
""type"": ""http""
}
}
}