MCP server
The LinkLane MCP server lets Claude work with your links. Ask Claude to make a short link, find last month's busiest link, or tag a batch of links, and it calls the LinkLane API for you.
The server runs on your computer and talks to Claude over stdio. It works in Claude Code and the Claude desktop app. It signs in with your API key, so it needs the Pro plan or above.
Tools
| Tool | What it does | Key scope |
|---|---|---|
linklane_create_link | Create a short link: alias, tags, UTM, expiry, click limit, start time, campaign, domain. | links:write |
linklane_list_links | List or search links by code or destination, with filters and paging. | links:read |
linklane_get_link | Get all settings of one link. | links:read |
linklane_update_link | Change a link. Uses clear_* flags to remove a setting. | links:write |
linklane_get_link_analytics | Clicks, unique clicks, conversions, daily trend, top countries, referrers, devices and browsers. | analytics:read |
linklane_get_account_overview | Link count, lifetime clicks and the last 14 days. | analytics:read |
linklane_get_account_analytics | Analytics across all links. Pro and above. | analytics:read |
linklane_list_campaigns | List campaigns with link count and clicks. | links:read |
linklane_list_domains | List custom domains. | links:read |
Tools that take a link accept its id, its short code (spring-sale) or the full short URL.
The server doesn't delete links. To hide one from your list, Claude archives it. The short URL keeps working. It also only reads campaigns and domains: create and verify those in the app.
1. Create an API key
On the API Keys page in the app, create a key with links:read, links:write and analytics:read. For read-only use, leave out links:write. Copy the key; LinkLane shows it once. See Authentication.
The key can read and change every link in your workspace. Keep it out of git.
2. Install the server
You need Node.js 20 or later and the mcp-server folder from the LinkLane source.
cd mcp-server
yarn install --frozen-lockfile
3. Connect Claude
- Claude Code
- Claude desktop app
Add the server for yourself. This stores it in your local Claude Code config:
claude mcp add linklane -e LINKLANE_API_KEY=ll_live_your_key -- node /absolute/path/to/mcp-server/src/index.js
Or share the setup with your team in a project .mcp.json. Each person keeps the key in their own environment, so it isn't committed:
{
"mcpServers": {
"linklane": {
"command": "node",
"args": ["/absolute/path/to/mcp-server/src/index.js"],
"env": { "LINKLANE_API_KEY": "${LINKLANE_API_KEY}" }
}
}
}
Run /mcp in Claude Code to check that linklane is connected.
- Open Settings → Developer → Edit Config. This opens
claude_desktop_config.json. - Add the server. Use the full path to
node(runwhich node), because the app doesn't use your shell'sPATH. - Quit and reopen the app. The LinkLane tools appear in the tools menu of a new chat.
{
"mcpServers": {
"linklane": {
"command": "/opt/homebrew/bin/node",
"args": ["/absolute/path/to/mcp-server/src/index.js"],
"env": { "LINKLANE_API_KEY": "ll_live_your_key" }
}
}
}
This file stores the key as plain text on your computer.
Settings
| Variable | Required | Default |
|---|---|---|
LINKLANE_API_KEY | Yes | |
LINKLANE_API_URL | No | https://api.linklane.io |
LINKLANE_API_URL must use https://. Plain http:// works only for localhost.
Errors Claude may report
| Status | Meaning |
|---|---|
| 401 | The key is wrong, revoked or missing. |
| 402 | Your plan doesn't include the feature, or you hit a usage limit. The message says which. |
| 403 | The key lacks the scope the tool needs. |
| 429 | The key made more than 100 requests in a minute. |