> AI agents: this is one page of nextanalytica's docs. The full index for agents: https://nextanalytica.app/llms.txt

# Cursor

> Add nextanalytica's web analytics MCP server to Cursor in its MCP settings or mcp.json, signed in in the browser or with a personal agent key.

Updated: 2026-11-17

Cursor connects to nextanalytica's remote MCP server from its MCP settings. It takes one file and a sign-in.

## Setup

1. Open **Cursor Settings** > **MCP** and click **Add new MCP server**, or create the file below.
2. Add the server:

```json title=".cursor/mcp.json"
{
  "mcpServers": {
    "nextanalytica": {
      "url": "https://mcp.nextanalytica.app/mcp"
    }
  }
}
```

3. Save; Cursor connects and opens the browser to sign in.

Put it in `~/.cursor/mcp.json` to have it in every project. With an [agent key](/docs/model-context-protocol/agent-keys), add `"headers": { "Authorization": "Bearer na_key_…" }` next to `url`, and keep that file out of your repository.

> **Note:** We test Claude Code and the Claude app ourselves, and no other client. This setup follows the client's own way of adding a remote MCP server. Clients change often: if a step differs in your version, the server address and the header stay the same.

## Check it works

Ask Cursor's agent "Which projects do I have in nextanalytica?".

> **Warning:** Text on web pages, in issues or in data can try to steer an agent (prompt injection). Read what it proposes before you approve a change.

## What's next

- [Use cases](/docs/model-context-protocol/use-cases): questions that work, by task.
- [MCP tools](/docs/model-context-protocol/tools): every tool your agent can call.
- [FAQ](/docs/model-context-protocol/faq): keys, projects, data and safety.

Canonical address: https://nextanalytica.app/docs/model-context-protocol/cursor
