URL Shortener

Short URLs,
fast and clean.

Create short links via Web UI, REST API or MCP tool.
No account required.

POST /api/shorten
{
  "targetUrl": "https://shar.re/long-url",
  "expiresAt": "2026-12-31T23:59:59Z"
}

Shorten URL

Paste your long URL and get a short link.

Everything you need

Multiple ways to create a short link.

Web-UI

Simple form right in your browser. No installation, get started immediately.

REST API

API is usable without API key.

MCP Tool

Model Context Protocol for AI assistants like Cursor or Claude.

How it works

Three simple steps to a short link.

1

Paste URL

Paste your long URL into the form or API.

2

Create short link

shar.re generates a unique 6-character short code.

3

Share & use

Share the short link – it redirects automatically to the target URL.

REST API

Create short URLs via HTTP POST. No API key required.

  • Endpoint: POST /api/shorten
  • Body: JSON with targetUrl and optional expiresAt
  • Response: Short URL with code and redirect URL
curl -X POST https://shar.re/api/shorten \
  -H "Content-Type: application/json" \
  -d '{"targetUrl":"https://shar.re"}'

MCP Server

Integrate the shorten tool into AI assistants like Cursor or Claude via Model Context Protocol. No API key required.

  • Endpoint: https://shar.re/mcp
  • Tool: shorten – creates short URLs from targetUrl and optional expirationDate
  • Transport: HTTP
// Cursor: .cursor/mcp.json
{
  "mcpServers": {
    "sharre": {
      "url": "https://shar.re/mcp"
    }
  }
}