# The Snapvisor MCP server for visual regression testing

> Connect Claude Code, Cursor or any MCP client to the Snapvisor MCP server to create builds, upload screenshots, run visual diffs and approve changes.

Source: https://snapvisor.io/mcp

MCP server

Snapvisor runs a remote Model Context Protocol server so an AI agent can do visual testing end-to-end. Connect once and the agent can create builds, upload screenshots, run diffs, approve or reject changes and comment, all through the same public API, with no CI pipeline required. This page is the short version: the endpoint, how to connect, what the agent can do, and where the machine-readable description lives.

## Endpoint

The server is a stateless, streamable HTTP endpoint at the origin of the MCP host:

endpoint

```
https://mcp.snapvisor.io
```

Authentication is OAuth 2.1 (the default browser-consent flow, with a scoped token per client that you can revoke with the revokeAuthorizedApp tool or from Settings → Applications) or a personal access token passed as a bearer header. Project tokens are upload-only and are not accepted; see the [access tokens guide](https://snapvisor.io/docs/tokens).

## Connect an agent

**Claude Code.** One command adds the connector. The first request without a token triggers the OAuth sign-in in your browser:

shell

```
claude mcp add --transport http snapvisor https://mcp.snapvisor.io
```

**Cursor and other MCP clients.** Any client that speaks streamable HTTP can point at the endpoint, for example from an `mcpServers` config:

json

```
{
  "mcpServers": {
    "snapvisor": {
      "url": "https://mcp.snapvisor.io"
    }
  }
}
```

Want an agent to set itself up, including the SDK for your test runner? The [agent setup guides](https://snapvisor.io/agent-setup) have one page each for Claude Code, Codex, Cursor and OpenCode.

## What an agent can do

The tool surface is derived from Snapvisor's public REST API, so it matches what the product can do. The operations fall into five groups:

- **Build creation.** Create builds, upload screenshots, and finalize builds entirely over MCP, or have Snapvisor screenshot public pages itself. No CI pipeline needed.
- **Builds and projects.** List and inspect builds, projects, and their status across your organization.
- **Screenshot diffs.** Read the visual changes in any build: baseline, current, and the computed diff.
- **Reviews and approvals.** Create reviews to approve or reject visual changes without leaving the agent.
- **Comments.** Read and post build comments so humans and agents stay on the same thread.

To keep the agent's context small, the server exposes two tools instead of one per operation: `search_tools` returns the operations that match a query as TypeScript declarations, and `execute_typescript` runs a short program that calls them, so several calls cost one round trip. Every call enforces the same authentication and scopes as a direct call.

To check a connection, run this through the second tool:

execute_typescript

```
return await external_getMe({});
```

It answers with the signed-in user and the accounts the connection can reach. Every tool works on every plan, Free included. The [permission tiers](https://snapvisor.io/docs/agents/mcp-server#permissions) are in the guide.

## Machine-readable discovery

Clients and crawlers do not have to read this page to find the server. Each document below describes it:

- **MCP server card:** [/.well-known/mcp/server-card.json](https://snapvisor.io/.well-known/mcp/server-card.json) on this site, and the same card on the MCP host at [mcp.snapvisor.io/.well-known/mcp/server-card.json](https://mcp.snapvisor.io/.well-known/mcp/server-card.json). It names the endpoint, the streamable HTTP transport and the OAuth metadata location.
- **OAuth protected resource metadata:** [mcp.snapvisor.io/.well-known/oauth-protected-resource](https://mcp.snapvisor.io/.well-known/oauth-protected-resource), where a client learns which authorization server to use.
- **Official MCP registry:** [io.snapvisor/snapvisor](https://registry.modelcontextprotocol.io/v0.1/servers/io.snapvisor%2Fsnapvisor/versions/latest).
- **llms.txt:** [/llms.txt](https://snapvisor.io/llms.txt) lists the docs and the agent setup files.

## Frequently asked questions

### What is the Snapvisor MCP server?

A remote Model Context Protocol server at https://mcp.snapvisor.io. It lets an AI agent create builds, upload screenshots, run visual diffs, approve or reject changes and post comments in Snapvisor, through the same public API the product uses.

### Which transport does it use?

Streamable HTTP, as a stateless endpoint. Any MCP client that speaks streamable HTTP can connect, including Claude Code and Cursor.

### How does an agent authenticate?

With OAuth 2.1, where the client opens a consent screen and is issued a scoped access token, or with a personal access token passed as a bearer header. Project (CI) tokens are upload-only and are not accepted.

### How do I confirm the connection works?

Call the getMe operation through the execute_typescript tool; the check on this page shows the exact line. It answers with the signed-in user and the accounts the connection can reach.

### Is there a machine-readable description of the server?

Yes. The MCP server card at https://snapvisor.io/.well-known/mcp/server-card.json (also served from the MCP origin) lists the endpoint, transport and OAuth metadata URL, and the server is listed in the official MCP registry as io.snapvisor/snapvisor.

### Does every plan include MCP access?

Yes. Every tool works on every plan, Free included: the build loop (create a project, push screenshots or have Snapvisor screenshot public pages itself, read the diff), reviewing and approving changes, comments and team tools. What a client can do is set by the scopes it was granted.

## Sources

Snapvisor documentation

- [MCP server guide](https://snapvisor.io/docs/agents/mcp-server)
- [Access tokens](https://snapvisor.io/docs/tokens)
- [REST API reference](https://snapvisor.io/docs/api-reference)

## Connect your agent

[MCP server guide](https://snapvisor.io/docs/agents/mcp-server) [Agent setup](https://snapvisor.io/agent-setup)

## Related pages

Guides [How visual regression testing works](https://snapvisor.io/visual-regression-testing) [Self-hosted visual regression testing](https://snapvisor.io/self-hosted-visual-regression-testing) [Visual regression testing in GitHub pull requests](https://snapvisor.io/visual-regression-testing-github)

Test runner and CI setup [Playwright visual testing setup](https://snapvisor.io/playwright) [Storybook visual testing setup](https://snapvisor.io/storybook) [Cypress visual testing setup](https://snapvisor.io/cypress) [Puppeteer visual testing setup](https://snapvisor.io/puppeteer) [Visual regression testing in GitLab CI](https://snapvisor.io/gitlab-ci)

Compare Snapvisor [Snapvisor vs Percy](https://snapvisor.io/compare/percy) [Snapvisor vs Chromatic](https://snapvisor.io/compare/chromatic) [Snapvisor vs Applitools](https://snapvisor.io/compare/applitools) [Snapvisor vs Argos](https://snapvisor.io/compare/argos) [Snapvisor vs Lost Pixel](https://snapvisor.io/compare/lost-pixel) [Snapvisor vs Happo](https://snapvisor.io/compare/happo) [Snapvisor vs Playwright snapshots](https://snapvisor.io/compare/playwright) [Visual regression testing pricing compared](https://snapvisor.io/visual-regression-testing-pricing) [Alternatives to other visual testing tools](https://snapvisor.io/alternatives)

Free tools [Image diff checker](https://snapvisor.io/tools/image-diff) [Screenshot calculator](https://snapvisor.io/tools/screenshot-calculator)
