MCP server and API

LotsLink for
your AI agent.

Create short links and QR codes on lots.link or your own domain, organise them into projects and workspaces, and read clicks by source, device and location. Links, clicks and QR codes are free and unlimited.

https://api.lots.link/mcp
45Tools

Ask your agent, for example.

Once LotsLink is connected, plain requests like these work.

  • “Make short links for these five posts in the October campaign project.”
  • “Which link got the most clicks last week, and from where?”
  • “Create a QR code for our event page.”

Connect in two minutes.

Claude

Settings → Connectors → Add custom connector. Paste the URL, connect, and sign in with your Lots account.

ChatGPT

Plugins → + → Add custom MCP server. Name it, enter the URL under Connection, choose OAuth, tick I understand and want to continue, then Create as a plugin. Install it, sign in, and type @ in a new chat to pick it. Adding a custom connector with full read and write depends on your ChatGPT plan, and on some plans only admins can add one. Check OpenAI's current plan details.

Claude Code

claude mcp add --transport http lots-link https://api.lots.link/mcp

Codex

codex mcp add lots-link --url https://api.lots.link/mcp

Cursor, Windsurf and others

{
  "mcpServers": {
    "lots-link": {
      "url": "https://api.lots.link/mcp"
    }
  }
}

Cloud agents without MCP

Give the agent https://api.lots.link/docs.md and an API key from lotstech.com/api. It calls the REST API with Authorization: Bearer <key>.

Every server uses OAuth: your agent acts as you, inside your own roles and workspaces. You can change what it may do, or disconnect it, at any time in Connected apps.

45 tools, also REST endpoints.

Each tool is available over MCP and as a REST endpoint under https://api.lots.link/api/v1/lotslink.

Accept Invitation

Join a workspace from an invitation sent to your LotsLink account's email address (the match ignores letter case). Pass invitation_id from lotslink_list_my_invitations, or the token at the end of the invite link (https://lots.link/invite/<token>). Each invitation works once and expires after 7 days. Someone who was removed before rejoins with the invited role.

Add Custom Domain

Add your own custom domain, or your free *.lots.link subdomain, to a workspace. Owner or admin only. Each person gets one free *.lots.link subdomain, ready at once with no DNS changes. Your own custom domain is billed daily from a plan or credits (see lotslink_get_billing); add the DNS records this tool returns, then call lotslink_verify_custom_domain.

Archive Project

Archive a project (soft delete; owners and admins). Archived projects are hidden from the main project list but can be retrieved by listing projects with include_archived=true. Links assigned to archived projects keep working. Restore with update_project is_archived=false.

Bulk Activate Links

Activate several links at once (up to 100). Sets is_active=true. Owners and admins can change any link; members only links they created; viewers none. Links you may not change, or that are not in the workspace, are left alone and listed in failed; succeeded and count list the rest.

Bulk Deactivate Links

Deactivate several links at once (up to 100) so they stop redirecting, without deleting them. Owners and admins can change any link; members only links they created; viewers none. Links you may not change, or that are not in the workspace, are left alone and listed in failed; succeeded and count list the rest.

Bulk Delete Links

Permanently delete several links at once (up to 100), with their click statistics and QR codes. This cannot be undone. Owners and admins can delete any link; members only links they created; viewers none. Links you may not delete, or that are not in the workspace, are left alone and listed in failed; succeeded and count list the rest.

Cancel Invitation

Cancel a pending invitation so its link stops working. Owner or admin only. Get invitation_id from lotslink_list_workspace_members (invitations[].id).

Change Member Role

Change a workspace member's role to admin, member or viewer. Owner or admin only. The owner's role cannot be changed, an admin cannot change another admin, and ownership cannot be given by a role change. Get member_id from lotslink_list_workspace_members.

Choose a LotsLink plan or add credits

Create a checkout link. Pass plan (starter, pro or business) and cycle (monthly or annual) for custom domains, or amount_usd (10 to 1000) to add LotsTech Credits. Give the link to the person to pay in their browser; never ask for card details in chat.

Create Link

Create a short link on lots.link, your free *.lots.link subdomain or a verified custom domain in the workspace, with an optional custom slug, project, expiry and UTM parameters. Links and clicks are free and unlimited; the only limit is up to 1,000 new links per person in any 24 hours. A link on your own custom domain needs that domain to be funded by a plan or credits. Known phishing or malware destinations are refused. To make a QR code for the new link, call lotslink_create_qr_code with the returned link id.

Create Project

Create a project for organizing links within a workspace, optionally with client information and a color. Owners and admins create projects; members and viewers can read them.

Create QR Code

