# Dub.co MCP for AI Agents AI Agent Connect

> Dub.co MCP lets you manage short links, track click data, and audit URLs directly through your AI client. Create custom slugs, switch workspaces, and pull geographic analytics without leaving your chat.

## Overview
- **Category:** productivity
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_aBVsDssqckCbHJAObMO2hViG9y1Ttf1zTrAJxSpH/ai-agent-connect
- **Tags:** link-shortening, url-tracking, marketing-analytics, custom-domains, click-metrics, redirects

## Description

Imagine you're running a massive marketing campaign and need to spin up dozens of unique tracking links across different domains. Instead of jumping between tabs, logging into a dashboard, and manually configuring redirects, you just tell your agent to handle it. This Connector connects your AI client to Dub.co, turning link management into a conversation. You can ask it to generate a new short link for a specific landing page, check what the open graph tags look like for a blog post, or pull a breakdown of where your traffic is coming from. It handles the heavy lifting of switching between workspaces and organizing links with tags, so you can stay focused on the strategy. Content creators track engagement across social platforms and product managers audit user flows. Having this capability inside your chat makes it much faster to get the data you need. It's one of the many specialized tools available in the Vinkius catalog that turns a multi-step manual process into a single prompt. You don't have to worry about your link looking wrong on a mobile device or your click data not updating. You just ask, and the agent pulls the latest numbers or creates the new asset for you. This setup removes the friction of tool-switching and keeps your workflow moving forward without the usual clicks and copies.

## Tools

### get_link_details
Shows the specific details and performance for one particular short link. This gives you a deep dive into how a single link is behaving.

### get_url_metatags
Shows the Open Graph tags for a specific URL so you can see how it looks on social media. This prevents you from sharing broken or ugly previews.

### list_domains
Shows every domain currently connected to your workspace. You can use this to see which brands are active in your account.

### list_links
Lists all the short links you've created in your workspace. It's a quick way to see every active tracking URL you have.

### create_short_link
Creates a new short link with a custom slug and destination URL. It lets you spin up new tracking links in seconds.

### delete_short_link
Removes a short link from your account permanently. Use this to clean up old links that are no longer needed.

### get_workspace_analytics
Pulls the total click data and aggregate stats for your current workspace. It helps you see how your campaign is performing at a glance.

### list_tags
Shows all the tags you're using to organize your links. This helps you keep your marketing assets categorized and easy to find.

### list_workspaces
Lists all the workspaces you have access to across your account. Use this to jump between different clients or projects quickly.

### update_short_link
Changes the details of an existing short link. This is useful if you need to point a link to a new destination.

## Prompt Examples

**Prompt:** 
```
Create a short link for https://example.com/sale with the slug 'black-friday-deal'.
```

**Response:** 
```
Link created! Your short URL is `dub.sh/black-friday-deal`. It points to `https://example.com/sale`.
```

**Prompt:** 
```
What are the click stats for my current workspace?
```

**Response:** 
```
Here are the latest stats for your workspace:

* **Total Clicks:** 4,502
* **Top Regions:**
  * United States: 55%
  * Canada: 15%
  * UK: 10%
* **Device Breakdown:**
  * Mobile: 70%
  * Desktop: 30%
```

**Prompt:** 
```
Check the metatags for https://example.com/blog-post
```

**Response:** 
```
I've checked the Open Graph tags for that URL:

* **Title:** How to Bake Sourdough
* **Description:** A step-by-step guide to perfect bread.
* **Image:** https://example.com/images/bread.jpg
```

## Capabilities

### Create short links
Generate new destination URLs with custom slugs and domains instantly.

### Pull click analytics
Get a breakdown of geographic data, devices, and total clicks.

### Audit URL metatags
Inspect Open Graph tags before you go live with a link.

### Manage workspaces
Switch between different accounts and domains on the fly.

### Organize with tags
Categorize and filter your links to keep things tidy.

## Use Cases

### Campaign Launch
A marketer needs 10 links for a new shoe launch. They ask the agent to create them all with specific slugs using create_short_link.

### Traffic Audit
A creator wants to know which country is clicking their link most. They ask for a geographic breakdown using get_workspace_analytics.

### Social Check
A social media manager wants to see how a link will look on X. They ask the agent to inspect the metatags using get_url_metatags.

### Workspace Switch
A freelancer manages three different clients. They use the agent to switch domains and list links for each using list_workspaces.

## Benefits

- Faster link creation: Use create_short_link to spin up new tracking URLs in seconds without opening a browser.
- Instant analytics: Get a quick overview of your traffic using get_workspace_analytics to see where clicks come from.
- Better link auditing: Use get_url_metatags to check social preview images and titles before you share a link.
- Easier organization: Use list_tags and list_links to keep your campaign assets sorted and easy to find.
- Multi-workspace access: Use list_workspaces to quickly jump between different brands or projects in one chat.

## How It Works

The bottom line is you get to manage your entire link infrastructure through natural language instead of a dashboard.

1. Subscribe to the Connector and get your API key from your Dub.co account settings.
2. Provide the key to your AI client to establish a secure connection.
3. Ask your agent to create links, check stats, or manage your workspace.

## Frequently Asked Questions

**Can I use Dub.co MCP to create custom links?**
Yes, you can ask your agent to generate new short links with specific slugs and domains instantly.

**Does Dub.co MCP show where my clicks are coming from?**
Yes, it pulls geographic and device data so you can see which regions are engaging most.

**How do I manage different brands with Dub.co MCP?**
You can use it to list and switch between different workspaces and domains associated with your account.

**Can I check if a link looks right on social media?**
Yes, you can ask the agent to inspect the metatags for any URL to see how it will appear.

**Can I delete links using Dub.co MCP?**
Yes, you can tell your agent to permanently remove any short link from your workspace.

**Is Dub.co MCP good for large marketing campaigns?**
It's ideal for teams that need to generate and track many links quickly without manual dashboard work.

**Where do I find my Dub.co API Key?**
Log in to your [**Dub.co Dashboard**](https://app.dub.co/), navigate to your account settings, and you will find the API section where you can create and copy your access token.

**Do I need a Pro plan for analytics?**
While basic link creation works on free tiers, some advanced aggregate analytics and geographic filtering may require a Dub.co Pro plan or higher as per their API policy.