U301 URL Shortener

U301 URL Shortener is a skill for Claude Code, Codex from tealight-uk/u301-mcp. It costs 20 tokens per session (474 once invoked), scanned A, original, MIT.

A URL-shortening tool that uses the U301 service to turn long web addresses into shorter ones, including in bulk.

In plain words
What is it for?
It helps shorten multiple URLs and connect a coding project to U301 through its MCP server.
Why use it?
It avoids shortening links manually one at a time. It also explains the required API key and optional settings needed to use the service.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps shorten multiple URLs and connect a coding project to U301 through its MCP server.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tealight-uk/u301-mcp/u301-url-shortener
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tealight-uk/u301-mcp --skill u301-url-shortener
Clone the repo
git clone --depth 1 https://github.com/tealight-uk/u301-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for U301 URL Shortener

README.md
[![agentmods](https://agentmods.dev/badge/skills/tealight-uk/u301-mcp/u301-url-shortener/github.svg)](https://agentmods.dev/skills/tealight-uk/u301-mcp/u301-url-shortener)
Your own site
<a href="https://agentmods.dev/skills/tealight-uk/u301-mcp/u301-url-shortener"><img src="https://agentmods.dev/badge/skills/tealight-uk/u301-mcp/u301-url-shortener/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for U301 URL Shortener

Your own site · 80×15
<a href="https://agentmods.dev/skills/tealight-uk/u301-mcp/u301-url-shortener"><img src="https://agentmods.dev/badge/skills/tealight-uk/u301-mcp/u301-url-shortener.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 474 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00474
Opus 5.5 $0.00008 $0.00190
Sonnet 5.5 $0.00004 $0.00095
Haiku 4.5 $0.00002 $0.00047

Measured 2mo ago against content hash 6201fa84d1db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

U301 URL Shortener scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/u301-url-shortener/SKILL.md · 55 lines

What it actually says

U301 SKILL

Use this skill to keep the repository's runtime behavior, MCP-facing contract, and user-facing setup instructions in sync.

Quick Start

Read these files before changing behavior:

  • README.md
  • package.json
  • src/index.ts

Treat this repository as a small, single-tool stdio MCP server. Prefer minimal, contract-preserving edits unless the user explicitly asks for broader changes.

Core Workflow

If not already authenticated, ask the user to provide a valid U301_API_KEY Set U301_API_KEY as an env var. Optional defaults: DOMAIN, WORKSPACE_ID. Always call the U301 API (no heuristics, no caching).

If the token is missing, give the user these steps:

Create a U301 API KEY: https://u301.com/app/api-key Set U301_API_KEY as an environment variable in their system. Never ask the user to paste the full token in chat. Ask them to set it locally and confirm when ready.

  1. Classify the task as either usage/setup help or repository maintenance.
  2. For usage/setup help, explain the current contract exactly as implemented:
    • Required env var: U301_API_KEY
    • Optional env vars: DOMAIN, WORKSPACE_ID
    • Package entrypoint: npx -y @u301/mcp
    • MCP tool: u301_shortening_urls_in_bulk
    • Accepted item fields: url, slug, expiredAt, password, comment
  3. For repository maintenance, update the same behavior in every place it is represented:
    • Zod input schema in src/index.ts
    • Tool description text in src/index.ts
    • Request body mapping in src/index.ts
    • README examples and parameter documentation
  4. Preserve current behavior unless the user asks to change it:
    • Reject empty input
    • Reject batches over 200 URLs
    • Return formatted plain-text results with --- separators

Typical Requests

Use this skill for requests such as:

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 55 lines · 20 tokens per session scan A 6201fa84d1db

Subscribe to this mod's changes

U301 URL Shortener is a skill published in the GitHub repository tealight-uk/u301-mcp (0 stars, last pushed 8mo ago), licensed MIT. It adds 20 tokens to every session and 474 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

U301 URL Shortener compared with skills from other repositories

U301 URL Shortener next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
U301 URL Shortenertealight-uk/u301-mcpSkill08mo agoMITA20Claude Code, Codex
ai-first-pastebinjoustonhuang/ai-first-pastebinSkill06mo agoMITA116Claude Code, Codex
picsee-short-linkPicSeeInc/picsee-short-linkSkill23mo agononeC93Claude Code, Codex
opik-diagnosecomet-ml/opik-mcpSkill2262d agoApache-2.0A187Claude Code
ue-mcp-epic-routingdb-lyon/ue-mcpSkill480yesterdayMITA81Claude Code, Codex
qa-knowledgegriddynamics/rosettaSkill373todayApache-2.0A32Claude Code, Codex
apitapn1byn1kt/apitapSkill13118d agoApache-2.0A0Claude Code, Codex