Open Source

Free, Self-Hosted URL Shortener
on Cloudflare Workers.

A free, open-source URL shortener built on Cloudflare Workers + D1. Sub-10ms global redirects, click analytics, vanity slugs, and a full admin dashboard — all on Cloudflare's free tier. Integrates with Claude, GitHub Copilot, Cursor, and Windsurf via an MCP server.

shrtnr deploy --edge-only
# Detecting configuration...

{} Workers: shrtnr-main
{} KV Store: SHRTNR_DB
{} Region:  Global (250+ PoPs)

Infrastructure synced.
Your domain is now active.
What You Get

Built for Developers

shrtnr analytics dashboard

Zero Infrastructure

Runs entirely on Cloudflare's free tier. Workers handle compute, D1 handles storage. No servers to maintain.

3-Character Slugs

175,616 unique combinations out of the box. Short enough to fit anywhere.

Vanity Slugs

Human-readable aliases like /my-blog-post alongside random slugs. One link, multiple entry points.

Click Analytics

Per-click tracking with referrer, country, device, and browser. Know exactly how your links perform.

Admin Dashboard

Link management, analytics charts, QR code generation. Everything from the browser.

TypeScript SDK

The @oddbit/shrtnr npm package for programmatic link management from any TypeScript project.

MCP Server for AI Assistants

Connect Claude, GitHub Copilot, Cursor, and Windsurf via the Model Context Protocol. Ask your AI to shorten URLs, create vanity slugs, or check click analytics — all in natural language.

Cloudflare Access Auth

SSO via Google, GitHub, OTP, SAML, or any identity provider. Zero auth code in the worker.

One-Click Deploy

Click the button, get a running instance. Fork, D1 database, and Worker created automatically.

SDK and MCP Server.

Manage links from code or let your AI assistant handle it. The TypeScript SDK works in Node.js, Deno, and the browser. The MCP server connects Claude, GitHub Copilot, Cursor, and Windsurf — shorten URLs and manage links in natural language.

  • MCP Server for Claude, Copilot & Cursor
  • Full REST API
  • TypeScript SDK on npm
shrtnr link management dashboard

The Edge Advantage

Global Redirect Latency
<10ms

Cloudflare's edge network resolves links at the nearest point of presence. 250+ locations worldwide, no cold starts.

Data Sovereignty

Your links, your data, your database. Host on your own Cloudflare account. No third-party touches your PII.

Infrastructure as Code

Version control your redirects. Sync via CI/CD. Treat shortlinks like you treat your microservices.

wrangler.tomlshrtnr.yaml

Long-Term Reliability

You own the domain and the logic. No platform risk, no link rot. Your assets stay under your control.

API Key Management Included
shrtnr API key management

Get Started
in Minutes.

Ready to own your link infrastructure? Deploy to Cloudflare and go live.

CloudflareWorkersD1
google-cloud-partner

Tell Us About Your Project