# Connect to Evidence

Instructions for an AI assistant. The person you're helping wants to connect Evidence, an MCP
server with public and licensed datasets, to the app or agent you're running in. This is a plain
page, not a skill or a script to install: read it, work out which client you are, and set Evidence
up (or walk the person through it). No secrets live in this file.

## The server

| | |
|---|---|
| Name | `evidence` |
| URL | `https://mcp.evidence.so/mcp` |
| Transport | Streamable HTTP (a remote server, nothing to install) |
| Sign-in | OAuth 2.1 with discovery and PKCE; the person signs in with Google in their browser |

Most clients find the sign-in on their own: leave Client ID, client secret and scopes empty. Signing
in accepts Evidence's privacy policy. Use an API key only when the client can't do OAuth (see the
end of this page).

## Ground rules

- Ask before you change a config file, and say which file and what you'll add.
- Add only the `evidence` entry. Keep every other server and setting as it is.
- Never ask the person to paste a password, token or API key into the chat. They sign in in their
  browser.
- If you can't do a step yourself (a settings screen, a browser sign-in), tell the person exactly
  where to click, one step at a time.

## Step 1: which client are you?

Evidence has a step-by-step guide, with screenshots, for these. If you are one of them, follow its
short version below and share the guide's link:

- Claude (claude.ai, Claude Desktop, Claude Code): https://evidence.so/docs/install/claude
- ChatGPT and Codex: https://evidence.so/docs/install/chatgpt
- Gemini app and Gemini CLI: https://evidence.so/docs/install/gemini
- Cursor and Cursor CLI: https://evidence.so/docs/install/cursor
- OpenCode: https://evidence.so/docs/install/opencode

Anything else: go to **Step 2**.

### Claude.ai and Claude Desktop

1. Click **Plugins** in the sidebar, then **Add → Add custom connector**.
2. Name it Evidence, paste the URL and click **Continue**. Sign in with Google when asked.
3. In a new chat, click **+** at the bottom left of the message box, open **Connectors** and switch
   Evidence on. When Claude asks to use an Evidence tool, **click Allow**.

### Claude Code

```bash
claude mcp add --transport http -s user evidence https://mcp.evidence.so/mcp
claude mcp login evidence
```

The login opens the browser: **Continue with Google**, then **Approve**. `claude mcp list` should
show evidence as ✔ Connected.

### ChatGPT

1. Open **Plugins** in the sidebar, click **Add**, then **Add custom MCP server**.
2. Name it Evidence and paste the URL under **Server URL**. Leave **Authentication** on OAuth and
   Advanced OAuth settings alone. The icon can only be set here:
   https://evidence.so/brand/evidence-icon-256.png
3. Tick **I understand and want to continue**, click **Create as a plugin**, sign in with Google.
4. In a new chat, mention **@evidence** or pick it from the **+** menu.

Business, Enterprise and Edu workspaces may need an admin to allow custom MCP servers.

### Codex CLI

```bash
codex mcp add evidence --url https://mcp.evidence.so/mcp
```

It opens the browser to sign in. If it doesn't: `codex mcp login evidence`.

### Gemini app

1. Click **Customize** in the sidebar, open **Connectors** and click **+ Custom**.
2. Paste the URL as the **MCP Server URL** and click **Next**.
3. Tick the box to accept the risks and click **Connect**, then **Agree and continue**.

### Gemini CLI

```bash
gemini mcp add --transport http -s user evidence https://mcp.evidence.so/mcp
```

Start `gemini` in the working folder and choose **Trust folder** (MCP servers stay off in untrusted
folders), then run `/mcp auth evidence`.

### Cursor

1. Click **Customize** in the sidebar (older versions: Settings → Tools & MCP), open **MCPs** and
   click **New MCP Server**. It opens `~/.cursor/mcp.json`.
2. Add `"evidence": { "url": "https://mcp.evidence.so/mcp" }` inside `mcpServers` and save.
3. Evidence appears under **Needs Attention**: click **Authenticate** and sign in.

The Cursor CLI reads the same file: `cursor-agent mcp login evidence`.

### OpenCode

```bash
opencode mcp add evidence --url https://mcp.evidence.so/mcp
opencode mcp auth evidence
```

## Step 2: any other client

Pick the first route that fits what you can do.

### A. You can run commands (a coding agent or CLI)

1. Check whether your own CLI can add MCP servers: try `<your-cli> mcp --help` or
   `<your-cli> mcp add --help`.
2. Add a **remote HTTP** server named `evidence` with the URL, at **user / global** scope so it works
   in every folder (not just this project).
3. Start the sign-in: a `mcp login evidence` / `mcp auth evidence` command if there is one, or the
   client's `/mcp` menu. Many clients open the browser on their own the first time the server is
   used. Some only sign in from an **interactive** session, never in a one-off run (`-p`,
   `exec`): if a one-off run reports that evidence needs auth, tell the person to start the client
   normally and sign in there.
4. Check it: the client's `mcp list` should show evidence connected. New tools often appear only
   in a new session: tell the person to restart if needed.

Commands we know:

```bash
# GitHub Copilot CLI: then start `copilot` and sign in to evidence from `/mcp`
copilot mcp add --transport http evidence https://mcp.evidence.so/mcp

# VS Code with GitHub Copilot (adds it to the user profile)
code --add-mcp '{"name":"evidence","type":"http","url":"https://mcp.evidence.so/mcp"}'
```

### B. You configure servers in a file

Add the entry to the client's **user-level** MCP config and save. The two common shapes:

```json
{ "mcpServers": { "evidence": { "url": "https://mcp.evidence.so/mcp" } } }
```

```json
{ "servers": { "evidence": { "type": "http", "url": "https://mcp.evidence.so/mcp" } } }
```

The first is used by Cursor, Claude Desktop-style configs and many others; the second by VS Code
(`mcp.json`). Some clients name the field differently (Windsurf: `serverUrl`) or want
`"type": "http"` / `"streamable-http"`: follow the client's own docs for the exact keys, and keep
the name `evidence` and the URL.

### C. You're a chat app

Tell the person where to add it: usually **Settings** (or a sidebar item) → **Connectors**,
**Integrations**, **Plugins** or **MCP** → **Add custom / remote server**, with the URL above and
OAuth sign-in. Some apps only allow this on paid plans or for workspace admins.

### D. Your client only runs local (stdio) servers

Bridge the remote server with `mcp-remote`, which also handles the Google sign-in (needs Node.js):

```json
{ "mcpServers": { "evidence": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.evidence.so/mcp"] } } }
```

## Smoke test

Call one tool and expect a normal structured reply (not an auth error):

1. Prefer `account`
2. Or `feedback` if `account` is missing

If the reply says to sign in to accept the privacy policy, open the link in it, sign in, and ask again.

## After setup: run the first question

Don't stop at "connected". Once the smoke test passes, offer a first run in the same conversation:

1. Ask in one line what they are working on, or what they'd like to know.
2. Pick one question from their answer that Evidence's data can answer, and answer it using Evidence tools.
3. Show where the numbers come from (dataset and table) and say what the data can't tell them.

Leave personal details (names, emails, ID numbers, addresses) out of the `intent` text you send to tools.

If Evidence's tools only appear after a restart, tell the person to restart and then paste this:

> Use Evidence to bring me value: ask me what I'm working on, then answer one question about it with real data and show where the numbers come from.

## API key fallback

Only if the client can't do OAuth: the person opens https://evidence.so, signs in, and creates a key
on the **API keys** page. The client then sends

```
Authorization: Bearer dmk_…
```

on every MCP request, read from an environment variable rather than written into a shared file.
Never put keys in this file or in the chat.
