Connect LinkHaven to your AI (Claude, ChatGPT, Claude Code and Codex)
You can run your LinkHaven account from the AI tools you already use. Ask in plain English and your AI looks it up or makes the change. For example:
- "Walk me through connecting a domain I bought somewhere else to my main page, and tell me exactly which DNS records to add."
- "Which of my creators' pages got the most visits from Meta's crawlers this month, and how many of those crawlers came in disguised as normal visitors?"
- "Across all my creators, which pages get plenty of visitors but few clicks on their paid links? Compare their traffic sources and countries with my best pages, and tell me what to change to earn more."
There are two ways to connect: MCP and the API. Both can manage your pages, links, domains, blocking, A/B tests and team, and read your analytics. Buying anything stays in your dashboard. Start with MCP. Use the API for automations: see MCP or API: which should I use?.
Connect with MCP (Claude, ChatGPT, Claude Code, Codex)
- In your LinkHaven dashboard, open the MCP & API screen. The MCP card has the address and the exact steps for each app.
- Add LinkHaven to your app with that address.
- Sign in to LinkHaven when asked, and choose what it can do.
Claude works in the web, desktop and phone apps (you add it on the web or desktop app). ChatGPT works with ChatGPT Plus; on other plans it depends on your plan and workspace settings. Any other app that supports MCP connectors with sign-in can use the same address.
Apps other than Claude and ChatGPT show an "Unverified app" notice on the permission screen, with the web address you'll be sent back to. For Claude Code and Codex that address is on your own computer and starts with localhost or 127.0.0.1. Only allow it if you started the connection yourself and you recognise that address.
Want to change what it can do? Disconnect it on the MCP & API screen, connect again and tick different boxes, then start a new chat. A chat that was already open keeps the old list of what it can do.
Use the API for automations
On the MCP & API screen, follow the steps on the API card with Claude Code, Codex or Cursor. Tick only what the job needs when you create the key. Your AI tool saves the key to a .env file on your computer, so it never appears in the chat.
Is it safe?
- You choose what it can do. Permanent deletion, spending AI credits and changing your team (inviting or removing managers) are off unless you tick them.
- It acts as you, and no more than you. It can't see anyone else's account.
- It can never buy anything. Plans, domains, credits and seats need your card, in the dashboard. If you tick "Use AI credits you've already bought", it can spend those on AI avatars.
- Your AI app receives whatever it reads from your account to answer you, and the company behind it handles that under its own privacy terms.
- Switch either one off any time on the MCP & API screen: Disconnect an app or Revoke a key. It stops working right away.
- Removing LinkHaven inside an AI app may not switch it off on LinkHaven. To be sure it's off, also click Disconnect on the MCP & API screen.
- Nothing is deleted on the first request. LinkHaven sends your AI app a warning first, and only a second, confirmed request deletes anything.
If it doesn't connect
- It won't connect at all. Copy the address from the MCP card on the MCP & API screen instead of typing it. It doesn't work with "www" in front.
- "This connection was started in a different browser." Sign in to LinkHaven in the same browser your AI app opened, then start the connection again from your AI app.
- You signed in and landed on your dashboard instead. The email link opened in another browser or device. Go back to your AI app and connect again, then sign in in that same browser, or use Sign in with Google.
- "This connection request has expired." Go back to your AI app and connect again.
- An "Unverified app" box. Normal for Claude Code, Codex and apps we haven't tested. Check the address it shows before you allow it.
- "This connection link is invalid" or "This connection link isn't valid." Remove LinkHaven in your AI app and add it again.
- "Your account already has 25 active keys." Revoke one you no longer use on the MCP & API screen, then connect again.
- "Too many keys created in the past hour." Wait an hour, then connect again.
- "Your account owner hasn't given you access to anything an AI app can use yet." You're signed in as a manager. Ask the account owner to change your permissions on the Team page, then connect again.
- LinkHaven's tools don't show up in your chat. Start a new chat. A chat that was already open keeps its old list.
- It worked before and now refuses. Your LinkHaven account may need attention, for example a trial that ended. The message says what to do.
More help
- MCP or API: which should I use?
- Using the LinkHaven API (the API in more depth)
- Keeping Your API Key Safe