---
canonical_url: "https://docs.composio.dev/toolkits/linkly_mcp"
markdown_url: "https://docs.composio.dev/toolkits/linkly_mcp.md"
product: "platform"
version: null
last_updated: null
---

# Linkly MCP

Create and manage Linkly short links, custom domains, click analytics, exports and click webhooks through Linkly's hosted MCP server.

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 25
- **Triggers:** 0
- **Slug:** `LINKLY_MCP`
- **Version:** 00000000_00

## Tools

### Batch delete links

**Slug:** `LINKLY_MCP_BATCH_DELETE_LINKS`

Batch delete multiple links

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `ids` | array | Yes | Array of link IDs to delete |

### Create domain

**Slug:** `LINKLY_MCP_CREATE_DOMAIN`

Add a custom domain to the workspace. The domain must be configured to point to Linkly's servers.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | The domain name (e.g., 'links.example.com') |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No |  |
| `workspace_id` | string | No |  |

### Create link

**Slug:** `LINKLY_MCP_CREATE_LINK`

Create short links and URL shorteners. Use this when the user asks to shorten a URL, create a short link, or make a link shorter.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | The destination URL for the link (required) |
| `name` | string | No | A nickname for the link to identify it later |
| `note` | string | No | A private note about this link |
| `slug` | string | No | Custom slug/suffix for the link (must start with /). Only valid together with domain: setting slug without a workspace-owned domain is rejected by the API. |
| `domain` | string | No | Custom domain for the short link (without trailing /). Must be a domain that already belongs to this workspace — call list_domains to get valid values. Required whenever slug is set. |
| `gtm_id` | string | No | Google Tag Manager container ID |
| `enabled` | boolean | No | Whether the link is active (default: true) |
| `cloaking` | boolean | No | Hide destination URL by opening in an iframe |
| `metadata` | object | No | Your own key-value data to attach to the link, such as IDs from your system, e.g. {"order_id": "A-10293"}. Values are stored as strings (numbers and booleans are converted). Up to 20 keys, keys up to 40 characters, values up to 500 characters. Also included in webhook payloads. |
| `og_image` | string | No | Open Graph image URL for social media previews |
| `og_title` | string | No | Open Graph title for social media previews |
| `utm_term` | string | No | UTM term parameter |
| `block_bots` | boolean | No | Block known bots and spiders from following the link |
| `ga4_tag_id` | string | No | Google Analytics 4 tag ID |
| `utm_medium` | string | No | UTM medium parameter |
| `utm_source` | string | No | UTM source parameter |
| `fb_pixel_id` | string | No | Meta/Facebook Pixel ID for tracking |
| `utm_content` | string | No | UTM content parameter |
| `utm_campaign` | string | No | UTM campaign parameter |
| `hide_referrer` | boolean | No | Hide referrer information when users click |
| `forward_params` | boolean | No | Forward URL parameters to the destination |
| `og_description` | string | No | Open Graph description for social media previews |
| `expiry_datetime` | string | No | ISO 8601 datetime when the link should expire |
| `expiry_destination` | string | No | Fallback URL after expiry (404 if blank) |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | No | Link ID |
| `url` | string | No | Destination URL |
| `name` | string | No |  |
| `note` | string | No |  |
| `slug` | string | No |  |
| `rules` | string | No |  |
| `domain` | string | No |  |
| `gtm_id` | string | No |  |
| `deleted` | string | No |  |
| `enabled` | string | No |  |
| `cloaking` | string | No |  |
| `full_url` | string | No | Full short-link URL |
| `metadata` | string | No | Your own key-value data attached to the link (string keys and values) |
| `og_image` | string | No |  |
| `og_title` | string | No |  |
| `password` | string | No |  |
| `utm_term` | string | No |  |
| `webhooks` | string | No |  |
| `body_tags` | string | No |  |
| `head_tags` | string | No |  |
| `qr_styles` | string | No |  |
| `block_bots` | string | No |  |
| `ga4_tag_id` | string | No |  |
| `utm_medium` | string | No |  |
| `utm_source` | string | No |  |
| `fb_pixel_id` | string | No |  |
| `utm_content` | string | No |  |
| `notify_slack` | string | No |  |
| `replacements` | string | No |  |
| `utm_campaign` | string | No |  |
| `workspace_id` | string | No |  |
| `expiry_clicks` | string | No |  |
| `hide_referrer` | string | No |  |
| `linkify_words` | string | No |  |
| `forward_params` | string | No |  |
| `og_description` | string | No |  |
| `expiry_datetime` | string | No |  |
| `notify_user_ids` | string | No |  |
| `reddit_pixel_id` | string | No |  |
| `tiktok_pixel_id` | string | No |  |
| `pinterest_tag_id` | string | No |  |
| `public_analytics` | string | No |  |
| `twitter_pixel_id` | string | No |  |
| `snapchat_pixel_id` | string | No |  |
| `created_by_user_id` | string | No |  |
| `expiry_destination` | string | No |  |
| `linkedin_partner_id` | string | No |  |
| `microsoft_uet_tag_id` | string | No |  |
| `skip_social_crawler_tracking` | string | No |  |

