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

# How do I connect my website analytics to Claude Code?

> Connect website analytics to Claude Code with one command: add nextanalytica's MCP server, sign in with /mcp, then ask about your site.

Updated: 2026-12-01

Add an analytics MCP server with one command, then sign in. For nextanalytica: `claude mcp add --scope user --transport http nextanalytica https://mcp.nextanalytica.app/mcp`, then run `/mcp` in Claude Code and sign in in your browser. Start a new session, and Claude Code can read your visits, sources and conversions.

## How do you do it?

1. Run the command above.
2. Run `/mcp`, choose nextanalytica and sign in.
3. Start a new session and ask "Call get_context for shop.example".

## What can you ask your agent?

- "What changed on the site this week?"
- "I deployed. Did I break anything?"

## Next steps

- [Claude Code](/docs/model-context-protocol/claude-code)
- [MCP servers for Claude](/docs/model-context-protocol/claude-mcp-servers)

Canonical address: https://nextanalytica.app/docs/answers/connect-analytics-to-claude-code
