# Set up an AI agent on Darkbeacon (MCP)

> Connect Claude, Claude Code, VS Code, Cursor or any other MCP client to your Darkbeacon map: the address, the sign-in, what an agent can do, and a prompt that lets the agent set itself up.

Web page: https://darkbeacon.space/mcp-setup

**MCP** Set up an agent

## Point your assistant at the map.

Claude, Claude Code, VS Code, Cursor and other MCP clients connect to Darkbeacon with one address. Add it, sign in as yourself, approve, and ask where the chain is.

**01** Before you start

### One address, two switches.

- #### The address

    `https://app.darkbeacon.space/mcp`

    Every instance has its MCP endpoint at `/mcp` on its own address. It speaks Streamable HTTP, the transport current clients use for remote servers.

- #### An admin turns it on

    AI agents are off until an instance admin opens **Admin, API access** and picks **API keys only** (agents that sign in or carry a key) or **Public maps too** under **AI agents (MCP)**. While it is off, the address answers 404.

- #### Each map decides

    A map admin can keep a map away from every agent in **Map settings, Public link, AI agents**: **Off**, **API keys only** (the default) or **Public too**. The switch **API keys and AI agents (MCP)** in **Admin, Instance** stops all of it at once.

**02** Let your agent set it up

### Paste this into your agent.

Agents that can change their own settings, like Claude Code, add the server, ask you to sign in, and check that they can see your maps. Others tell you what to click. Either way, you approve the access yourself.

Prompt

```
Set up the Darkbeacon MCP server for me.

Darkbeacon is a wormhole mapper for EVE Online. Its MCP endpoint is:
https://app.darkbeacon.space/mcp

1. Add it to this client as a remote MCP server named "darkbeacon": Streamable HTTP transport, the URL above. No local command or bridge is needed.
2. Sign in with OAuth. When the client opens a browser or gives you a sign-in link, tell me, so I can sign in to Darkbeacon, choose which maps you may use and whether you may change anything, and press Allow. Do not ask me for a password.
3. Check that it works: call list_maps and tell me which maps you can see, then call get_map on the one I fly in and tell me where the chain is and which connections need attention first.
4. If the URL answers 404, AI agents are off on this instance and you cannot fix that. Tell me that an instance admin has to open Admin, API access, AI agents (MCP) and choose "API keys only" or "Public maps too". If a map I expect is missing, its admin may have set Map settings, Public link, AI agents to Off.
5. If this client cannot add a remote MCP server or cannot sign in with OAuth, say so, and point me to https://darkbeacon.space/mcp-setup for setting it up with an API key instead.
```

**03** Or add it by hand

### Your client, step by step.

Clients that support MCP sign-in need only the address. They find the sign-in on their own, open Darkbeacon in your browser, and you approve there.

#### Claude (claude.ai and Claude Desktop)

1. Open **Settings, Connectors** and choose **Add custom connector**.

2. Name it `Darkbeacon` and paste the address below as the URL.

3. Choose **Connect**, sign in to Darkbeacon in the window that opens, and approve.

Connector URL

```
https://app.darkbeacon.space/mcp
```

claude.ai reaches the server from Anthropic’s side, so a self-hosted instance has to be reachable from the internet.

#### Claude Code

1. Add the server from a terminal.

2. In Claude Code, run `/mcp`, pick `darkbeacon` and sign in when the browser opens.

Terminal

```
claude mcp add --transport http darkbeacon \
  https://app.darkbeacon.space/mcp
```

#### VS Code

1. Put this in `.vscode/mcp.json` in your workspace, or in your user `mcp.json`.

2. Start the server from the file, and allow the sign-in when VS Code asks.

mcp.json

```
{
  "servers": {
    "darkbeacon": {
      "type": "http",
      "url": "https://app.darkbeacon.space/mcp"
    }
  }
}
```

#### Cursor

1. Put this in `~/.cursor/mcp.json`, or `.cursor/mcp.json` in a project.

2. When Cursor asks you to sign in to the server, do it in the browser and approve.

mcp.json

```
{
  "mcpServers": {
    "darkbeacon": {
      "url": "https://app.darkbeacon.space/mcp"
    }
  }
}
```

#### Any other MCP client

Give it the address as a remote server over Streamable HTTP. Without a token the endpoint answers 401 and points the client to Darkbeacon’s own sign-in (OAuth 2.1 with PKCE, dynamic registration or a client metadata document). A client that cannot sign in sends an API key instead.