### Delete domain

**Slug:** `LINKLY_MCP_DELETE_DOMAIN`

Remove a custom domain from the workspace.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `domain_id` | integer | Yes | The ID of the domain to delete |

### Delete link

**Slug:** `LINKLY_MCP_DELETE_LINK`

Delete a Linkly link by its ID

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `link_id` | integer | Yes | The ID of the link to delete |

### Export clicks

**Slug:** `LINKLY_MCP_EXPORT_CLICKS`

Export detailed click records with full information (timestamp, browser, country, URL, platform, referer, bot, ISP, params).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `end` | string | No | End date in YYYY-MM-DD format (default: yesterday) |
| `bots` | string ("include" | "exclude" | "only") | No | Bot filtering |
| `start` | string | No | Start date in YYYY-MM-DD format (default: 30 days ago) |
| `country` | string | No | Filter by country code |
| `link_id` | integer | No | Filter by specific link ID |
| `platform` | string | No | Filter by platform |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `results` | array | No |  |

### Get analytics

**Slug:** `LINKLY_MCP_GET_ANALYTICS`

Get time-series click analytics data for charting. Returns click counts over time.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `end` | string | No | End date in YYYY-MM-DD format (default: today) |
| `bots` | string ("include" | "exclude" | "only") | No | Bot filtering: include (default), exclude, or only |
| `start` | string | No | Start date in YYYY-MM-DD format (default: 30 days ago) |
| `unique` | boolean | No | Count unique clicks only (by IP) |
| `browser` | string | No | Filter by browser name |
| `country` | string | No | Filter by country code (e.g., 'US', 'GB') |
| `link_id` | integer | No | Filter by specific link ID |
| `platform` | string | No | Filter by platform (e.g., 'desktop', 'mobile', 'tablet') |
| `frequency` | string ("day" | "hour") | No | Time granularity: 'day' (default) or 'hour' |

### Get analytics by

**Slug:** `LINKLY_MCP_GET_ANALYTICS_BY`

Get click counts grouped by a dimension (country, platform, referrer, etc.). Useful for breakdowns and top-N reports.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `end` | string | No | End date in YYYY-MM-DD format (default: today) |
| `bots` | string ("include" | "exclude" | "only") | No | Bot filtering |
| `start` | string | No | Start date in YYYY-MM-DD format (default: 30 days ago) |
| `unique` | boolean | No | Count unique clicks only |
| `counter` | string ("country" | "platform" | "referer" | "isp" | "link_id" | "destination" | "bot_name") | Yes | Dimension to group by (required) |
| `country` | string | No | Filter by country code |
| `link_id` | integer | No | Filter by specific link ID |
| `platform` | string | No | Filter by platform |

### Get clicks

**Slug:** `LINKLY_MCP_GET_CLICKS`

Get recent click data for the workspace

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `link_id` | integer | No | Optional: filter clicks by link ID |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `results` | array | No |  |

### Get link

**Slug:** `LINKLY_MCP_GET_LINK`

