Connect your account to Claude and ask about your own data in plain language — "which shows have the worst invalid traffic this month?" — instead of exporting a CSV first.
It runs on your own computer, reads only your account, and cannot change anything. Before you start, one thing to know: whatever you ask about is sent to whichever AI model you are using, because that is how it answers you. If you hold data about other people's shows, read what leaves your machine first.
Set it up#
Four steps, about five minutes. Follow only the part for your computer — there is a Mac version and a Windows version of step 3, and they are not interchangeable.
You need the Claude desktop app, and Node.js version 20 or newer.
Step 1 · Create an API key#
In the Bastion dashboard, open API access and press Create key.
Copy it immediately and keep it somewhere safe. It is shown once and cannot be looked up afterwards — if you lose it, you create a new one.
Step 2 · Open the settings file#
In the Claude desktop app, go to:
Settings → Desktop app → Local MCP servers → Edit config
That opens a file called claude_desktop_config.json in a text editor.
There is no "Desktop app" section in my settings
Older versions of the app keep the same file under Settings → Developer → Edit config. It is the same file and the rest of these steps are identical.
If neither menu exists, open the file directly:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
If the file is not there, create it — an empty file is fine, step 3 fills it.
Step 3 · Paste the settings#
Pick your computer. Copy the whole block, paste it into the file, and replace
your API key with the key from step 1 — keep the quote marks around it.
If the file was empty, that is all it should contain. If it already had something in it, see "My file already has something in it" below before you paste.
On a Mac
{
"mcpServers": {
"bastion": {
"command": "npx",
"args": ["-y", "https://docs.whitebastion.com/bastion-mcp-0.1.0.tgz"],
"env": {
"BASTION_API_TOKEN": "your API key",
"BASTION_API_URL": "https://app.whitebastion.com"
}
}
}
}
On Windows
Nearly the same, but the first two lines differ. Windows needs the command
run through cmd, and leaving that out is the single most common reason this
does not start.
{
"mcpServers": {
"bastion": {
"command": "cmd",
"args": ["/c", "npx", "-y", "https://docs.whitebastion.com/bastion-mcp-0.1.0.tgz"],
"env": {
"BASTION_API_TOKEN": "your API key",
"BASTION_API_URL": "https://app.whitebastion.com"
}
}
}
}
Then save the file. Nothing happens until you do.
My file already has something in it
Then do not paste over everything — that disconnects any other tool you have set up, and nothing warns you.
What you are adding is one entry inside the existing mcpServers section.
Paste only the "bastion": { … } part, and put a comma after the entry above
it:
{
"mcpServers": {
"something-you-already-had": { "command": "..." },
"bastion": {
"command": "npx",
"args": ["-y", "https://docs.whitebastion.com/bastion-mcp-0.1.0.tgz"],
"env": {
"BASTION_API_TOKEN": "your API key",
"BASTION_API_URL": "https://app.whitebastion.com"
}
}
}
}
On Windows, use the cmd form of the "bastion" entry from above instead.
There must be exactly one mcpServers section in the file. Two is the other
common mistake, and it fails silently.
Step 4 · Quit Claude and open it again#
Quit it properly — on a Mac, closing the window is not enough (use Claude → Quit, or Cmd-Q). The file is only read when the app starts.
The first start takes a few seconds while the package downloads.
How you know it worked: go back to Settings → Desktop app → Local MCP servers. Bastion should be in the list.
Then ask it something: "Which of my shows has the most invalid traffic this month?"
It is not in the list / it did not work
Almost always the settings file. Four things break it, and every one of them fails silently — the app opens normally and Bastion is simply absent:
- A comma after the last entry. This format does not allow one.
- Curly quotes. Word, email and chat windows replace straight quote marks
(
") with typographic ones ("), and only straight ones work. Paste into a plain text editor, never into a document. - Two
mcpServerssections. There must be exactly one. - The Windows form used on a Mac, or the Mac form on Windows. They are not interchangeable; see step 3.
Paste the file into any online JSON validator before looking anywhere else — it will point at the line.
spawn npx ENOENT on Windows. You used the Mac block. npx on Windows
is a script rather than a program, and the desktop app starts its servers
without a shell, so naming it directly fails. Use the cmd form in step 3.
It starts and then stops. Both lines in env are required. The server
refuses to start without them and names the one that is missing.
It worked and then stopped. A revoked key is refused from that moment on. Create a new one on the API access page and paste it in.
What you can ask it#
| Ask about | The tool behind it |
|---|---|
| What shows do I have, and how is each doing? | list_shows |
| One show's delivery, and the chain that defends it | get_show |
| Where did the traffic — and the invalid traffic — come from? | get_show_breakdowns |
| How many people, estimated, and from where? | get_show_listeners |
| Episodes, and one episode's delivery | list_episodes, get_episode_delivery |
| Campaigns, terms and delivery | list_campaigns, get_campaign |
| Portfolio totals, and traffic we could not attribute | get_account_overview |
| What looks wrong, most severe first | list_anomalies |
| What does this word mean, and what must I not do with it? | explain_metric |
How the answers are shaped, and why one tool reads no data at all
Results are summarised rather than raw by default — an assistant handed
ninety days of forty-column rows has no room left for the question. Ask for
include_raw when you need a specific stored column, and anything left out
of a result says so, with the number dropped.
explain_metric is the odd one out: it reads no data. It exists because the
words mean something narrower than they sound, and an assistant that has not
been told will cheerfully add up a month of unique listeners. One that asks
first will not.
What leaves your machine#
The server runs on your computer and your API key never leaves it. Nothing is hosted on your behalf and there is no inbound connection to secure.
The data does leave. Anything you ask about — show names, download figures, IVT rates, campaign terms — is handed to whichever model your client is connected to, because that is how it answers you. With a cloud model, those figures reach the model provider.
That is true of every MCP server, not a quirk of this one. We state it because the people using this hold data about other people's shows, often under terms about where it may be processed. Worth checking before you connect it rather than after.
What the key can do, and how to check the download
The key. One key reads everything in the account it belongs to, and keeps doing so until someone revokes it. There is no per-show scope and no expiry today. It sits in plaintext in your client's configuration file, so treat that file the way you would treat the key. Revoking takes effect immediately, and the row stays in the list so you can see when it was last used.
The download. The package is served from this site rather than from npm, so there is no registry signature behind it. If you want to check what you ran:
sha256 a22a8f0ffaf433bfed473e627a88b84c5dee24d479bc7f6750f22f224a8fa6f3
What is not available#
The MCP server reads through the same API, so the same limits apply: it is read-only, and it reaches only the account its key belongs to. See the API's own page for what that covers.
Last reviewed 11 November 2026