Skip to content

Manage short links with AI assistants: the BN Shortener MCP server

Connect Claude, Claude Code, Cursor or VS Code to the hosted MCP server at b1.lc/mcp and create, check and report on short links by asking in plain language.

By Shortlen Editorial Updated 7 min read

A soft beige still life of a glass prism splitting light, suggesting AI answers
The short answerAdd the hosted MCP server https://b1.lc/mcp to your AI assistant as a custom connector (in Claude Code: claude mcp add --transport http bn-shortener https://b1.lc/mcp), sign in to BN Shortener and approve what it may do. The assistant then gets 28 tools to create links, run Launch Check, read stats and build QR codes, using your own permissions and limits.

Key takeaways

  • MCP (Model Context Protocol) is an open standard that lets AI assistants call outside tools; BN Shortener runs a hosted MCP server at https://b1.lc/mcp that you can use today.
  • It exposes 28 tools: links, stats, bulk creation, Launch Check, Link Health, URL safety, QR codes, bio pages, campaigns, UTM presets, smart rules, A/B tests and domains.
  • You sign in with OAuth and choose the permissions on BN's consent page; every tool call is a normal API call with your plan limits and rate limits.
  • Give a reporting assistant read-only access, and keep deletions behind a confirmation; deleted links stay in Trash for 30 days.
  • Clients that support remote servers connect directly; clients that only run local servers can use the npm bridge @bn-shortner/shortener-mcp.

You can manage short links by asking an AI assistant in plain language: “Shorten these five URLs for the autumn newsletter and check they are ready to send.” BN Shortener (the service behind Shortlen) runs a hosted MCP server at https://b1.lc/mcp that gives assistants such as Claude, Claude Code, Cursor and VS Code 28 tools for links, QR codes, stats and checks. This guide covers setup, what each tool does, useful prompts and how to keep it safe.

The Model Context Protocol is an open standard for connecting AI applications to outside systems. The project’s own analogy is a USB-C port for AI: a server describes its tools once, and any compatible assistant can use them. Claude, ChatGPT, VS Code and Cursor are among the clients that support it.

For link work, that changes three things:

  • No context switching. You are already drafting the email or the launch plan in the assistant; the links get made in the same conversation.
  • Multi-step jobs in one request. “Create the links, put them in a campaign, run Launch Check, list what failed” is four or five API calls the assistant chains for you.
  • Questions instead of dashboards. “Which of my links lost the most clicks this week?” is faster to ask than to filter.

It does not replace the REST API for systems that must run unattended and identically every time. Use MCP where a person is in the loop, the API where nobody is.

How do I connect an AI assistant to BN Shortener?

You need a BN Shortener account (free to start) and an assistant that supports remote MCP servers. The integrations page lists the local bridge and the other connectors.

Claude (claude.ai and the desktop app)

  1. Open Customize > Connectors, choose + Add, then Add custom connector.
  2. Name it “BN Shortener” and enter https://b1.lc/mcp.
  3. Keep sign-in on, add the connector, then connect. Claude opens BN Shortener’s consent page.
  4. Choose what the assistant may do and approve.

Anthropic’s help article notes that Free Claude accounts are limited to one custom connector, and that on Team and Enterprise an owner adds the connector for the organisation first. Menu names change; follow Anthropic’s current steps if they differ.

Claude Code

claude mcp add --transport http bn-shortener https://b1.lc/mcp

Then run /mcp inside Claude Code and follow the browser sign-in. Claude Code stores and refreshes the token. Add --scope user to make the server available in all your projects, or --scope project to share it with your team through a .mcp.json file (each person still signs in with their own account).

Cursor

Add a remote server to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "bn-shortener": { "url": "https://b1.lc/mcp" }
  }
}

VS Code and other clients

Add a remote server of type http with the URL https://b1.lc/mcp. Clients that cannot complete a browser sign-in can use an API key instead; the MCP page in the BN docs shows how. For clients that only run local (stdio) servers, use the bridge package: npx -y @bn-shortner/shortener-mcp with your API key in BN_API_KEY.

