Coding agent by OpenAI

Connect Codex to LotsLink

Ask Codex to create your short links, make QR codes and read click analytics in LotsLink. Add LotsLink to Codex as a remote MCP server and sign in once.

LotsLink MCP server URL

MCPhttps://api.lots.link/mcp

Or let Codex guide the setup: send it this prompt

PromptRead https://lots.link/skill.md and help me connect LotsLink for you.

What Codex can do with LotsLink

Once connected, Codex can:

  • Create and edit short links with custom slugs, UTM parameters and expiry dates, on lots.link or your own verified domain.
  • Make a QR code for any link.
  • Organize links into projects and switch several links on or off at once.
  • Read click analytics by link or workspace, and export CSV or JSON.
  • Add custom domains and manage workspaces and teammates, in your role.

The LotsLink dashboard does the whole job too: links, QR codes, projects, domains, analytics and team. Your agent for speed, the dashboard for control.

You need

  • Codex CLI, the Codex app or the IDE extension
  • A LotsLink account. You can create one during sign-in.

Connect Codex to LotsLink

  1. Add the server

    Run this in your terminal.

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

    Run this and finish the sign-in in the browser that opens.

    codex mcp login lots-link
  3. Check the connection

    Start Codex and run /mcp; lots-link is listed with its tools. In the Codex app or IDE extension, add it instead under Settings, then MCP servers: select Add server, choose Streamable HTTP, paste the URL, save and select Authenticate.

    /mcp

What to ask next

  • “Shorten https://example.com/spring-sale as spring-sale with utm_source newsletter.”
  • “Make a QR code for the spring-sale link so I can print it on the flyer.”
  • “Which of my links got the most clicks this week, and from which countries?”
  • “Make a short link and a QR code for this project’s docs URL”

If something goes wrong

Tools fail with an auth error
Run codex mcp login lots-link again; sessions expire after a period of inactivity.

Steps checked on 13 October 2026 against Codex: MCP.

Pricing

Current plans and prices are on https://lots.link/pricing. Your agent’s own plan or usage fees are separate.

Codex and LotsLink: questions

How do I connect Codex to LotsLink?

Follow the Codex setup above to add https://api.lots.link/mcp. Complete sign-in using the authentication method shown. Then ask “List my LotsLink workspaces”.

Does LotsLink work in the Codex app and the IDE extension?

Yes. Add it under Settings, then MCP servers: select Add server, choose Streamable HTTP, paste https://api.lots.link/mcp, save and select Authenticate.

Do I need an API key to use LotsLink with Codex?

No. Codex signs in to LotsLink in your browser. API keys are for the REST API, for scripts and your own apps.

What does LotsLink cost?

Current plans and prices are on https://lots.link/pricing. Your agent’s own plan or usage fees are separate.

Can I change where a printed QR code goes?

Yes. Your agent changes the link’s destination and the short URL and QR code stay the same, so printed codes keep working and keep counting scans. The change reaches every visitor at once.

Can my agent delete my links?

When you ask it to. Switching a link off is the choice you can undo; deleting is permanent and removes the link’s click statistics and QR codes. Your agent works in your role: members change their own links, owners and admins change any link, and viewers read only.

What do the click analytics include?

Recorded visits by link or workspace, with source, device and approximate location when available. Known bots, previews and prefetches are not counted.

Tools fail with an auth error

Run codex mcp login lots-link again; sessions expire after a period of inactivity.

Other agents

Any MCP client