Get details of a specific Linkly link by its ID

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `link_id` | integer | Yes | The ID of the link to retrieve |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | No | Link ID |
| `url` | string | No | Destination URL |
| `name` | string | No |  |
| `note` | string | No |  |
| `slug` | string | No |  |
| `rules` | string | No |  |
| `domain` | string | No |  |
| `gtm_id` | string | No |  |
| `deleted` | string | No |  |
| `enabled` | string | No |  |
| `cloaking` | string | No |  |
| `full_url` | string | No | Full short-link URL |
| `metadata` | string | No | Your own key-value data attached to the link (string keys and values) |
| `og_image` | string | No |  |
| `og_title` | string | No |  |
| `password` | string | No |  |
| `utm_term` | string | No |  |
| `webhooks` | string | No |  |
| `body_tags` | string | No |  |
| `head_tags` | string | No |  |
| `qr_styles` | string | No |  |
| `block_bots` | string | No |  |
| `ga4_tag_id` | string | No |  |
| `utm_medium` | string | No |  |
| `utm_source` | string | No |  |
| `fb_pixel_id` | string | No |  |
| `utm_content` | string | No |  |
| `notify_slack` | string | No |  |
| `replacements` | string | No |  |
| `utm_campaign` | string | No |  |
| `workspace_id` | string | No |  |
| `expiry_clicks` | string | No |  |
| `hide_referrer` | string | No |  |
| `linkify_words` | string | No |  |
| `forward_params` | string | No |  |
| `og_description` | string | No |  |
| `expiry_datetime` | string | No |  |
| `notify_user_ids` | string | No |  |
| `reddit_pixel_id` | string | No |  |
| `tiktok_pixel_id` | string | No |  |
| `pinterest_tag_id` | string | No |  |
| `public_analytics` | string | No |  |
| `twitter_pixel_id` | string | No |  |
| `snapchat_pixel_id` | string | No |  |
| `created_by_user_id` | string | No |  |
| `expiry_destination` | string | No |  |
| `linkedin_partner_id` | string | No |  |
| `microsoft_uet_tag_id` | string | No |  |
| `skip_social_crawler_tracking` | string | No |  |

### List domains

**Slug:** `LINKLY_MCP_LIST_DOMAINS`

List all custom domains in the workspace.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `results` | array | No |  |

### List links

**Slug:** `LINKLY_MCP_LIST_LINKS`

List links with sorting and search

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No |  |
| `search` | string | No | Search Query |
| `sort_by` | string | No | Field to sort by |
| `sort_dir` | string ("asc" | "desc") | No | Sort direction |
| `page_size` | integer | No |  |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `results` | array | No |  |

### List link webhooks

**Slug:** `LINKLY_MCP_LIST_LINK_WEBHOOKS`

List all webhook URLs subscribed to a specific link.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `link_id` | integer | Yes | The ID of the link |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `results` | array | No |  |

### List webhooks

**Slug:** `LINKLY_MCP_LIST_WEBHOOKS`

List all webhook URLs subscribed to the workspace. These receive click events for all links.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `results` | array | No |  |

### List workspaces

**Slug:** `LINKLY_MCP_LIST_WORKSPACES`

Return details of authenticated workspace

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `results` | array | No |  |

### Ping

**Slug:** `LINKLY_MCP_PING`

Health check

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `message` | string | Yes | a message to ping , default to Hello From Linkkly |

### Search links

**Slug:** `LINKLY_MCP_SEARCH_LINKS`

Search for links by name, URL, or note. Returns matching links with click statistics.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | Yes | Search query to match against link names, URLs, and notes |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `results` | array | No |  |

### Subscribe link webhook

**Slug:** `LINKLY_MCP_SUBSCRIBE_LINK_WEBHOOK`

Subscribe a webhook URL to receive click events for a specific link.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | The webhook URL to receive click event notifications |
| `link_id` | integer | Yes | The ID of the link |

### Subscribe webhook

**Slug:** `LINKLY_MCP_SUBSCRIBE_WEBHOOK`

Subscribe a webhook URL to receive click events for all links in the workspace.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | The webhook URL to receive click event notifications |

### Test authentication

**Slug:** `LINKLY_MCP_TEST_AUTHENTICATION`

Test API Authentication

### Unsubscribe link webhook

**Slug:** `LINKLY_MCP_UNSUBSCRIBE_LINK_WEBHOOK`

Unsubscribe a webhook URL from a specific link's click events.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | The webhook URL to unsubscribe |
| `link_id` | integer | Yes | The ID of the link |

### Unsubscribe webhook

**Slug:** `LINKLY_MCP_UNSUBSCRIBE_WEBHOOK`

Unsubscribe a webhook URL from workspace click events.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | The webhook URL to unsubscribe |

### Update domain favicon

**Slug:** `LINKLY_MCP_UPDATE_DOMAIN_FAVICON`

