shorten.dev/docs
shorten.dev/docs
Getting StartedAuthentication
OverviewSetupTools Reference
MCP Integration

Overview

Connect AI agents to Shorten using the Model Context Protocol.

Shorten provides a native Model Context Protocol (MCP) server. Any MCP-compatible client — Claude Desktop, Claude Code, Cursor, or custom agents — can create links, query analytics, and manage your link infrastructure through natural language.

Available tools

ToolDescriptionRequired scope
create_short_linkCreate a new shortened linkwrite
bulk_create_linksCreate multiple links in one requestwrite
list_linksList and search existing linksread
get_analyticsRetrieve click analyticsread
revoke_linkPermanently revoke a linkwrite
generate_qrGenerate a QR code for a linkread

An API key with read + write scopes covers all tools.

Quick setup

Add the Shorten MCP server to your client configuration:

{
  "mcpServers": {
    "shorten": {
      "command": "npx",
      "args": ["@shorten-dev/mcp"],
      "env": {
        "SHORTEN_API_KEY": "sk_your_key_here"
      }
    }
  }
}

Requires an API key (sk_) with read + write scopes. See Authentication for details.

Next steps

Setup Guide

Step-by-step instructions for Claude Desktop, Claude Code, and Cursor.

Tools Reference

Parameters and responses for all MCP tools.

Commands Reference

Full reference for all shorten CLI commands and flags.

Setup

Step-by-step instructions for connecting AI clients to the Shorten MCP server.

On this page

Available toolsQuick setupNext steps