# Connect an agent (MCP)

Give an MCP client access to read, prepare or run your polls.

## Ways to connect

| Method | Best for | What you do |
| --- | --- | --- |
| Sign in (OAuth) | MCP clients with OAuth | Add the server URL and approve access with your passkey. |
| Setup token | Coding agents that can run commands | Give the agent a one-time token to exchange for its own scoped key. |
| API key | Scripts and servers | Create a key and send it as a bearer credential. |

## Server URL

Use a client that supports remote MCP over Streamable HTTP:

```text
https://poll.express/mcp
```

The tools work on polls owned by your account. They do not vote on behalf of anyone or manage your account.

## Add it to your app

### Claude Code

```text
claude mcp add --transport http poll-express https://poll.express/mcp
```

1. Run the command, then type /mcp in Claude Code.
2. Choose poll-express and approve with your passkey.

### Codex

```text
codex mcp add poll-express --url https://poll.express/mcp
```

1. Run the command.
2. Run codex mcp login poll-express and approve with your passkey if prompted.

### Cursor

```text
{
  "mcpServers": {
    "poll-express": {
      "url": "https://poll.express/mcp"
    }
  }
}
```

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=poll-express&config=eyJ1cmwiOiJodHRwczovL3BvbGwuZXhwcmVzcy9tY3AifQ%3D%3D)

1. For manual setup, merge this entry into ~/.cursor/mcp.json.
2. Open Customize → MCPs, choose poll-express and sign in.

### VS Code

```text
code --add-mcp '{"name":"poll-express","type":"http","url":"https://poll.express/mcp"}'
```

[Install in VS Code](vscode:mcp/install?%7B%22name%22%3A%22poll-express%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fpoll.express%2Fmcp%22%7D)

1. For manual setup, run the command. Start poll-express from the MCP servers view.
2. Approve with your passkey when VS Code asks.

### OpenCode

```text
opencode mcp add poll-express --global --url https://poll.express/mcp
```

1. Run the command.
2. Open /mcps in OpenCode, choose poll-express and approve with your passkey.

### Claude

```text
https://poll.express/mcp
```

1. Open Customize → Connectors → Add → Add custom connector. Name it Poll Express and paste the URL.
2. Keep the detected sign-in settings, then select Connect and approve with your passkey.

### ChatGPT

```text
https://poll.express/mcp
```

1. Open Plugins, choose + → Add custom MCP server, and paste this URL. Availability depends on your plan or workspace.
2. Choose OAuth, create the plugin and approve with your passkey.

### Other

```text
{
  "type": "http",
  "url": "https://poll.express/mcp",
  "headers": {
    "Authorization": "Bearer YOUR_POLL_EXPRESS_API_KEY"
  }
}
```

1. Use the URL for a Streamable HTTP server. If your app can sign in with OAuth, use that and omit the header.
2. Otherwise, adapt the example to your client and use a key from Account → Connections. Keep it out of source control.

If your client uses OAuth, Poll Express asks you to verify with your passkey and review the requested permissions. After connecting, ask the client to list your polls. Clients can use the [protected resource metadata](https://poll.express/.well-known/oauth-protected-resource/mcp) to discover the authorization server and start the authorization code flow with PKCE.

## Choose permissions

| Scope | What it lets the client do |
| --- | --- |
| `poll.read` | Read your polls, results and links. Every connection needs this. |
| `poll.write` | Create, edit and delete your polls and questions. |
| `poll.live` | Run the room, control voting and results, and moderate written answers. |

Some tools need both write and live permission. Check the [MCP tools reference](https://poll.express/docs/mcp/tools/) for the exact scopes. If a client reports insufficient scope, reconnect with the permissions it needs rather than sharing an unrelated credential.

## Connect a script

Create a [personal API key](https://poll.express/docs/api-keys/) when your MCP client accepts a bearer header instead of using OAuth. Revoke keys and disconnect OAuth clients in [Connections](https://poll.express/account/connections).

For the one-time exchange, see [API keys and setup tokens](https://poll.express/docs/api-keys/#exchange-a-setup-token).
