Skip navigation
NationCentral documentation

Connect NationCentral to your AI assistant

Ask questions about your NationBuilder data in plain English, and get answers, charts and dashboards back — in Claude, ChatGPT, Cursor, VS Code or any other tool that speaks MCP.

Overview

MCP — the Model Context Protocol — is an open standard that lets an AI assistant connect directly to a data source. It isn't tied to any one company's product: NationCentral exposes a single MCP address, and any tool that supports the standard can use it.

Connect your tool of choice and you can ask questions about your supporters, donations and engagement in ordinary language, and the assistant will query your dashboards and answer.

It is the same NationCentral you already use. Nothing is copied anywhere, no new login is created, and the assistant can only see what your own NationCentral account can see.

MCP access is an add-on. It isn't switched on by default. Talk to your Code Nation contact to have it enabled for your organisation before you try to connect.

What you'll need

  • Your usual NationCentral login — the same email and password you use for dashboards.
  • MCP access enabled on your NationCentral account. We switch this on per organisation.
  • An AI tool that supports remote MCP servers. Setup steps for the common ones are below. Plan requirements vary by tool.

Your connection URL

Every tool needs the same address. Copy it once and use it wherever you're setting up.

https://www.nationcentral.com/api/metabase-mcp

Whichever tool you use, you'll be sent to a NationCentral sign-in page the first time you connect, then asked to approve the connection. Your password is never shared with the AI tool.

Claude

Web, desktop and mobile. Available on the Free, Pro, Max, Team and Enterprise plans — the Free plan is limited to one connector.

  1. Open your connector settings

    Go to Customize › Connectors.

  2. Add a custom connector

    Click +, then choose Add custom connector.

  3. Paste the URL and save

    Enter the connection URL, leave the advanced OAuth fields empty, and click Add.

  4. Sign in and approve

    Log in to NationCentral when prompted, then approve the connection.

On Team and Enterprise plans an organisation owner has to add the connector under Organization settings › Connectors before other members can enable it.

ChatGPT

Web only — not available in the mobile apps. Business, Enterprise and Edu plans get full access; Pro is limited to reading data. Requires developer mode, and OpenAI still labels this a beta.

  1. Turn on developer mode

    Custom MCP connections are behind developer mode on your account or workspace.

  2. Create the app

    Go to Settings › Apps › Create — or Workspace settings › Apps › Create if you're an admin.

  3. Enter the URL and scan

    Paste the connection URL, choose OAuth as the authentication method, then click Scan tools and wait for it to finish.

  4. Create and connect

    Click Create, then sign in to NationCentral and approve. On a workspace, an owner publishes the app before others can use it.

Cursor

Configured through a JSON file. Use ~/.cursor/mcp.json to make it available everywhere, or .cursor/mcp.json inside a project.

{
  "mcpServers": {
    "nationcentral": {
      "url": "https://www.nationcentral.com/api/metabase-mcp"
    }
  }
}

Save the file and enable the server in Cursor's settings. Cursor opens a browser window for the NationCentral sign-in the first time you use one of its tools.

VS Code

Either run MCP: Add Server from the Command Palette and follow the prompts, or edit the config directly.

Workspace config lives in .vscode/mcp.json; for a user-level config run MCP: Open User Configuration.

{
  "servers": {
    "nationcentral": {
      "type": "http",
      "url": "https://www.nationcentral.com/api/metabase-mcp"
    }
  }
}

VS Code opens a browser window for authorisation on the first connection, then remembers it.

Claude Code

One command in your terminal.

claude mcp add --transport http nationcentral https://www.nationcentral.com/api/metabase-mcp

Start Claude Code, run /mcp, select the NationCentral server and authenticate in the browser window that opens.

Other AI tools

Anything that supports remote MCP servers over streamable HTTP with OAuth will work. Point it at the connection URL and complete the sign-in when the tool prompts you.

