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

# Codex

> Add nextanalytica's web analytics MCP server to OpenAI's Codex with one command, then sign in once in the browser and ask about your site.

Updated: 2026-11-17

Codex connects to nextanalytica's remote MCP server with one command. After that, ask it about your site in plain words.

## Server address

```text
https://mcp.nextanalytica.app/mcp
```

## Setup

```bash
codex mcp add nextanalytica --url https://mcp.nextanalytica.app/mcp
```

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

Ask Codex "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/codex
