> For the complete documentation index, see [llms.txt](https://docs.zigpoll.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zigpoll.com/integrations/mcp/mcp-claude.md).

# Connect to Claude

Connect your Zigpoll surveys to **Claude** using the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/). Once connected, Claude can read your survey responses, run analytics, and even create surveys — just ask in plain English. No coding required.

This guide covers both **Claude Desktop** and **Claude Code (CLI)**. For other AI clients, see the [MCP overview](/integrations/mcp.md).

{% hint style="info" %}
**How authorization works:** there's no API key to copy or paste. When you connect, Claude opens a browser window to authorize with Zigpoll. If you're already logged into Zigpoll in that browser, authorization completes automatically — you'll briefly see a loading screen, then be returned to Claude. If you're not logged in, sign in with your email and password, Google, or Shopify. Claude then stores a secure token, so you only do this once.
{% endhint %}

## Claude Desktop

1. Open **Settings → Developer → Edit Config**.
2. Add Zigpoll to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "zigpoll": {
      "url": "https://mcp.zigpoll.com/mcp"
    }
  }
}
```

3. Save and restart Claude Desktop.
4. Claude opens a browser window to connect to Zigpoll. Sign into Zigpoll if prompted — if you're already logged in, authorization completes automatically.

## Claude Code (CLI)

1. Add the server from your terminal:

```bash
claude mcp add --transport http zigpoll https://mcp.zigpoll.com/mcp
```

2. Run `/mcp` inside Claude Code and select **zigpoll** to authenticate.
3. A browser window opens — sign into Zigpoll if prompted (authorization completes automatically if you're already logged in).

{% hint style="info" %}
**How authentication works:** `mcp.zigpoll.com` uses a standard browser-based OAuth login tied to your Zigpoll account. Setting a static `Authorization: Bearer <api-key>` header will not work — your login is exchanged for a secure token through the browser authorization flow.
{% endhint %}

## Verify your connection

Ask Claude:

> "List my Zigpoll accounts"

or

> "Show me my recent surveys"

Claude will use the Zigpoll tools automatically to fetch your data.

## Example prompts

* "Summarize the responses for my NPS survey from the last 30 days"
* "What devices and browsers are my respondents using?"
* "How do NPS scores correlate with purchase type?"
* "Create a new post-purchase survey for my account"

For the full list of tools and more examples, see the [MCP overview](/integrations/mcp.md). For ideas on what to build, see [Ideas for Using Zigpoll MCP](/tutorials/zigpoll-mcp-use-cases.md).

## Troubleshooting

* **No authorization window appears** — run `/mcp` in Claude Code, or look for a "Connect"/"Authenticate" prompt in Claude Desktop and trigger it manually.
* **Tools not appearing** — restart Claude after adding the server.
* **Connected to the wrong Zigpoll account** — authorization uses whichever Zigpoll account is logged into your browser. Log into the correct account at [app.zigpoll.com](https://app.zigpoll.com), then disconnect and reconnect the server.
* **Authentication errors** — the connection authenticates with an API key labeled "MCP" that Zigpoll creates automatically. If it was revoked in **Settings → Manage Integrations → API Key**, disconnect and reconnect to issue a new one.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.zigpoll.com/integrations/mcp/mcp-claude.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
