Documentation → How-to guides
Connect Claude to mapbench
Give Claude access to one of your mapbench projects. It can then add datasets, write SQL models, build maps and publish a link, working directly with the data in that project.
Before you start
- A mapbench account. Accounts are by invitation, so request access if you don't have one.
- The project you want Claude to work in, and permission to write to it. A connection can only reach projects you can reach yourself.
- The mapbench server address:
https://mapbench.app/mcp
Which route to take
| You use | Route | How you sign in |
|---|---|---|
| Claude on the web, desktop and mobile. | Custom connector | You're sent to mapbench, where you log in and approve an access screen |
| Claude Code, in a terminal | API key | You paste in an API key you created yourself |
The two routes are independent. Connecting one doesn't connect the other, and you can use both at once.
Route 1: Claude on the web, desktop and mobile
Step 1. Create the connector in mapbench
- Sign in to mapbench and open Account.
- Go to the AI agent connectors tab.
- Give the connector a name you'll recognise later, such as e.g. Claude on the web, and choose Create connector.
mapbench then shows you three values: the server URL, a client ID and a client secret.
Copy the client secret now. It's shown only once. If you lose it, disconnect the connector and create a new one, because the secret can't be shown again.
Step 2. Add it in Claude
- In Claude, open Settings → Connectors → Add custom connector.
- Paste the server URL below into “Remote MCP server URL”.
- Open Advanced settings and paste the client ID and secret.
- Save, then choose Connect and approve the access screen.
The server URL is https://mapbench.app/mcp. Enter the client ID and secret under
Advanced settings, not in the main form. A connector added without
them won't connect.
Step 3. Approve the access screen
When you choose Connect, you're sent to the mapbench login page. After you sign in, it lists what Claude is asking for:
- See your datasets, models and maps, and run read-only SQL over them
- Add and change datasets, their styling and folders
- Create and change SQL models
- Create and change maps and their layers
- Cancel queued processing jobs
- Create and revoke public share links to maps and datasets
- Create and rename projects, and move this connection between the projects you can write
Approve the request to complete the connection. Claude gets only what's on that list, and it can't delete anything. It can archive a dataset or a map, and you can undo that.
Step 4. Check that it works
Ask Claude something only mapbench can answer, such as “which mapbench organisation and project am I connected to?” or “list my mapbench datasets”. If the connection is working, the answer names your organisation and the project the connection is using.
Route 2: Claude Code
Claude Code signs in with an API key instead of a connector, so there's no approval screen and no browser step.
Step 1. Create an API key
- Sign in to mapbench and open Account → API keys.
- Name the key, choose the project it will work in, and choose
what it can do:
- Read only: read your data and run read-only SQL on it.
- Full agent: as above, plus create datasets, models and maps.
- Full agent + delete: as above, plus delete things permanently.
- Copy the key. Like the client secret, it's shown only once.
Step 2. Register the server
claude mcp add --transport http mapbench https://mapbench.app/mcp \
--header "Authorization: Bearer tp_…"
Replace tp_… with the key you copied. Then run /mcp in
Claude Code to check that the server is listed and connected.
API keys can't publish share links. None of the key presets includes that permission, so making a map public is always a deliberate decision. If you need Claude Code to give you a link people can open, ask your operator to create a key that includes the permission, or use the connector route, which includes it.
Which project the connection works in
A connection works in one project at a time, with your permissions in that project. A connector starts in your default project. An API key starts in the project you chose when you created it.
- To move a connection to another project, use the project selector next to it on Account. You don't need to disconnect and start again.
- Claude can also move itself to another project you can write to, if you approved that on the access screen. It can't move data between projects. A person has to do that, and the move is recorded.
- If you lose access to the project a connection is set to, the connection stops working immediately. It doesn't switch to another project.
Everything Claude does is recorded
Changes made through a connection are recorded under that connection rather than under your name. The activity history for a dataset or a map shows which connection made each change and when. This is the main reason to connect an agent instead of sharing your login.
Disconnecting
Open Account, find the connector or key, and choose Disconnect or Revoke. Access ends immediately. The history of what the connection did is kept, so you can still see which changes it made.
Troubleshooting
- Claude refuses to add the connector, with no useful error
-
This is almost always the server URL. It must be
https://mapbench.app/mcpwith no trailing slash, including the/mcpat the end. Also check that you entered the client ID and secret under Advanced settings. - The access screen says the connector belongs to someone else
- A connector belongs to the account that created it, and mapbench won't authorise it for anyone else. If someone else sent you an authorisation link, don't approve it. Create your own connector instead.
- Claude worked yesterday and now gets “no project access”
- The connection is set to a project you're no longer a member of. Move it to another project on Account, or ask a manager to restore your access to that project.
- Claude says it cannot delete a dataset or map
- That's expected. No connector grant includes deletion, and mapbench doesn't give agents a delete tool. Ask Claude to archive the item instead, which you can undo, or delete it yourself in the app.
- Claude says it cannot switch projects
- Switching projects is a separate permission. It's listed on the access screen, and none of the API key presets includes it. Move the connection yourself on Account.
- There is no “AI agent connectors” tab on my Account page
- Connectors are turned off on this deployment. The Claude Code route above still works. Ask your operator about turning connectors on.
See also
- All documentation
- What an agent can see: a short summary in plain language.