How to Build UTM Links with Claude, ChatGPT or Cursor
Connect Claude to UTMLoop and ask it to tag your links. Every link follows your team's naming rules, and you see each one before it is saved.
Part of our UTM builder hub.
Rahul D Sarker
Founder, UTMLoop
Why not just ask Claude to write the UTM parameters?
You can paste a URL into any AI assistant and ask it to add UTM tags. It will. The trouble is that it has never seen your naming conventions, so it guesses: utm_source=Facebook on Monday, fb on Tuesday, meta on Wednesday. Analytics tools treat each spelling as a separate source, so one channel ends up split across three rows.
Connecting Claude to UTMLoop fixes this. Through the UTMLoop MCP server, Claude builds links inside your workspace, so it uses your templates and your allowed values. If it picks a value your team doesn't allow, UTMLoop rejects the link and tells Claude which values are allowed, and Claude corrects it.
Step 1: Connect Claude to UTMLoop
In Claude on the web or desktop, open Customize, then Connectors, and choose Add custom connector. Paste https://app.utmloop.com/api/mcp and click Add, then Connect. A browser window opens so you can sign in to your UTMLoop account. There is no API key to copy. On a Team or Enterprise plan, an owner adds the connector under Organization settings first, as Anthropic's connector guide (linked under Sources) explains.
In Claude Code, run claude mcp add --transport http utmloop https://app.utmloop.com/api/mcp, then type /mcp to sign in. ChatGPT, Cursor and VS Code work too; the setup steps for each are on the MCP page.
Step 2: Ask for links, and preview them first
Ask in plain language, for example: "Tag our webinar page for LinkedIn, the newsletter and X using the Events template. Show me the links first." Claude checks your project's naming rules, then shows you the exact tagged URLs without saving anything.
When the links look right, say so and Claude saves them. Each one gets a short link on your domain and appears in UTMLoop with the rest of your links, labelled in the activity log as created by an AI assistant.
Step 3: Check links other people built
Paste a link from a colleague or an agency and ask, "Is this link OK to use?" Claude checks it against your rules and lists anything wrong: a missing campaign, a capitalized source, a medium your team doesn't use, or something that looks like personal data in the URL.
You can also ask Claude to find problems across your whole library, such as "Find any links to /pricing that are missing utm_campaign."
Step 4: Ask how a campaign is doing
Ask "How is the spring-launch campaign doing this month, by source?" and Claude answers with visits, QR scans and conversions for that campaign, broken down by source and medium and compared with the month before. It matches the campaign name even if some links spell it with dashes and others with underscores, and points out the split.
Keeping control of what Claude can do
Claude asks before any change, because every UTMLoop tool tells it whether it only reads or makes changes. In UTMLoop, Settings lists every connected app: switch one to read-only, or revoke it and it stops working on its next request.
Read-only access, checking links, searching and reporting, is included on the Free plan. Creating and changing links needs Pro or the Lifetime Deal. See pricing for the full comparison.
Connecting ChatGPT, Cursor and other assistants
The same connection URL works in any assistant that supports remote MCP servers. Copy it from UTMLoop → Settings → MCP access.
ChatGPT: open Settings → Apps → Advanced settings and turn on Developer mode (paid ChatGPT plans). Back in Apps, choose Create, name it UTMloop, paste the URL and pick OAuth, then sign in to UTMLoop.
Cursor and VS Code: use the one-click install button in UTMLoop's settings, or add the URL to your mcp.json. Claude Code: run claude mcp add --transport http utmloop followed by the URL, then type /mcp to sign in.
Free UTMLoop accounts can connect for read-only tools (checking links, searching and reporting). Creating or changing links needs a paid plan. See the MCP server page for the full tool list.
Frequently Asked Questions
Can Claude create UTM links that follow my naming conventions?
Yes, when it is connected to UTMLoop over MCP. Every link is checked against your workspace naming rules before it is saved, and a disallowed value is rejected with the list of allowed values so Claude can fix it.
Do I need an API key to connect Claude to UTMLoop?
No. You add the connection URL as a custom connector and sign in to UTMLoop in your browser. Access can be set to read-only or revoked in UTMLoop at any time.
Does this work with ChatGPT or Cursor?
Yes. The same connection URL works in ChatGPT (with custom connectors), Cursor, VS Code with Copilot agent mode, Claude Code and other MCP clients.
Sources
Join 14,000+ marketing growth leaders
Receive our bi-weekly breakdown of campaign analytics setups, attribution rules, naming tactics, and link-stitching blueprints. Direct to your inbox.
More on utm builders & tools
Back to the guideWhat Is a UTM Builder? A Complete Guide
A UTM builder turns a plain link into a tagged one that tells your analytics exactly where a visitor came from. Here's how it actually works.
The Best Free UTM Builders in 2026, Tested
Several UTM tools offer genuinely free tiers, but free means different things to different vendors. Here's what each one actually includes.
How to Add UTM Parameters in Bitly (and Where It Falls Short)
Bitly has a UTM builder in its link creation flow. Here is how to use it step by step, what it handles well, and where teams outgrow it.