The server speaks streamable HTTP and supports MCP protocol versions 2025-11-25, 2025-06-18 and 2025-03-26, which covers current clients.

An API quickstart code card next to tiles for the REST API, webhooks and MCP
The MCP server sits on top of the same API your scripts use, with the same permissions and limits.

What can the assistant do? All 28 tools

Every tool is a normal API call made as you, so plan limits, rate limits and permissions apply exactly as they do in code.

AreaToolsPermission
Linkscreate_link, list_links, get_link, update_link, archive_linkread / write
Links (remove)delete_link (moves to Trash)delete
Volumebulk_create_links (up to 100 URLs per call)write
Statsget_link_statsread
Checksrun_launch_check, get_link_health, check_url_safetywrite / read
QR codescreate_qr_code, list_qr_codes, get_qr_code_image, get_qr_code_statswrite / read
Bio pagescreate_bio_page, add_bio_page_link, list_bio_pageswrite / read
Campaigns and UTMlist_campaigns, create_campaign, add_links_to_campaign, get_campaign_stats, list_utm_presetsread / write
Routing and testsadd_smart_rule, start_ab_test, get_ab_test_resultswrite / read
Accountget_account_usage, list_domainsread

A few details that matter in practice:

  • create_link scans the destination for threats before the link goes live, exactly as the dashboard does.
  • get_link_stats counts people, not bots or link previews, and breaks clicks down by date, country, city, device, browser, referrer, UTM campaign and app opens.
  • run_launch_check runs BN’s pre-send checks (destination up, redirects, HTTPS, mobile, UTM tags, link previews, QR print quality, security) and returns ready, ready with warnings, or not ready, with what to fix. It shares the limit of 120 checks per hour.
  • get_qr_code_image returns PNG to show in the chat or SVG for print.
  • get_link_health lists links with a problem, most severe first: destination down, blocked or flagged, Launch Check not ready, expiring, busy links without monitoring, links that went quiet.

Prompts that work well

Be specific about names, campaigns and what “done” means. The assistant picks the tools; you check the result.

Launch prep

Shorten these 8 product URLs on go.yourbrand.com, tag them with our “Newsletter” UTM preset, put them in a new campaign called “Autumn 2026”, then run Launch Check on each and list anything that is not ready.

Tools used: list_domains, list_utm_presets, create_campaign, bulk_create_links, add_links_to_campaign, run_launch_check.

Weekly reporting

Compare clicks for the “Autumn 2026” campaign this week with last week. Which three links grew most, and which countries drove the growth?

Tools used: get_campaign_stats, get_link_stats.

Clean-up

Show me every link that needs attention. For any link expiring this week, tell me its clicks in the last 30 days so I can decide whether to extend it.

Tools used: get_link_health, get_link_stats.

Print materials

Create a dynamic QR code for b1.lc/AbC9 named “Store window poster” and give me the SVG.

Tools used: create_qr_code, get_qr_code_image.

Testing and routing

Start an A/B test on the spring-sale link between the current page and https://example.com/spring-b. Also send visitors from mobile devices on that link to https://example.com/spring-mobile.

Tools used: start_ab_test, add_smart_rule. Smart rules and A/B tests are Pro features in the published price list.

Before you share any URL

Is https://example-offer.net/claim safe to send to customers?

Tool used: check_url_safety, which scans without creating a link.

If your tags are messy, sort the naming out first; an assistant will happily repeat whatever spelling it sees. Our guide to UTM naming conventions has a starter set.

A pre-launch checklist marked ready to launch
Ask the assistant to run Launch Check before any send; it reports what to fix in plain language.

How do I keep an AI assistant from making a mess?

