# Cutt.ly — how to use (mcp.ai)

Connect your Cutt.ly account and use 2 tools for URL shortener straight from your AI agent. Connect with your own API key. Cutt.ly is a URL shortening service that allows users to shorten, manage, and analyze URLs.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_cutt_ly?ms=1787295900000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `cutt_ly_shorten_url`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/cutt_ly`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/cutt_ly/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/cutt_ly/shorten/url` — Tool to shorten a URL using Cutt.ly Regular API. Creates a shortened link that redirects to the original URL. Use when you need to create a short link for sharing. Supports custom aliases and addition
  - body: { name?: string, short: string, public?: integer, noTitle?: integer, userDomain?: integer }
- `POST https://api.mcp.ai/api/cutt_ly/view/last/shortened/urls` — This action retrieves a list of recently shortened URLs from your Cutt.ly account. It allows users to view their latest shortened links and their details. Note: Due to API limitations, this action may
  - body: { limit?: integer }

## Example prompts
- "What can I do in Cutt.ly?"
- "Show me a summary of my Cutt.ly account"

## More
- Page: https://mcp.ai/cutt_ly
- Agent spec (llms.txt): https://mcp.ai/cutt_ly/llms.txt
- Postman collection: https://mcp.ai/cutt_ly/postman.json
