Connect Claude and other AI assistants
Connect Claude and other AI assistants to your links over the Model Context Protocol (MCP). Then ask in plain words instead of clicking through the dashboard.

What you can ask#
- “Which links got the most clicks from Germany last week?”
- “Make a short link for our spring sale page, ending
spring, on go.yourbrand.com.” - “Which of my links haven’t been clicked in 30 days?”
- “How many of yesterday’s clicks were bots, and why?”
- “Change the destination of /offer to the new pricing page.”
- “Which clients are close to their monthly click limit?”
The assistant uses the same data and rules as the dashboard. See What AI assistants can see and do.
AI access is off until you turn it on.
The quick way#
- Go to Settings > MCP.
- Tick Read only if the assistant should only look, not create, change or delete links.
- Click Set up AI access. It turns AI access on, makes a token and checks your site answers.
- Add it to Cursor or VS Code with one more click, or copy the command for Claude Code:
claude mcp add --transport http nahnu-links https://yoursite.com/wp-json/nl/v1/mcp \
--header "Authorization: Bearer YOUR_TOKEN" - Ask your assistant something, like “list my domains”, to check it works.
Tokens#
Under Your access tokens, click New token for each app, so you can remove one on its own.
- A token works with every link and account, as you.
- Copy it when it’s shown; it isn’t shown again.
- Each token shows when it was last used.
- Remove a token to cut off that app straight away.
Treat a token like a password. Anyone with a read-and-write token can change your links.
Other apps#
The server speaks MCP over HTTP (Streamable HTTP) at the Server address shown, like https://yoursite.com/wp-json/nl/v1/mcp, and signs in with an Authorization: Bearer header. Test with curl gives a command to try it.
Apps that only offer sign-in style connectors (OAuth) can’t use tokens yet.
Good to know#
- Your WordPress site answers AI requests, so it needs to be online. Short links don’t need it.
- Everything an assistant changes shows in Status > Activity, marked as made by AI.
- If your site sits behind a firewall or Bunny Shield, allow
/wp-json/nl/v1/mcp. See Use with Nahnu Cache Connector and Bunny Shield.
For clients#
Clients and subscribers can connect their own assistants, limited to their own links. See AI access for clients.