If your tool asks for a transport type, choose HTTP (sometimes labelled streamable HTTP), not SSE or stdio. If it asks for a client ID or secret, leave them blank — NationCentral registers your tool automatically.

Some tools can't reach servers that aren't on the public internet. NationCentral is publicly reachable, so this isn't a problem here — but it's the usual reason an MCP connection fails elsewhere.

Example questions

You don't need to know SQL, or which dashboard holds what. Ask the way you'd ask a colleague.

How much did we raise last month compared with the same month last year?
Which recurring donors have had a failed payment in the last 90 days?
Show me supporter growth by year, and tell me what stands out.
Build a dashboard tracking our end-of-financial-year appeal.
Summarise this month's numbers for the board in five bullet points.

What the agent can do

When you approve the connection, you're granting these abilities — all of them limited to what your own account can already do.

AbilityWhat it means
Search and readFind dashboards, saved questions, metrics and tables, and read their contents.
Run saved questionsExecute questions that already exist and return the results.
Build queriesConstruct a new query against your data and run it.
Run SQLWrite and execute SQL, where your account already has permission to do so.
Create and updateSave new questions, metrics, dashboards and collections, or edit existing ones.
Draw chartsRender visualisations inline in the conversation.
The agent can change things, not just read them. It can create and edit dashboards and saved questions in any collection you can edit. Ask it to save work to a specific collection if you'd rather keep your main dashboards untouched. Some tools — ChatGPT on the Pro plan, for instance — only allow reading.

Charts in chat

NationCentral can render charts directly inside your conversation, so a question about trends comes back as a chart rather than a wall of numbers. This works in browser-based tools including Claude, ChatGPT, Cursor and VS Code.

Terminal tools like Claude Code return the same data as a table instead — there's no browser there to draw into.

Security and permissions

  • You only see your own data. The connection runs as your NationCentral user, with the same database and collection permissions you already have. Other organisations' data is not reachable.
  • No new credentials. You sign in to NationCentral itself. The AI tool never receives your password.
  • Every connection is logged. We record each registration and approval, with the account, the tool and the date.
  • Access can be withdrawn. Deactivating a NationCentral user immediately invalidates their connection, whichever tool they used.

Treat an AI assistant like any other person with access to your data. Only connect accounts you'd be comfortable having query your supporter records, and check your own tool's policy on how it handles the data it retrieves.

Troubleshooting

The tool can't reach the server

Almost always a typo in the URL. Copy it again from this page — it ends in /api/metabase-mcp, not /api/mcp. Also check the transport is set to HTTP rather than SSE.

Registration or sign-in fails

Your MCP access may not be switched on yet. Check with your Code Nation contact before trying again.

The connection says it has expired

Remove the connection and add it again from scratch. A connection that has been revoked or has expired won't always prompt you to sign in again on its own — re-adding it clears the stale credentials.

The approval screen shows an error

Close the window, return to your tool and start the connection again. If it happens twice, send us a screenshot and roughly what time it occurred so we can match it to our logs.

It connects, but can't see the data you expected

The assistant inherits your permissions exactly. If a dashboard or table isn't visible to you when you log in to NationCentral directly, it won't be visible here either. Tell us what you need access to.

It connects, but won't write anything

Some tools restrict MCP connections to reading only, depending on your plan with them. If you can read data but not save a question or dashboard, check your tool's own plan and permission settings first.

Turning it off

You can disconnect at any time from wherever you added it — the connector settings in Claude or ChatGPT, or by removing the entry from your mcp.json in Cursor or VS Code. That stops the assistant making any further requests.

If someone leaves your team, tell us and we'll deactivate their NationCentral account, which cuts off every connection they've made as well as their dashboard access.

Get help

Something not behaving? We'd rather hear about it early — and if you're using a tool we haven't listed here, tell us and we'll add it.

Need expert support for your next campaign?

Tell us what you’re working on and we’ll offer practical recommendations based on our experience with leading advocacy organisations.