Connect your AI agent

Connect your AI agent to LotsLink.

Give Claude, ChatGPT, Codex, Cursor or another MCP agent access to your short links, custom domains, workspaces and click analytics. Use the REST API for your own integrations. Your agent for speed, the dashboard for control.

MCP server URL

https://api.lots.link/mcp

Remote MCP with OAuth: sign in with your Lots account, no key needed.

What your agent can do

Your agent creates and edits links, sets up domains and reads your click analytics. Ask in plain words:

“Shorten https://example.com/spring-sale as spring-sale with utm_source newsletter.”

“Which of my links got the most clicks this week, and from which countries?”

“Add go.example.com as a custom domain and tell me the DNS record to set.”

Links and domains

Custom slugs, UTM parameters, expiry dates, projects and bulk on or off, on lots.link or your own verified domain.

Click analytics

Recorded clicks by link or workspace, with source, device and location when available, and CSV or JSON export.

Every change in your dashboard

Your agent works in your workspaces with your role. Members edit their own links; viewers read.

Set up your agent

Works in any agent that supports remote MCP. The server URL is https://api.lots.link/mcp.

Claude

Settings, then Connectors, then Add custom connector. Paste the URL, connect, and sign in with your Lots account.

ChatGPT

Settings, then Apps & Connectors, then Advanced: turn on Developer mode, then create a connector with the URL and sign in.

Claude Code

claude mcp add --transport http lots-link https://api.lots.link/mcp

Codex

codex mcp add lots-link --url https://api.lots.link/mcp

Cursor, Windsurf and others

{
  "mcpServers": {
    "lots-link": {
      "url": "https://api.lots.link/mcp"
    }
  }
}

Cloud agents without MCP

Give the agent https://api.lots.link/docs.md and an API key. It calls the REST API with Authorization: Bearer <key>.

33 tools on the MCP server

The same tools power the REST API, so your agent and your dashboard always see the same links.

lotslink_add_custom_domain
Add a new custom domain or *.lots.link subdomain to your workspace.
lotslink_archive_project
Archive a project (soft delete).
lotslink_bulk_activate_links
Activate multiple links at once.
lotslink_bulk_deactivate_links
Deactivate multiple links at once.
lotslink_bulk_delete_links
Permanently delete multiple links at once.
lotslink_create_checkout
Create a checkout link.
lotslink_create_link
Create a new shortened link with optional custom slug and UTM parameters.
lotslink_create_project
Create a new project for organizing links within a workspace.
lotslink_create_workspace
Create a new workspace (personal or team).
lotslink_delete_custom_domain
Permanently delete a custom domain from the workspace.
lotslink_delete_link
Permanently delete a link.
lotslink_delete_project
Permanently delete a project from the workspace.
lotslink_delete_workspace
Permanently delete a workspace.
lotslink_export_analytics
Exports analytics data for a workspace or specific link in CSV or JSON format.
lotslink_get_billing
Show how the caller's LotsLink custom domains are paid for: the plan (if any), whether today is covered or paid from credits, the credit balance, and the plans.
lotslink_get_click_details
Retrieves individual click records for a short link with filtering and pagination.
lotslink_get_custom_domain
Get detailed information about a specific custom domain including verification status, SSL certificate status, DNS records required for setup, nameservers, verification timestamps, and count of links using this domain.
lotslink_get_link
Get detailed information about a specific link including all metadata, UTM parameters, assigned project, tags, custom domain, and click statistics.
lotslink_get_link_analytics
Retrieves click analytics for a specific short link.
lotslink_get_project
Get detailed information about a specific project including the count of links assigned to it.
lotslink_get_workspace
Get detailed information about a specific workspace.
lotslink_get_workspace_analytics
Retrieves aggregate click analytics for an entire workspace.
lotslink_invite_workspace_member
Invite a user to join workspace via email.
lotslink_list_custom_domains
List all custom domains and subdomains for a workspace.
lotslink_list_links
List all links in a workspace with advanced filtering, searching, and pagination.
lotslink_list_projects
List all projects in a workspace with link counts.
lotslink_list_workspaces
List all workspaces where user is an active member.
lotslink_remove_workspace_member
Remove a member from workspace.
lotslink_update_custom_domain
Update settings for a custom domain.
lotslink_update_link
Update link properties including custom slug, expiration date, active status, or project assignment.
lotslink_update_project
Update project details including name, description, color, or client information.
lotslink_update_workspace
Update workspace name, description, or settings.
lotslink_verify_custom_domain
Trigger DNS verification for a custom domain.

REST API

Building your own integration, or running a cloud agent without MCP? Call the REST API at https://api.lots.link with an API key.

Short links are free and unlimited.

Create your workspace, connect your agent and see every link in your dashboard.