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

# Connect to OpenClaw

Connect your Zigpoll surveys to [**OpenClaw**](https://openclaw.ai) — the open-source, multi-channel AI agent gateway — using the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/). Once connected, you can ask your OpenClaw agent about survey results, run analytics, and even create surveys from any channel it lives in: WhatsApp, Telegram, Discord, and more. No coding required.

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, OpenClaw gives you an authorization link to open in your browser. If you're already logged into Zigpoll in that browser, authorization completes automatically; if not, sign in with your email and password, Google, or Shopify. OpenClaw then stores a secure token, so you only do this once.
{% endhint %}

## Add Zigpoll to OpenClaw

1. On the machine running your OpenClaw gateway, add the Zigpoll MCP server:

```bash
openclaw mcp add zigpoll \
  --url https://mcp.zigpoll.com/mcp \
  --transport streamable-http \
  --auth oauth \
  --oauth-scope mcp:read
```

2. Start the login flow:

```bash
openclaw mcp login zigpoll
```

3. OpenClaw prints an authorization URL. Open it in your browser — sign into Zigpoll if prompted (authorization completes automatically if you're already logged in).
4. If your browser can't redirect back automatically (for example, when OpenClaw runs on a remote server), copy the authorization code shown after approving and finish the login from the terminal:

```bash
openclaw mcp login zigpoll --code <paste-code-here>
```

{% 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

Check the server from the terminal:

```bash
openclaw mcp list
openclaw mcp doctor zigpoll --probe
```

Then message your agent on any connected channel:

> "List my Zigpoll accounts"

or

> "Show me my recent surveys"

Your agent will use the Zigpoll tools automatically to fetch your data.

## Optional: limit which tools your agent can use

Zigpoll exposes 38 tools, including ones that create surveys and send emails or SMS. If you want your agent to be read-only, add a tool filter so only data and analytics tools are available:

```bash
openclaw mcp set zigpoll '{
  "url": "https://mcp.zigpoll.com/mcp",
  "transport": "streamable-http",
  "auth": "oauth",
  "toolFilter": {
    "include": ["get_*", "list_*", "analyze_*", "compare_*", "correlate_*", "group_answers"]
  }
}'
```

Remove the `toolFilter` block (or re-run the `openclaw mcp add` command above) to restore full access.

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

* **Running OpenClaw on a headless server** — the OAuth login needs a browser somewhere. Open the authorization URL on your laptop, approve, then pass the code back with `openclaw mcp login zigpoll --code <code>`. Until login completes, OpenClaw simply leaves Zigpoll out of the agent's tools rather than erroring.
* **Tools not appearing** — run `openclaw mcp status --verbose` to confirm the server is authorized and connected, and check that a `toolFilter` isn't excluding the tools you expect.
* **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 re-run `openclaw mcp login zigpoll`.
* **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**, re-run `openclaw mcp login zigpoll` 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-openclaw.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.
