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

# VS Code

> Add nextanalytica's web analytics MCP server to VS Code's agent mode with one mcp.json file, then sign in once in the browser and ask away.

Updated: 2026-11-17

VS Code's agent mode connects to nextanalytica's remote MCP server. It takes one file and a sign-in.

## Setup

Add the server to your workspace, or run **MCP: Add Server** from the Command Palette:

```json title=".vscode/mcp.json"
{
  "servers": {
    "nextanalytica": {
      "type": "http",
      "url": "https://mcp.nextanalytica.app/mcp"
    }
  }
}
```

Start it from the file's **Start** link. The first time the client connects, it opens your browser to sign in to nextanalytica. Sign in as yourself; your agent then sees what you can see.

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

In Chat, in agent mode, ask "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/vscode
