TinyURL MCP server for AI agents

Live

BEARER TOKEN

URL SHORTENING

Marketing

TinyURL gives your agent your short links: shorten URLs with custom aliases or branded domains, update and archive them, and read click analytics by time, location, device, and source.

  • Per-user credentials: each call uses the actual user's access token, 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.
TinyURL
agent · Acme Q3
Run
Shorten this URL with the alias spring-sale.
S
tinyurl_url_create
212ms
Link agent
Created the TinyURL with the alias spring-sale and returned the short link.
Sources: TinyURL link
tinyurl
1 link
18:29
Message Claude...

Tools your URL shortening agent reaches for on TinyURL, scoped per user.

CALL ANY TOOL
21 tools for URL shortening in TinyURL: create, update, and archive short links, change their destination, run bulk requests, and read click analytics by time, location, device, and source.
tinyurl_analytics_general_get
Get analytics general
Get browser, operating system and device breakdowns for clicks on your TinyURLs in a date range, for one alias, one tag or the whole account. Returns data with click counts by browser, os and device. Use the other analytics tools for other breakdowns. Click analytics need a paid TinyURL plan.
Parameters
Name
Type
Required
Description
from
string
Required
Start of the report as a date-time. Example: 2025-01-01 00:00:00.
alias
string
Optional
Limit the report to one TinyURL alias. Example: myexamplelink.
tag
string
Optional
Limit the report to TinyURLs with this tag. Example: campaign-q1.
to
string
Optional
End of the report as a date-time; defaults to now. Example: 2025-01-31 23:59:59.
tinyurl_analytics_hours_get
Get analytics hours
tinyurl_analytics_languages_get
Get analytics languages
tinyurl_analytics_locations_get
Get analytics locations
tinyurl_analytics_raw_list
List analytics raw
tinyurl_analytics_sources_get
Get analytics sources
tinyurl_analytics_timeline_get
Get analytics timeline
tinyurl_analytics_weekdays_get
Get analytics weekdays
tinyurl_bulk_request_create
Create bulk request
tinyurl_bulk_request_report_get
Get bulk request report
tinyurl_bulk_request_status_get
Get bulk request status
tinyurl_url_analytics_sharing_set
Set url analytics sharing
tinyurl_url_analytics_status_set
Set url analytics status
tinyurl_url_archive
Archive url
tinyurl_url_create
Create url
tinyurl_url_delete
Delete url
tinyurl_url_get
Get url
tinyurl_url_long_url_change
Url long url change
tinyurl_url_update
Update url
tinyurl_urls_count
Count urls
tinyurl_urls_list
List urls
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);

// TinyURL tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["tinyurl"], toolNames: [
    "tinyurl_url_create",
    "tinyurl_analytics_timeline_get",
    "tinyurl_analytics_locations_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Shorten this URL with the alias spring-sale, then show its clicks over time and by country" }] });
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: ["tinyurl"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Shorten this URL with the alias spring-sale, then show its clicks over time and by country" }],
  tools,
});

// Execute the tool call with the user's vaulted TinyURL access token
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: ["tinyurl"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Shorten this URL with the alias spring-sale, then show its clicks over time and by country" }],
  tools,
});

// Tool call runs with the user's vaulted TinyURL access token
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: ["tinyurl"] }, pageSize: 100,
});

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

await agent.run("Shorten this URL with the alias spring-sale, then show its clicks over time and by country");
Try these prompts
Copy any prompt into your agent. Each maps directly to a TinyURL tool. Click to copy, paste into your agent, done.
Short links
Copy the prompt
Copied
Shorten this URL with the alias spring-sale.
Copy the prompt
Copied
Point this TinyURL at a new long URL.
Copy the prompt
Copied
Archive the TinyURL for last year's campaign.
Click analytics
Copy the prompt
Copied
Show clicks over time for this TinyURL last week.
Copy the prompt
Copied
Which countries do the clicks come from?
Copy the prompt
Copied
What are the top referring sources for my links?
Bulk requests
Copy the prompt
Copied
Queue a bulk request to create these 50 short links.
Copy the prompt
Copied
Check the progress of this bulk request.
Copy the prompt
Copied
Show the per-item results of my last bulk request.
SEE HOW AUTH WORKS
Each user connects their own TinyURL access token once, and Scalekit sends it with every call. Access tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
TinyURL
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
TinyURL
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
TinyURL
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
TinyURL
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 and analytics connectors.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
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 and analytics connectors.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
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 TinyURL access token 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 token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
TinyURL 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 TinyURL as the user or through a shared access token?
As the user. Each user connects their own TinyURL access token once, and Scalekit sends it with every call. Audit logs attribute every short link change to that user, not a shared service account.
Where is the TinyURL access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in TinyURL?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the analytics and list tools without tinyurl_url_delete, which deletes a TinyURL so it stops redirecting. 1 of the 21 tools is destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes TinyURL 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 follow a bulk request?
tinyurl_bulk_request_create queues a batch of operations. tinyurl_bulk_request_status_get returns its progress, and tinyurl_bulk_request_report_get returns the per-item results.
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"": {
""tinyurl"": {
""url"": ""https://mcp.scalekit.com/tinyurl"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.tinyurl]
url = ""https://mcp.scalekit.com/tinyurl""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""tinyurl"": {
""url"": ""https://mcp.scalekit.com/tinyurl"",
""type"": ""http""
}
}
}