Shrtnr
MCP server, REST API and typed SDKs for short links. Per-user ownership, bundle analytics. Self-hosted on Cloudflare Workers, free tier.
shrtnr is a self-hosted URL shortener that provides a REST API, typed SDKs for TypeScript, Python, and Dart, and a native MCP server for AI assistants. It runs on Cloudflare Workers and D1, within the free tier, with one-click deployment that provisions D1 and KV automatically. Links are owned per user based on Cloudflare Access identity, and API keys are issued per person.
Bundles group links from a campaign and provide combined analytics including total clicks, timeline, countries, referrers, devices, and browsers. Multiple slugs can point to the same destination, each tracked separately. It includes an admin dashboard available in English, Indonesian, and Swedish, with three themes and QR code generation.
The MCP server connects through OAuth on Cloudflare Access, so every tool call runs as the signed-in user.
Summary drafted from the project's own website. Every sentence is backed by text on that page and was reviewed before publishing.