> 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).

## Prerequisite: get your Zigpoll API key

1. Log into your [Zigpoll dashboard](https://app.zigpoll.com).
2. Go to **Settings → Manage Integrations**.
3. Scroll to **API Key**, click **Add Key** under **Private Keys**, label it "MCP", and copy it.

{% hint style="info" %}
You won't paste this key into a config file. When you connect, Claude opens a browser window to authorize with Zigpoll, and you paste the key on the Zigpoll authorization page. 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. On the Zigpoll authorization page, paste the API key from the previous step and click **Authorize**.

## 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 — paste your API key on the Zigpoll authorization page to approve access.

{% hint style="info" %}
**How authentication works:** `mcp.zigpoll.com` uses a standard browser-based OAuth login. Setting a static `Authorization: Bearer <api-key>` header will not work — the key is exchanged for a token through the authorization page.
{% 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.
* **Authentication errors** — make sure you're using a valid API key that hasn't been revoked. You can regenerate one from **Settings → Manage Integrations → API Key**.


---

# 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.