Settings

```
URL        https://app.darkbeacon.space/mcp
Transport  Streamable HTTP
Sign-in    OAuth, found on its own from the 401 answer
           or the header  Authorization: Bearer dbk_pat_...
```

**04** Sign-in

### It acts as you, never more.

The agent gets exactly the access of the person who approved it, narrowed by what they picked. It never gets administration rights.

#### Sign in like a pilot (OAuth)

The client opens Darkbeacon in your browser. You sign in as usual, with Discord or EVE, and see who is asking and what for. Under **Which maps** keep **All maps I can see** or pick **Only these maps**, switch on **Read only** if it should only look, then **Allow**.

Every approval is listed in **Account, Connected apps**, where you revoke it. The client refreshes its own sign-in; you do not paste anything.

#### Or an API key

For scripts and clients without OAuth: **Account, API keys, New key**. For an agent that only reads, pick **Read everything** and switch on **Read only**. For one that logs signatures, pick **Mapper**, or **Custom** with `signatures:write` (and `connections:write`, `systems:write` for connections and notes), ideally on the one map it works on.

The key is shown once. Clients send it in the header `Authorization: Bearer dbk_pat_...`, where `dbk_pat_...` is the key.

Claude Code with a key

```
claude mcp add --transport http darkbeacon \
  https://app.darkbeacon.space/mcp \
  --header "Authorization: Bearer dbk_pat_..."
```

VS Code with a key (asks for it once)

```
{
  "servers": {
    "darkbeacon": {
      "type": "http",
      "url": "https://app.darkbeacon.space/mcp",
      "headers": { "Authorization": "Bearer ${input:darkbeacon-token}" }
    }
  },
  "inputs": [
    {
      "id": "darkbeacon-token",
      "type": "promptString",
      "password": true,
      "description": "Darkbeacon API key"
    }
  ]
}
```

**05** What it can do

### The tools your agent gets.

Each tool calls the same code the app does, as you, with the same checks. A key needs the scope in the right column; write tools appear only for a key or approval that may write.

#### Read

- **`list_maps`**: The maps it can read, with your role on each. (maps:read)
- **`get_map`**: The chain: systems with class, statics, effect and status, connections and exits. (maps:read)
- **`find_system`**: Finds a system by name, and whether it is on a map. (universe:read)
- **`get_system_intel`**: Class, region, statics with sizes and effect; on a map also notes, signatures and pilots. (maps:read)
- **`list_connections`**: Connections most urgent first, with mass and time left and which hulls still fit. (connections:read)
- **`find_route`**: Shortest, safer, high-sec, outlaw or pilot route over gates and the chain. (routes:read)
- **`nearest_hub`**: The exits with jumps to the trade hubs, or from one system the jumps to every hub. (routes:read)
- **`list_signatures`**: The signatures of a system. (signatures:read)
- **`get_recent_history`**: The latest changes on a map: what, who, and how they were made. (audit:read)

#### Write

- **`add_signature`**: Records a signature. (signatures:write)
- **`update_signature`**: Group, type, name, notes, or the connection it leads to. (signatures:write)
- **`add_connection`**: Connects two systems, adding them when they are missing. (connections:write)
- **`update_connection`**: Mass, EOL, size, mass saved, danger, bubbles. (connections:write)
- **`add_note`**: Adds to, or replaces, the notes of a system. (systems:write)

Also a map snapshot as a resource (`darkbeacon://maps/{map}/snapshot`) and two prompts, `summarise_chain` and `plan_route_home`.

- Every write lands in the map history as made “via MCP” with the client’s or key’s name, and can be undone there like any other change.
- Requests count toward the key’s rate limit. Agents without a key, on public maps, are limited per address.
- Agents without a key see only public maps opened to agents, only what the public link shows, and cannot write.
- Signed-in browsers never authenticate `/mcp`: only a key or a token from an approval does.

- [Open app](https://app.darkbeacon.space/)
- [Full MCP reference](https://github.com/zanreal-labs/darkbeacon/blob/main/docs/mcp.md)
- [Back to AI agents](https://darkbeacon.space/#agents)

---

Made by [ZanReal](https://zanreal.com/), in game Z4NR34L.

EVE Online and all related logos and designs are trademarks or registered trademarks of CCP ehf. Darkbeacon is not affiliated with or endorsed by CCP.
