mcp
v0.8.2MCP server for the bare.link API: create and manage short links and landing pages, set their design and photos, tags, country rules, webhooks, read analytics…
The bare.link API as an MCP server: create and manage short links and landing pages, set their design and photos, read analytics, get QR codes, check that destinations still work and manage the team — from Claude Desktop, Claude Code, Cursor, Codex, OpenCode or any MCP client, in plain language. 1. In the bare.link panel, go to Settings → API → New key and choose the permissions you need (links:write for links, landings:write for a landing's design and content, analytics:read for figures, team:write to invite editors). The key is shown once. 2.
Summary extracted from the README.
@barelink/mcp
The bare.link API as an MCP server: create and manage short links and landing pages, set their design and photos, read analytics, get QR codes, check that destinations still work and manage the team — from Claude Desktop, Claude Code, Cursor, Codex, OpenCode or any MCP client, in plain language.
«Create a landing for María with the Night design, this photo and these three buttons.» · «Which of my landings had the most visits this week?» · «Change Lucía's photo to this one.»
Setup
- In the bare.link panel, go to Settings → API → New key and choose the permissions you need (
links:writefor links,landings:writefor a landing's design and content,analytics:readfor figures,team:writeto invite editors). The key is shown once. - Add the server to your client with the key in
BARELINK_API_KEY.
Claude Desktop
Settings → Developer → Edit Config, then add:
{
"mcpServers": {
"barelink": {
"command": "npx",
"args": ["-y", "@barelink/mcp"],
"env": { "BARELINK_API_KEY": "bl_…" }
}
}
}
Claude Code
claude mcp add barelink -e BARELINK_API_KEY=bl_… -- npx -y @barelink/mcp
Cursor, Codex, OpenCode, others
Any client that runs stdio MCP servers takes the same three things: command npx, arguments -y barelink-mcp, environment BARELINK_API_KEY.
Environment
| Variable | ||
|---|---|---|
BARELINK_API_KEY |
required | A key from Settings → API. |
BARELINK_API_URL |
optional | The API's base address. Default: https://app.bare.link/v2/api/v1. |
Tools
| Tool | What it does |
|---|---|
me |
The account this key opens and its permissions. |
designs |
The ready-made looks: six Landings (design) and six Scenes (scene). |
list_links |
The account's links with their visits; filter by type, tag, search or health (down / ok / unchecked, from the nightly check); page. |
get_link |
One link; a landing comes with its content and button ids. |
create_link |
A redirect, or a landing with its look and content in one call; domain puts it on one of the user's domains; country_rule sets its country rule; paused creates it switched off to review first; idempotency_key makes a retry safe. |
create_links |
Up to 50 links in one call (a CSV of creators), one result per item with its own status. |
update_link |
Name, short address (slug), destination, second page and its minutes (seconds); switch a link off or on; the link's tags; its country rule. |
update_links |
The same change on up to 50 links in one call (pause, tag, move the destination, a country rule). |
delete_links |
Delete up to 50 links in one call (the client asks you first). |
set_landing_photo_file |
A landing's photo — or the Scene's background — from a file on this computer. |
get_landing |
A landing's content on its own: bio, socials, buttons with their ids and days, 18+ screen, on/off. |
update_landing |
A landing's design, Scene, photos, bio, socials, buttons (with the days each one shows), 18+ screen, on/off. |
link_qr |
The link's QR code as a PNG image (or SVG text). |
check_link |
Does it still work? Opens a redirect's destination, or a landing's buttons, and says what answered. |
delete_link |
Delete a link (the client asks you first). |
list_tags |
The account's tags with how many links carry each. |
create_tag |
A tag by name (naming one in create_link or update_link creates it too). |
link_analytics |
One link's last 30 days, with the taps of each button and social icon of a landing. |
account_analytics |
The account's last 7, 30 or 90 days. |
links_analytics |
Every link's visits and button taps over 7, 30 or 90 days, most visited first; also as CSV. |
team |
Members, permissions and pending invitations. |
invite_editor |
Invite an editor by email. |
set_editor_permissions |
What an editor may do. |
list_webhooks / get_webhook |
The account's webhooks, and one with its last deliveries. |
create_webhook |
An https address and its events (link.milestone and link.destination_down come from the nightly check); the secret is answered once. |
update_webhook / delete_webhook / test_webhook |
Change its events or switch, delete it, send a ping. |
list_exceptions / create_exception / update_exception / delete_exception |
Country rules: visitors from a country go to another page (a country may have several pages). |
set_exception_tags |
Use a country rule in tags: all their links follow it, live, except where a link has its own change. |
remove_country_from_links |
Some of a tag’s links stop sending a country to the tag’s page (follow: true puts it back). On one link, country_rule in update_link. |
list_domains |
The domains a link may be created on (the main one, the system's, the user's own). |
Field names are the API's own (photo_url, design, buttons…): the reference at the panel's Help → API, the OpenAPI file at /api/v1/openapi.json and the agent instructions at /help/api/AGENTS.md apply unchanged.
Development
npm install
npm test # six end-to-end tests over an in-memory MCP pipe, with a fake API
npm run build # dist/
BARELINK_API_KEY=bl_… node dist/index.js # run it by hand (speaks MCP over stdio)
License
MIT