An assistant with write access can do in seconds what would take you an hour, including the wrong thing. The MCP project’s own security guidance and Anthropic’s connector guidance agree on the basics: connect only trusted servers, grant the least access that does the job, and review tool calls. Applied to links:

  1. Choose permissions per assistant. BN’s consent page offers read, write, delete and webhooks; assistants never get admin. A reporting assistant needs only read. A launch helper needs read + write. Grant delete only if you really want the assistant to remove links.
  2. Do not “Allow always” for deletions. delete_link moves a link to Trash: visitors get “not found” at once. You can restore it from Trash for 30 days, but the outage in between is real.
  3. Watch for prompt injection. If you ask an assistant to read a web page or email and then act on your links, text in that content could try to steer it. Keep write tools off during open-ended research, and read the tool call before approving it.
  4. Use the history. Every change made through MCP is a normal API change: it appears in the link’s history (with per-field rollback) and, on Business and Enterprise, in the team audit log.
  5. Disconnect when you are done. Settings > Security > Connected Apps lists every assistant connected to your account. Removing one ends its access.
  6. Mind your limits. Plan limits (for example 100 new links a month on Free) apply to the assistant’s calls too; get_account_usage tells it, and you, what is left.

MCP, API, CLI or dashboard: which should you use?

You want to…Best tool
Ask questions and run one-off, multi-step jobsMCP in your assistant
Run the same job on a schedule or inside your productREST API
Script from a terminal or CI jobbn command line (download at b1.lc/cli/bn)
Shorten hundreds of links from a spreadsheetImport or bulk create; see bulk shortening from a CSV
Design a QR code or a bio page visuallyDashboard

They all use the same account and the same rules, so you can mix them: create links with the API, ask the assistant about them on Monday, fix one in the dashboard.

Try it

The MCP server, the API and the bn command line are usable today on every plan, Free included. Create a free account at b1.lc, add https://b1.lc/mcp to your assistant and ask it to shorten your first link. For everything else developers can use, see the developer platform; pricing lists what each plan includes.

Sources

  1. AI assistants (MCP), BN Shortener developer docs, undated. Checked 2026-10-23.
  2. What is the Model Context Protocol (MCP)?, Model Context Protocol, undated. Checked 2026-10-23.
  3. Security Best Practices, Model Context Protocol, 2026-07-28 (specification version). Checked 2026-10-23.
  4. Connect Claude Code to tools via MCP, Anthropic (Claude Code docs), undated. Checked 2026-10-23.
  5. Getting started with custom connectors using remote MCP, Anthropic (Claude Help Center), undated ("updated over 3 weeks ago"). Checked 2026-10-23.
  6. Model Context Protocol (MCP), Cursor docs, undated. Checked 2026-10-23.
  7. Building MCP servers for ChatGPT and API integrations, OpenAI developer docs, undated. Checked 2026-10-23.

Questions people also ask

What is an MCP server?

An MCP server is a service that exposes tools to AI assistants through the Model Context Protocol, an open standard for connecting AI applications to outside systems. The assistant reads the list of tools, decides when to call one, and shows you the result. BN Shortener's server at https://b1.lc/mcp exposes 28 link tools.

Which AI assistants can use the BN Shortener MCP server?

Any client that can connect to a remote MCP server over HTTP. BN's docs give setup steps for Claude (custom connector), Claude Code, VS Code and Cursor. Other clients that accept a custom remote server URL can connect the same way, following their own setup steps.

Is it safe to let an AI assistant manage my links?

It is as safe as the permissions you grant. You choose read, write, delete and webhooks on BN's consent page, apps never get admin, and you can disconnect the assistant at any time under Settings > Security > Connected Apps. Review tool calls before approving them, especially deletions.

Do I need to install anything?

No, for clients that support remote servers: you add the URL and sign in. For clients that only run local (stdio) servers, use the bridge package: npx -y @bn-shortner/shortener-mcp with your API key in BN_API_KEY.

Does the MCP server cost extra?

No. Every tool call is a normal API call, and API access is included on every plan, Free too. Your plan's limits (for example 100 new links a month on Free) and its API rate tier apply to calls made by the assistant.

Can the assistant create links on my own domain?

Yes, once the domain is added and verified in the dashboard. The list_domains tool shows the domains your links can use (b1.lc, b0.lc and your custom domains) and whether each one is ready, so the assistant can pick the right one.

Try it on your next link

The Free plan includes a custom domain, 5 dynamic QR codes, a bio page and click analytics. No credit card.