> ## Documentation Index
> Fetch the complete documentation index at: https://arizeai-433a7140-claude-llms-txt-2026-08-12.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Phoenix MCP Server

> The @arizeai/phoenix-mcp local stdio server. In maintenance mode — use the Remote MCP Server on Phoenix versions that serve /mcp.

<Warning>
  **Maintenance mode.** `@arizeai/phoenix-mcp` continues to receive bug fixes, but new capabilities land in the [Remote MCP Server](/docs/phoenix/integrations/remote-mcp) built into the Phoenix server. Reach for this package only when your Phoenix version doesn't serve the `/mcp` endpoint. New to Phoenix MCP? Start with the [MCP Overview](/docs/phoenix/integrations/mcp).
</Warning>

The Phoenix MCP Server (`@arizeai/phoenix-mcp`) is a local stdio server, launched with `npx`, that connects AI assistants directly to your Phoenix instance for managing:

* **Projects, Traces, and Spans**: Explore recent traces, inspect spans, and analyze annotations
* **Sessions**: Review conversation flows and session annotations
* **Annotation Configs**: Inspect the available labeling and scoring configs in Phoenix
* **Prompts Management**: Create, list, update, and iterate on prompts
* **Datasets**: Explore datasets and synthesize new examples
* **Experiments**: Pull experiment results and visualize them with the help of an LLM

## Connecting the Phoenix MCP Server

The package runs as a local stdio process. In every client, pass your Phoenix endpoint with
`--baseUrl` and an [API key](/docs/phoenix/settings/api-keys) with `--apiKey` (for a local instance,
`--baseUrl http://localhost:6006`).

<AccordionGroup>
  <Accordion title="Claude Code">
    <Steps>
      <Step title="Add the Phoenix MCP server">
        ```bash theme={null}
        claude mcp add phoenix -- npx -y @arizeai/phoenix-mcp@latest \
          --baseUrl https://my-phoenix.com \
          --apiKey your-api-key
        ```

        Restart your Claude Code session to start using the Phoenix MCP tools.
      </Step>
    </Steps>
  </Accordion>

  <Accordion title="Claude Desktop">
    <Steps>
      <Step title="Add the Phoenix MCP server">
        In **Settings → Developer → Edit Config**, add:

        ```json theme={null}
        {
          "mcpServers": {
            "phoenix": {
              "command": "npx",
              "args": [
                "-y",
                "@arizeai/phoenix-mcp@latest",
                "--baseUrl",
                "https://my-phoenix.com",
                "--apiKey",
                "your-api-key"
              ]
            }
          }
        }
        ```

        Save the file and relaunch Claude Desktop.
      </Step>
    </Steps>
  </Accordion>

  <Accordion title="Cursor">
    <Steps>
      <Step title="Add the Phoenix MCP server">
        Add to `~/.cursor/mcp.json` (or project `.cursor/mcp.json`):

        ```json theme={null}
        {
          "mcpServers": {
            "phoenix": {
              "command": "npx",
              "args": [
                "-y",
                "@arizeai/phoenix-mcp@latest",
                "--baseUrl",
                "https://my-phoenix.com",
                "--apiKey",
                "your-api-key"
              ]
            }
          }
        }
        ```
      </Step>
    </Steps>
  </Accordion>

  <Accordion title="Other clients">
    Any client that supports stdio MCP servers works. Configure it to run
    `npx -y @arizeai/phoenix-mcp@latest --baseUrl <your-phoenix-url> --apiKey <your-api-key>`.
  </Accordion>
</AccordionGroup>

## Using the Phoenix MCP Server

The MCP server can be used to interact with projects, traces, spans, sessions, annotation configs, prompts, experiments, and datasets. It can retrieve operational data, inspect prompt and experiment artifacts, and perform the existing prompt and dataset write flows.

Some good questions to try:

1. `Show me the latest traces in my default Phoenix project`

2. `Show me the last 10 sessions in my support-agent project`

3. `What annotation configs do I have in Phoenix?`

4. `What prompts do I have in Phoenix?`

5. `Create a new prompt in Phoenix that classifies user intent`

6. `Summarize the Phoenix experiments run on my agent inputs dataset`

7. `Visualize the results of my jailbreak dataset experiments in Phoenix`

## Hoping to see additional functionality?

`@arizeai/phoenix-mcp` is [open-source](https://github.com/Arize-ai/phoenix)! Issues and PRs welcome.

<Card horizontal icon="github" href="https://github.com/Arize-ai/phoenix/tree/main/js/packages/phoenix-mcp" title="phoenix-mcp" description="phoenix-mcp package repository" />
