Overview
dil.im runs a remote Model Context Protocol server, so AI assistants can create and manage your links for you. Ask for “a link for the spring sale that sends iPhones to the App Store” and the assistant calls dil.im and answers with the short link.
| Setting | Value |
|---|---|
| Server URL | https://mcp.dil.im/mcp |
| Transport | Streamable HTTP |
| Sign-in | OAuth 2.1 with your dil.im account (dynamic client registration and client ID metadata documents are supported) |
| Permissions | links:read, links:write, stats:read |
You need a dil.im account with a verified email. If you don’t have one, the sign-in page lets you create it on the way.
Connect Claude
In Claude (web or desktop), open Settings → Connectors, choose Add custom connector, enter a name such as “dil.im” and the server URL https://mcp.dil.im/mcp, then select Connect. Sign in to dil.im and approve access. The dil.im tools are then available in your chats.
Claude Code
claude mcp add --transport http dilim https://mcp.dil.im/mcpThen run /mcp inside Claude Code and choose dil.im to sign in.
Connect ChatGPT
In ChatGPT, open Settings → Apps & Connectors and add a custom connector with the server URL https://mcp.dil.im/mcp and OAuth authentication. Depending on your plan, adding custom connectors may first require turning on developer mode under the advanced settings. After you sign in to dil.im and approve access, mention dil.im in a chat or pick it from the tools menu.
Other MCP clients
Any client that supports remote MCP servers over Streamable HTTP with OAuth can connect. Many clients accept a configuration like this:
{
"mcpServers": {
"dilim": { "url": "https://mcp.dil.im/mcp" }
}
}The client discovers the sign-in endpoints from the server’s protected-resource metadata and opens the dil.im sign-in page the first time you use a tool.
Tools
Every tool is annotated so clients can tell reading from changing. Tools that change things may ask for your confirmation, depending on the client.
| Tool | What it does | Type |
|---|---|---|
create_link | Create a short link. Parameters: url, optional slug, title, utm and routing rules. | creates |
create_campaign_links | Create several links for one campaign with shared UTM tags. Parameters: links (1–100), and campaign_id or campaign_name, optional utm. Each link succeeds or fails on its own. | creates |
update_link | Change a link’s url, title or rules (rules are replaced as a whole). The slug can’t change. | changes (destructive) |
get_link_stats | Clicks for one link over days (1–365, default 30): total, per day, and top countries, devices, operating systems, browsers, referrers, languages and rules. Bots excluded. | read-only |
list_top_links | Most-clicked links over days, up to limit (1–50). | read-only |
get_qr_code | A PNG QR code for a link. | read-only |
Tools that take a link accept its short URL (dil.im/blue-fox), its slug (blue-fox) or its id (lnk_…).
Example prompts
- “Shorten https://acme.com/spring with dil.im.”
- “Make a dil.im link for the spring sale: iPhones to the App Store, Android to Google Play, everyone in Türkiye who speaks Turkish to acme.com/tr.”
- “Create campaign links for Instagram, the newsletter and the podcast, campaign spring.”
- “How did dil.im/spring-sale do this week? Which countries clicked most?”
- “Point dil.im/spring-sale to the summer page instead.”
- “Give me a QR code for dil.im/spring-sale.”
Access, limits and disconnecting
The assistant acts with the permissions you approved, in your workspace, and only when it calls a tool. It can’t see your password, your API keys or other workspaces. The same limits apply as for the API: 60 requests a minute on Free, counted separately for each connected app, and the workspace’s monthly link limit (50 on Free), shared with the dashboard and API.
To remove access, open Connected apps in the dashboard and disconnect the app. Its access ends immediately.
Troubleshooting
- Sign-in loops or fails: make sure your email is verified — check your inbox for the dil.im verification email, then connect again.
- “Rate limit exceeded”: wait a minute; new accounts have lower limits for their first days.
- A destination is refused: links to other URL shorteners, raw IP addresses and known-harmful sites aren’t allowed. See the acceptable use policy.
- Still stuck? Write to [email protected].