MCP server
Set up the MCP server
Connect your AI assistant to Lanesra in about a minute. The app builds the config for you, with your own personal key already in it.
Connect from the app#
- Open Integrations → MCP in the Lanesra app. Your personal MCP key is created the first time you open the page.
- Under Pick your assistant, choose ChatGPT, Claude.ai, Claude Code, Claude Desktop, Cursor, VS Code or Other. ChatGPT and Claude.ai need only a web address, with no key: see ChatGPT and Claude.ai.
- Click Copy on the config and add it where the page says. The key is hidden on screen; Copy puts it in, in full.
- Check the result of Test connection. The page runs it as it opens, and it should read something like "Connected - 12 tools, 2 brands".
- Restart or reload your assistant. The steps for each one are under Client configs.
- Ask it a question such as "What's my AI visibility?" See Ask your first question for what to expect.
The company owner, project Admins and Members each get their own key, as does anyone whose custom role uses MCP. Viewers see no config, and a note asking them to ask the company owner for Member or Admin access.
Client configs#
ChatGPT and Claude.ai#
These connect by signing in to Lanesra, so there's no key to copy or keep safe. They use the MCP server URL https://app.lanesra.ai/mcp.
ChatGPT:
- In ChatGPT, open Settings → Apps & Connectors. If you don't see Create, turn on Developer mode under Advanced settings (on Business and Enterprise, a workspace admin may need to allow it).
- Create a connector: name it Lanesra, paste the URL as the MCP server URL, and choose OAuth for authentication.
- ChatGPT sends you to Lanesra: sign in, pick the workspace and click Allow. Then add Lanesra to a chat from the tools menu.
Claude.ai:
- In Claude, open Settings → Connectors and choose Add custom connector (on Team and Enterprise plans, an owner adds it under Admin settings → Connectors).
- Name it Lanesra and paste the URL. Leave the advanced OAuth fields empty.
- Click Connect: Claude sends you to Lanesra to sign in, pick the workspace and click Allow.
The Lanesra page you land on says which app is asking and what it will be able to do. Once allowed, the app reads what your own key would: every project for the company owner, otherwise the projects where your role uses MCP. It starts as Viewer, which reads and changes nothing. To let it make changes, give it another role under Connections, and disconnect it there at any time. See Connections.
Configs with a key#
Each config below has a placeholder where the app puts your key. Copying from the app is easier, but you can also build them by hand with your key, or with a key from API keys.
Claude Code#
Claude Code is connected with one command. You run it once. It saves the connection and finishes, so nothing opens and no question is answered yet.
- Open a terminal: PowerShell on Windows, Terminal on a Mac.
- Paste this command as a single line and press Enter.
claude mcp add --transport http --scope user lanesra https://app.lanesra.ai/mcp --header "Authorization: Bearer lns_live_your_key_here"
- Look for a line starting
Added HTTP MCP server lanesra. That means the connection is saved. - Check it by running
claude mcp list. You should see a line like this:
lanesra: https://app.lanesra.ai/mcp (HTTP) - ✓ Connected
- Start Claude Code by typing
claudeand pressing Enter. If it was already open, close it and open it again, because it only picks up new connections when it starts. In the VS Code extension or the desktop app, start a new conversation. - Type your question. See Ask your first question.
--scope user makes Lanesra available in every folder you use Claude Code in. Without it, the connection only works in the folder where you ran the command. It is its own option and goes outside the quotes around the key.
To see the connection from inside Claude Code, type /mcp. It lists lanesra as connected, with its 12 tools.
To remove the connection from Claude Code:
- In a terminal, run this command.
claude mcp remove lanesra --scope user
- Check it worked by running
claude mcp list.lanesrashould no longer be listed. - Close Claude Code and open it again. In the VS Code extension or the desktop app, start a new conversation. A session that was already open keeps the connection until then.
Use --scope user if you added the connection with it, as in the command above. If you leave it out, Claude Code looks for lanesra everywhere it could be saved, and asks you which one to remove if it finds more than one.
Removing the connection doesn't revoke your key. If the key has been shared where it shouldn't be, also replace it. See Your personal key.
Claude Desktop#
Open Settings → Developer → Edit Config (claude_desktop_config.json), add this block and save the file. Then quit Claude Desktop completely and open it again. On Windows, closing the window isn't enough: also quit it from the icon next to the clock. Lanesra then appears in the tools menu below the message box.
Claude Desktop can't send a header to a remote server, so the config goes through the mcp-remote bridge, which needs Node.js.
{
"mcpServers": {
"lanesra": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://app.lanesra.ai/mcp", "--header", "Authorization:Bearer lns_live_your_key_here"]
}
}
}
Cursor#
Add this to ~/.cursor/mcp.json (every project) or .cursor/mcp.json (one project) and save the file. Then open Cursor Settings → MCP, where lanesra should be listed with a green dot. Switch it on if it is off, and ask your question in the chat in Agent mode.
{
"mcpServers": {
"lanesra": {
"url": "https://app.lanesra.ai/mcp",
"headers": { "Authorization": "Bearer lns_live_your_key_here" }
}
}
}
VS Code#
Add this to .vscode/mcp.json in your workspace and save the file. VS Code lists servers under servers, not mcpServers. Click Start above lanesra in the file, then open the chat, switch it to Agent mode and ask your question.
{
"servers": {
"lanesra": {
"type": "http",
"url": "https://app.lanesra.ai/mcp",
"headers": { "Authorization": "Bearer lns_live_your_key_here" }
}
}
}
Other clients#
Any client that speaks MCP over streamable HTTP reads the standard block below, as do Claude Code's .mcp.json and Windsurf. The app shows it under every client as JSON config.
{
"mcpServers": {
"lanesra": {
"type": "http",
"url": "https://app.lanesra.ai/mcp",
"headers": { "Authorization": "Bearer lns_live_your_key_here" }
}
}
}
These files carry your key. Keep them out of version control.
Ask your first question#
Once your assistant is connected, you use Lanesra by talking to it. There is no Lanesra command to learn and nothing else to open.
- Type a question in plain language, such as "Give me an overview of my AI visibility."
- The first time, the assistant asks for permission to use a Lanesra tool, such as
get_visibility_overview. Approve it. Choosing the option that stops it asking again is safe, because the tools only read your data. - The assistant answers in plain language, with your numbers and the date they were captured.
If the assistant answers without your numbers, or says it has no access to Lanesra, it isn't connected yet. See Troubleshooting.
See Prompts for more questions ready to copy.
Your personal key#
The key in your config is your own. It stays the same every time you open the page, so you can copy the config again from any device. Only you can copy it: the company owner, and the Admins of your projects, see it listed on API keys but can't copy it.
The page says what your key reads. That's every project in the company for the owner, and otherwise the projects where you're an Admin or a Member, or hold a custom role that uses MCP. The projects where you're a Viewer are named as ones it doesn't read.
If it has been shared where it shouldn't be, click Replace it under the config and confirm with Replace key. Every assistant using the old key stops working at once, until you paste the new config into it. Nobody else's key changes.
Your key is also replaced when:
- You change or reset your password. Open this page, copy the config again and paste it into each assistant.
- The owner or an Admin revokes it. The page gives you a new key the next time you open it.
You lose your key if you're removed from the company or from your last project. If you become a Viewer on every project, your key stays but reads nothing.
The company owner#
The owner's personal key reads every project in the company. The company key, for scripts, is on Integrations → API keys, where the owner can copy it or replace it. See The company key.
When the owner changes or resets their password, the company key is replaced too: scripts that use it need the new one from Integrations → API keys.
Your key's role#
Your key has a role, Viewer by default, which reads every part of the projects your key reads and changes nothing. To change it, pick another role in Role of your MCP key, under What it may change. The picker lists Viewer, Member, and your company's custom roles, and says for each what an assistant may change with it.
- A role that reads less narrows what an assistant using the key can read, from its next request, and your config stays the same.
- A role that makes changes, such as Member, lets your assistant add and edit prompts and competitors, and, if the role allows, write briefs and start captures, which spend credits. The page lists the change tools it gets. Giving your key such a role re-issues it: the new key is shown once, so copy the config again before you leave the page, and paste it into each assistant.
Your key never reads or changes more than you can yourself, and only you can give your own key a role that does more. Changing your password takes changes away again, until you raise the role once more.
The company owner and project Admins can also set the role of the keys they see, from the key's row on API keys.
Connections#
Connections lists what is connected with your account:
- Signed in with Lanesra (ChatGPT, Claude.ai): each app you allowed, with its role. Pick a role to let it make changes; the page asks you to confirm first. Disconnect cuts it off at once.
- Keys: the company owner and project Admins see keys with who each is assigned to and when it was last used. The owner sees every key in the company, the company key included. A project Admin sees their own key, the personal keys of Members on the projects they administer, and those projects' keys. Manage keys opens API keys.
Several brands#
If your key reads more than one brand, name the one you mean in your question, such as "for Acme". The assistant passes it to the tools as project. With one brand you never need to.
Troubleshooting#
| What you see | What to do |
|---|---|
| "Unauthorized: send a Lanesra key…" | The key was replaced or revoked, or was pasted incompletely. Changing your password replaces it too. Copy the config again from Integrations → MCP |
| "This key reads no projects…" | You're a Viewer on every project now, or your role doesn't use MCP. Ask the company owner for Member or Admin access |
| "This connection cannot use … on project …" | Your role, or your key's role, doesn't read that part of the project. See What each tool needs |
| "Billing for this account has lapsed" or "no active plan" | Renew or start a plan in the app. The key itself is fine |
"This account tracks several brands - pass one as project" |
Name the brand in your question |
| "has no data yet", or every number is empty | The project's first capture hasn't finished. Ask the assistant for the capture status |
| "Project … is suspended" | Contact support to restore it |
| "Something went wrong … quote reference …" | Send the reference to support |
| The assistant doesn't list any Lanesra tools | Restart the client. For Claude Desktop, check that Node.js is installed |
"claude is not recognized" or "command not found" in the terminal |
Claude Code isn't installed on this computer. Install it, then run the command again |
| "MCP server lanesra already exists" | The connection was added before. Run claude mcp remove lanesra, then run the command again |
claude mcp list shows lanesra as failed to connect |
The key in the command was incomplete or has been replaced, for instance by a password change. Run claude mcp remove lanesra, copy the command again from Integrations → MCP and run it |
| Claude Code finds Lanesra in one folder but not in another | The command was run without --scope user. Run claude mcp remove lanesra, then run the command again with it |
In the browser: WebMCP#
The MCP page also registers read-only tools on window.mcp and navigator.modelContext, for an AI agent working inside your browser, and has a Run tool button to try them. This is experimental.