# Linkly MCP

```json
{
  "name": "Linkly MCP",
  "slug": "linkly_mcp",
  "url": "https://composio.dev/toolkits/linkly_mcp",
  "markdown_url": "https://composio.dev/toolkits/linkly_mcp.md",
  "logo_url": "https://logos.composio.dev/api/linkly",
  "categories": [
    "marketing & social media"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-11-28T05:44:33.740Z"
}
```

![Linkly MCP logo](https://logos.composio.dev/api/linkly)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Linkly MCP or direct API to create short links, manage custom domains, analyze clicks, and configure webhooks through natural language.

## Summary

Linkly MCP is a hosted MCP server for creating and managing Linkly short links.
It brings custom domains, click analytics, exports, and webhooks into one place.

## Categories

- marketing & social media

## Toolkit Details

- Tools: 25

## Images

- Logo: https://logos.composio.dev/api/linkly

## Authentication

- **Dcr Oauth**
  - Type: `custom`
  - Description: Dcr Oauth authentication for Linkly MCP.
  - Setup:
    - Configure Dcr Oauth credentials for Linkly MCP.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Create branded short links for campaigns
- Review click analytics for recent links
- Export Linkly clicks for monthly reporting

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `LINKLY_MCP_BATCH_DELETE_LINKS` | Batch delete links | Batch delete multiple links |
| `LINKLY_MCP_CREATE_DOMAIN` | Create domain | Add a custom domain to the workspace. The domain must be configured to point to Linkly's servers. |
| `LINKLY_MCP_CREATE_LINK` | 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. |
| `LINKLY_MCP_DELETE_DOMAIN` | Delete domain | Remove a custom domain from the workspace. |
| `LINKLY_MCP_DELETE_LINK` | Delete link | Delete a Linkly link by its ID |
| `LINKLY_MCP_EXPORT_CLICKS` | Export clicks | Export detailed click records with full information (timestamp, browser, country, URL, platform, referer, bot, ISP, params). |
| `LINKLY_MCP_GET_ANALYTICS` | Get analytics | Get time-series click analytics data for charting. Returns click counts over time. |
| `LINKLY_MCP_GET_ANALYTICS_BY` | Get analytics by | Get click counts grouped by a dimension (country, platform, referrer, etc.). Useful for breakdowns and top-N reports. |
| `LINKLY_MCP_GET_CLICKS` | Get clicks | Get recent click data for the workspace |
| `LINKLY_MCP_GET_LINK` | Get link | Get details of a specific Linkly link by its ID |
| `LINKLY_MCP_LIST_DOMAINS` | List domains | List all custom domains in the workspace. |
| `LINKLY_MCP_LIST_LINKS` | List links | List links with sorting and search |
| `LINKLY_MCP_LIST_LINK_WEBHOOKS` | List link webhooks | List all webhook URLs subscribed to a specific link. |
| `LINKLY_MCP_LIST_WEBHOOKS` | List webhooks | List all webhook URLs subscribed to the workspace. These receive click events for all links. |
| `LINKLY_MCP_LIST_WORKSPACES` | List workspaces | Return details of authenticated workspace |
| `LINKLY_MCP_PING` | Ping | Health check |
| `LINKLY_MCP_SEARCH_LINKS` | Search links | Search for links by name, URL, or note. Returns matching links with click statistics. |
| `LINKLY_MCP_SUBSCRIBE_LINK_WEBHOOK` | Subscribe link webhook | Subscribe a webhook URL to receive click events for a specific link. |
| `LINKLY_MCP_SUBSCRIBE_WEBHOOK` | Subscribe webhook | Subscribe a webhook URL to receive click events for all links in the workspace. |
| `LINKLY_MCP_TEST_AUTHENTICATION` | Test authentication | Test API Authentication |
| `LINKLY_MCP_UNSUBSCRIBE_LINK_WEBHOOK` | Unsubscribe link webhook | Unsubscribe a webhook URL from a specific link's click events. |
| `LINKLY_MCP_UNSUBSCRIBE_WEBHOOK` | Unsubscribe webhook | Unsubscribe a webhook URL from workspace click events. |
| `LINKLY_MCP_UPDATE_DOMAIN_FAVICON` | Update domain favicon | Update the favicon URL for a custom domain. |
| `LINKLY_MCP_UPDATE_LINK` | Update link | Update an existing Linkly link by its ID |
| `LINKLY_MCP_UPDATE_WORKSPACE` | 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. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
```python
pip install composio composio_openai openai
```

```typescript
npm install @composio/core @composio/openai openai
```

#### Path 1, Step 2: Create a Composio session

Initialize Composio with the OpenAI Responses provider and create a session scoped to Linkly MCP
```python
import json
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()

session = composio.create(user_id="your-user-id", toolkits=["linkly_mcp"])
tools = session.tools()
```

```typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["linkly_mcp"] });
const tools = await session.tools();
```

#### Path 1, Step 3: Run Linkly MCP tools with your agent

Send a request, execute the Linkly MCP tool calls through the session, and print the final answer
```python
response = client.responses.create(
    model="gpt-5.6-sol",
    tools=tools,
    input=[{"role": "user", "content": "Create a Linkly short link for https://example.com/summer-sale with the slug summer-sale"}],
)

while True:
    tool_calls = [o for o in response.output if o.type == "function_call"]
    if not tool_calls:
        break
    results = composio.provider.handle_tool_calls(response=response, session=session)
    response = client.responses.create(
        model="gpt-5.6-sol",
        tools=tools,
        previous_response_id=response.id,
        input=[
            {"type": "function_call_output", "call_id": call.call_id, "output": json.dumps(results[i])}
            for i, call in enumerate(tool_calls)
        ],
    )

print(response.output_text)
```

```typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Create a Linkly short link for https://example.com/summer-sale with the slug summer-sale" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and your agent framework
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
```

#### Path 2, Step 2: Create a session with MCP enabled

Create a session scoped to Linkly MCP and read its MCP URL and headers
```python
from composio import Composio

composio = Composio()
session = composio.create(user_id="your-user-id", toolkits=["linkly_mcp"], mcp=True)
```

```typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["linkly_mcp"],
  mcp: true,
});
```

#### Path 2, Step 3: Connect your agent to the MCP server

Pass the session's MCP URL and headers to your agent and run a Linkly MCP request
```python
import asyncio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions, AssistantMessage, TextBlock

options = ClaudeAgentOptions(
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": session.mcp.headers,
        }
    },
    system_prompt="You are a helpful assistant with access to Linkly MCP tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("Create a Linkly short link for https://example.com/summer-sale with the slug summer-sale")
        async for message in client.receive_response():
            if isinstance(message, AssistantMessage):
                for block in message.content:
                    if isinstance(block, TextBlock):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Create a Linkly short link for https://example.com/summer-sale with the slug summer-sale",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
```

## Why Use Composio?

### 1. AI Native Linkly MCP Integration

- Supports both Linkly MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution
- Rich coverage for creating links, managing domains, and querying click data

### 2. Managed Auth

- Connect Linkly MCP with your own DCR OAuth credentials
- Central place to manage, scope, and revoke Linkly MCP access
- Per user and per environment credentials instead of hard-coded secrets

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access Linkly MCP
- Scoped, least privilege access to Linkly MCP resources
- Full audit trail of agent actions to support review and compliance

## Use Linkly MCP with any AI Agent Framework

Choose a framework you want to connect Linkly MCP with:

- [ChatGPT](https://composio.dev/toolkits/linkly_mcp/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/linkly_mcp/framework/claude-cowork)

## Related Toolkits

- [Reddit](https://composio.dev/toolkits/reddit) - Reddit is a social news platform with thriving user-driven communities (subreddits). It's the go-to place for discussion, content sharing, and viral marketing.
- [Facebook](https://composio.dev/toolkits/facebook) - Facebook is a social media and advertising platform for businesses and creators. It helps you connect, share, and manage content across your public Facebook Pages.
- [Linkedin](https://composio.dev/toolkits/linkedin) - LinkedIn is a professional networking platform for connecting, sharing content, and engaging with business opportunities. It's the go-to place for building your professional brand and unlocking new career connections.
- [Active campaign](https://composio.dev/toolkits/active_campaign) - ActiveCampaign is a marketing automation and CRM platform for managing email campaigns, sales pipelines, and customer segmentation. It helps businesses engage customers and drive growth through smart automation and targeted outreach.
- [ActiveTrail](https://composio.dev/toolkits/active_trail) - ActiveTrail is a user-friendly email marketing and automation platform. It helps you reach subscribers and automate campaigns with ease.
- [Adobe Marketing Agent MCP](https://composio.dev/toolkits/adobe_marketing_agent_mcp) - Adobe Marketing Agent MCP is Adobe's hosted MCP service that exposes marketing context, preferences, and agent capabilities. Use it to provide agents with campaign, audience, and analytics context via a managed integration.
- [Ahrefs](https://composio.dev/toolkits/ahrefs) - Ahrefs is an SEO and marketing platform for site audits, keyword research, and competitor insights. It helps you improve search rankings and drive organic traffic.
- [Aimfox](https://composio.dev/toolkits/aimfox) - Aimfox is a LinkedIn outreach platform for campaigns, leads, conversations, templates, lists, and analytics. It helps teams manage outreach workflows and track campaign performance in one place.
- [Amcards](https://composio.dev/toolkits/amcards) - AMCards lets you create and mail personalized greeting cards online. Build stronger customer relationships with easy, automated card campaigns.
- [AnnounceKit MCP](https://composio.dev/toolkits/announcekit_mcp) - AnnounceKit is a product communication platform for changelogs, feedback, and roadmaps. It helps teams share updates and organize customer input in one place.
- [AppFollow](https://composio.dev/toolkits/appfollow) - AppFollow is an app-store analytics platform for ratings, reviews, keywords, and app performance. It helps teams improve app visibility, understand user feedback, and manage review workflows.
- [AWeber](https://composio.dev/toolkits/aweber) - AWeber is an email marketing platform for creating campaigns, lists, and landing pages. It helps businesses automate email outreach and measure subscriber engagement.
- [Beamer](https://composio.dev/toolkits/beamer) - Beamer is a news and changelog platform for in-app announcements and feature updates. It helps companies boost user engagement by sharing news where users are most active.
- [Beehiiv](https://composio.dev/toolkits/beehiiv) - Beehiiv is a newsletter platform for creating and managing publications and subscribers. It helps grow audience engagement and monetize your mailing list.
- [beehiiv MCP](https://composio.dev/toolkits/beehiiv_mcp) - beehiiv MCP is a hosted MCP server for managing beehiiv newsletters, posts, subscribers, and analytics. It gives AI assistants structured access to your publication workflows without bespoke integration code.
- [Benchmark email](https://composio.dev/toolkits/benchmark_email) - Benchmark Email is a platform for creating, sending, and tracking email campaigns. It's built to help you engage audiences and analyze results—all in one place.
- [Bigmailer](https://composio.dev/toolkits/bigmailer) - BigMailer is an email marketing platform for managing multiple brands with white-labeling and automation. It helps teams streamline campaigns and simplify integration with Amazon SES.
- [Bird MCP](https://composio.dev/toolkits/bird_mcp) - Bird is an omnichannel messaging platform for SMS, email, WhatsApp, voice, and Apple Messages. It centralizes messaging operations, contacts, templates, and delivery analytics in one workspace.
- [Bitly](https://composio.dev/toolkits/bitly) - Bitly is a link management platform for shortening, customizing, sharing, and tracking links and QR codes. It helps teams create branded links and measure engagement across campaigns.
- [BlueFox Email](https://composio.dev/toolkits/bluefox_email) - BlueFox Email is an email API for managing contacts, subscriber lists, and sending transactional and triggered messages. Use it to reliably send transactional and triggered emails and manage subscribers at scale.

## Frequently Asked Questions

### Do I need my own developer credentials to use Linkly MCP with Composio?

Yes, Linkly MCP requires you to configure your own Dcr OAuth credentials. Once set up, Composio handles secure credential storage and management for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