Update the favicon URL for a custom domain.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `domain_id` | integer | Yes | The ID of the domain to update |
| `favicon_url` | string | Yes | URL to the favicon image |

### Update link

**Slug:** `LINKLY_MCP_UPDATE_LINK`

Update an existing Linkly link by its ID

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | No | New destination URL |
| `name` | string | No | New nickname for the link |
| `note` | string | No | New private note |
| `gtm_id` | string | No | Google Tag Manager ID |
| `enabled` | boolean | No | Whether the link is active |
| `link_id` | integer | Yes | The ID of the link to update (required) |
| `cloaking` | boolean | No | Enable URL cloaking |
| `metadata` | object | No | Key-value data to attach to the link, such as IDs from your system. Keys you send are merged into the link's existing metadata and other keys are left alone; set a key to null to remove it. Values are stored as strings. Up to 20 keys, keys up to 40 characters, values up to 500 characters. Also included in webhook payloads. |
| `og_image` | string | No | Open Graph image URL |
| `og_title` | string | No | Open Graph title |
| `utm_term` | string | No | UTM term parameter |
| `block_bots` | boolean | No | Block bots |
| `ga4_tag_id` | string | No | Google Analytics 4 tag ID |
| `utm_medium` | string | No | UTM medium parameter |
| `utm_source` | string | No | UTM source parameter |
| `fb_pixel_id` | string | No | Meta Pixel ID |
| `utm_content` | string | No | UTM content parameter |
| `utm_campaign` | string | No | UTM campaign parameter |
| `hide_referrer` | boolean | No | Hide referrer |
| `forward_params` | boolean | No | Forward URL parameters |
| `og_description` | string | No | Open Graph description |
| `expiry_datetime` | string | No | Expiry datetime (ISO 8601) |
| `expiry_destination` | string | No | Fallback URL after expiry |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | string | No | Link ID |
| `url` | string | No | Destination URL |
| `name` | string | No |  |
| `note` | string | No |  |
| `slug` | string | No |  |
| `rules` | string | No |  |
| `domain` | string | No |  |
| `gtm_id` | string | No |  |
| `deleted` | string | No |  |
| `enabled` | string | No |  |
| `cloaking` | string | No |  |
| `full_url` | string | No | Full short-link URL |
| `metadata` | string | No | Your own key-value data attached to the link (string keys and values) |
| `og_image` | string | No |  |
| `og_title` | string | No |  |
| `password` | string | No |  |
| `utm_term` | string | No |  |
| `webhooks` | string | No |  |
| `body_tags` | string | No |  |
| `head_tags` | string | No |  |
| `qr_styles` | string | No |  |
| `block_bots` | string | No |  |
| `ga4_tag_id` | string | No |  |
| `utm_medium` | string | No |  |
| `utm_source` | string | No |  |
| `fb_pixel_id` | string | No |  |
| `utm_content` | string | No |  |
| `notify_slack` | string | No |  |
| `replacements` | string | No |  |
| `utm_campaign` | string | No |  |
| `workspace_id` | string | No |  |
| `expiry_clicks` | string | No |  |
| `hide_referrer` | string | No |  |
| `linkify_words` | string | No |  |
| `forward_params` | string | No |  |
| `og_description` | string | No |  |
| `expiry_datetime` | string | No |  |
| `notify_user_ids` | string | No |  |
| `reddit_pixel_id` | string | No |  |
| `tiktok_pixel_id` | string | No |  |
| `pinterest_tag_id` | string | No |  |
| `public_analytics` | string | No |  |
| `twitter_pixel_id` | string | No |  |
| `snapchat_pixel_id` | string | No |  |
| `created_by_user_id` | string | No |  |
| `expiry_destination` | string | No |  |
| `linkedin_partner_id` | string | No |  |
| `microsoft_uet_tag_id` | string | No |  |
| `skip_social_crawler_tracking` | string | No |  |

### Update workspace

**Slug:** `LINKLY_MCP_UPDATE_WORKSPACE`

Update workspace settings. Only the fields provided are changed; omitted fields keep their current values. Passing webhooks REPLACES the workspace's full webhook subscription list and deletes any subscription not included; use subscribe_webhook / unsubscribe_webhook to add or remove one.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Workspace name |
| `webhooks` | array | No | REPLACES the workspace's full webhook subscription list. Omit to leave webhooks unchanged; prefer subscribe_webhook / unsubscribe_webhook for adding or removing a single URL. |