Make a QR code (PNG) for a link's short URL and return its image URL (qr_code_url), ready to download, print or share. The code always opens the short URL, so scans show up as visits in the link's analytics. The URL is also saved on the link (lotslink_get_link, lotslink_list_links); calling again makes a new image and replaces it. QR codes are free and unlimited. Owners and admins can make one for any link, members for links they created; viewers cannot. Requires workspace_id and link_id: call lotslink_list_workspaces, then lotslink_list_links or use the id from lotslink_create_link.

Create Workspace

Create a workspace (personal or team) to organize links and work with teammates. Workspaces are free and unlimited, and no subscription is needed. You become the owner and first member.

Delete Custom Domain

Permanently delete a custom domain from the workspace. This action cannot be undone. The domain can only be deleted if no links are currently using it. If links exist, they must be reassigned to another domain or deleted first. Only workspace owners and admins can delete domains.

Delete Link

Permanently delete a link. This action cannot be undone. All associated data including click statistics, tag assignments, and QR codes will be deleted. Members can only delete their own links, while owners and admins can delete any link in the workspace.

Delete Project

Permanently delete a project (owners and admins). This cannot be undone. The project can only be deleted if no links are assigned to it; move those links to another project first, or archive the project instead.

Delete Workspace

Permanently delete a workspace. OWNER ONLY. This action cannot be undone. Cascade deletes all workspace members, links, projects, tags, custom domains, and related data. Use with extreme caution.

Export Analytics

Export analytics for a workspace, or one link with link_id, as CSV or JSON. Requires workspace_id: call lotslink_list_workspaces to get it, and lotslink_list_links for a link_id.

Get Click Details

Individual click records for a short link (time, approximate location, device, referrer), with filters and pagination. Requires workspace_id and link_id: call lotslink_list_workspaces, then lotslink_list_links.

Get Custom Domain

Get detailed information about a specific custom domain including verification status, SSL certificate status, DNS records required for setup, nameservers, verification timestamps, and count of links using this domain. Any active workspace member can view domain details.

Get Link

Get one link with its metadata, UTM parameters, project, custom domain, click count, qr_code_url (empty until lotslink_create_qr_code or the dashboard makes one) and destination_changes (when its destination was changed, newest first).

Get Link Analytics

Click analytics for one short link: all-time total, clicks in the period, average per day, peak day, daily timeline, top countries and cities, devices and referrers. Counts are recorded visits: known bots, link previews and prefetches are left out. Visitor IP addresses are not stored, so there is no unique-visitor count. Requires workspace_id and link_id: call lotslink_list_workspaces, then lotslink_list_links.

Get LotsLink billing

Show how the caller's LotsLink custom domains are paid for: the plan (if any), whether today is covered or paid from credits, the credit balance, and the plans. Links, clicks, QR codes and one *.lots.link subdomain are free; only custom domains are billed.

Get Project

Get detailed information about a specific project including the count of links assigned to it. Use this to view complete project details before updating or to check how many links are using the project.

Get Workspace

Get detailed information about a specific workspace. Requires user to be an active member. Returns workspace details, settings, user role, member count, and link count.

Get Workspace Analytics

Click analytics for a whole workspace. Counts are recorded visits: known bots, link previews and prefetches are left out, and there is no unique-visitor count. Requires workspace_id: call lotslink_list_workspaces first.

Grant Support Access

POST /workspace/:workspace_id/support-access

Let LotsTech support (support@lotstech.com) into one workspace for a limited time so they can look at a problem and fix it. Support joins as Admin and can never change billing, payments, the owner or the team. Without confirmed: true it changes nothing and returns the consent text; grant only after the person has read it and said yes. duration is 24h, 7d (default) or 30d. may_publish (default false) lets support publish fixes live. Granting again while access is on changes the end time. It opens a support case for the person.

Invite Workspace Member

Invite someone to a workspace by email. Owner or admin only. LotsLink emails them an invitation link, valid for 7 days, and returns invite_url (share it yourself if email_sent is false). Roles: admin, member or viewer; ownership cannot be given by invitation. Teammates are free and unlimited on every plan. Inviting an address that already has a pending invitation sends it again with a new link. Someone who was removed is invited the same way and rejoins when they accept. Current members cannot be invited again.

Leave Workspace

Leave a workspace you were invited to. Any member except the owner can leave. You lose access to its links at once, and only a new invitation lets you back in.

List Custom Domains

List all custom domains and subdomains for a workspace. Returns domain details including verification status, SSL status, DNS records, and link counts. Supports filtering by verification status. Any active workspace member can view domains.

List Links

