# One-line agent install

> One command adds the Forepop MCP server to Claude Code, Codex, Gemini CLI and VS Code on a computer.

On a Mac or Linux computer:

```bash
curl -fsSL https://forepop.com/install | sh
```

On Windows, in PowerShell:

```powershell
irm https://forepop.com/install.ps1 | iex
```

Then sign in from each agent the first time you use it, and ask it something like the prompt below.

## What it does

It looks for each agent on your computer and runs that agent's own command for adding an MCP server named `forepop` at `https://forepop.com/api/mcp`. Nothing else: no key, no admin rights, nothing downloaded, no config files edited by hand. Read it first at [/install](https://forepop.com/install) (Windows: [/install.ps1](https://forepop.com/install.ps1)).

| Agent | Command it runs | Then |
| --- | --- | --- |
| Claude Code | `claude mcp add --transport http --scope user forepop https://forepop.com/api/mcp` | Type `/mcp` in Claude Code and pick forepop to sign in. |
| Codex | `codex mcp add forepop --url https://forepop.com/api/mcp` | Run `codex mcp login forepop`. |
| Gemini CLI | `gemini mcp add --scope user --transport http forepop https://forepop.com/api/mcp` | Type `/mcp auth forepop` in Gemini CLI. |
| VS Code | `code --add-mcp` with the server's name, type and address | Start forepop from the MCP servers list. |

An agent that already has Forepop is left as it is (Claude Code and Codex say "already connected"). If a command fails, the script prints the command to run yourself.

## Sign in

The first time an agent uses Forepop, it opens a Forepop sign-in page. Sign in, pick the workspace whose answers it should spend (you need to be an admin or owner), and press Allow. The connection then shows under Settings, API keys, where you can revoke it. More in [Authentication](https://forepop.com/developers/authentication#oauth).

## Claude and ChatGPT apps

The apps aren't on your computer's command line, so add a custom connector with this address instead: `https://forepop.com/api/mcp`. Steps are on the [MCP server](https://forepop.com/developers/mcp#connect) page.

## Try it

Paste this into your agent once Forepop is connected:

```text
Use Forepop to find out how US adults would answer this survey:
[paste your questions and answer options, or attach the questionnaire]

Keep every question and option worded exactly as I wrote it. Check the cost with estimate_cost and wait for my OK before you start the study. Then check it every few minutes until it's complete, and show me each option's share with its ± range.
```

## Remove it

```bash
claude mcp remove forepop
codex mcp remove forepop
gemini mcp remove forepop
```

Then revoke the connection under Settings, API keys. In VS Code, remove forepop from the MCP servers list.