List links in a workspace with filters (project, status active/inactive/expired, date range), search by URL or slug, sorting and pagination. Each link includes its click count, project and qr_code_url.

List My Invitations

List the pending workspace invitations sent to your LotsLink account's email address, with the workspace, role and who invited you. Accept one with lotslink_accept_workspace_invitation and its id.

List Projects

List all projects in a workspace with link counts. By default, only active (non-archived) projects are returned. Optionally include archived projects for a complete view. Each project includes the number of links assigned to it.

List Support Access

GET /workspace/:workspace_id/support-access

Whether LotsTech support has access to this workspace, until when, and what support did there. available false means support access is not set up yet.

List Support Requests

List the support requests the signed-in person has sent to the team that builds this product: number, type, title, status (In progress, Waiting for you, Done), last update, the team's latest reply and a link when one is available. Open requests by default; status all includes finished ones. Pass case_number (for example 1042) to see one request. Use it when the person asks about a problem they reported or whether the team has answered.

List Workspace Members

List the active members of a workspace with their role, name and email, and your own role (my_role, can_manage). Any member can call it. Owners and admins also get the pending invitations with their invite links. Teammates are free and unlimited. Requires workspace_id: call lotslink_list_workspaces first.

List Workspaces

List all workspaces where user is an active member. Returns workspaces with user role, member count, and link count. Sorted by creation date (newest first). Includes personal and team workspaces.

Remove Workspace Member

Remove a member from a workspace. Owner or admin only. The owner cannot be removed and an admin cannot remove another admin. Their links stay in the workspace. They can rejoin only through a new invitation. To remove yourself, use lotslink_leave_workspace. Get member_id from lotslink_list_workspace_members.

Revoke Support Access

DELETE /workspace/:workspace_id/support-access

End LotsTech support's access to this workspace now. Support leaves the team at once.

Submit Support Request

Send a bug report, feature request, feedback or support question to the team that builds this product. It sends exactly the title and details given. Passwords, API keys, tokens and other people's personal data do not belong in a request. Useful details: what was tried, what happened and what was expected; for a failed tool, tool_name, error_message and request_id. The request is filed under the email the person signed in with, and the team replies to that email. Returns the request number, its status, when to expect a reply and a link when one is available. The same error from the same tool within 24 hours is added to the person's open request instead of opening a new one.

Update Custom Domain

Update settings for a custom domain. Currently supports activating or deactivating domains. When a domain is deactivated (is_active=false), links using it will not redirect. Only workspace owners and admins can update domain settings.

Update Link

Update a link after creation: change its destination (original_url) while the slug, short URL and QR code stay the same, change its custom slug, expiry date or project, or deactivate and reactivate it (is_active). The change reaches every visitor at once. Owners and admins can update any link in the workspace, members only their own, viewers none. lotslink_get_link lists past destination changes (destination_changes). A deactivated link (is_active: false) answers visitors with 410 Gone ("This link has been disabled by its owner."); is_active: true brings it back.

Update Project

Update a project's name, description, color or client name, or archive and restore it with is_archived. Owners and admins only. At least one field must be provided.

Update Workspace

Update workspace name, description, or settings. Requires owner or admin role. At least one field must be provided. Name must be 1-255 characters if provided.

Verify Custom Domain

Trigger DNS verification for a custom domain. This checks if the required DNS records have been properly configured at the domain registrar. If verification succeeds, the domain status is updated to 'verified' and SSL certificate provisioning begins. Only workspace owners and admins can trigger verification. *.lots.link subdomains are verified instantly upon creation.

Questions, answered.

What is the LotsLink MCP server URL?

https://api.lots.link/mcp. Add it as a remote MCP server (custom connector) in your AI agent and sign in with your Lots account.

Which agents work with LotsLink?

Claude, ChatGPT (from Plugins), Claude Code, Codex, Cursor, Windsurf and any other client that supports remote MCP with OAuth. Adding a custom connector with full read and write depends on your ChatGPT plan, and on some plans only admins can add one. Check OpenAI's current plan details. Agents without MCP use the REST API with an API key.

Where are the LotsLink API docs?

https://api.lots.link/docs.md: Markdown written so an AI agent can read it. Requests go to https://api.lots.link/api/v1/lotslink with Authorization: Bearer <your key>.

How do I get a LotsLink API key?

Use Generate key on this page or at lotstech.com/api. Sign in with your LotsTech account, name the key and copy it once. You can revoke it there at any time.

Does MCP or API access cost extra?

No. It is included with LotsLink. You pay only for LotsLink's own plan or usage, and your AI provider bills its own usage.

All MCP servers · All APIs and keys