Skip to main content
Use this guide to connect coding agents (Claude Code, Cursor, VS Code, Windsurf, and others) to Phoenix for debugging, observability, and evaluation workflows. Most users should set up all three:

Shared Environment Configuration

Set environment variables to connect to your Phoenix instance:
export PHOENIX_HOST=http://localhost:6006    # Your Phoenix endpoint
export PHOENIX_PROJECT=my-project            # Project name
export PHOENIX_API_KEY=your-api-key          # API key (if auth enabled)
Keep API keys out of committed config files. Prefer environment variables and local-only config.

CLI

Install the Phoenix CLI globally:
npm install -g @arizeai/phoenix-cli
Use CLI tools when your coding agent needs terminal-native access to Phoenix resources, including traces, experiments, datasets, and prompts. Common agent workflows with px:
  • investigate trace failures and performance regressions
  • inspect and compare experiment runs
  • list and fetch datasets for evaluation workflows
  • inspect and retrieve prompt versions and content
Example prompt:
Debug my agent's tool-call failures. Use Phoenix CLI to inspect traces, recent experiments, and relevant prompts, then summarize root causes.
Verify CLI installation:
px --help

MCP

MCP has two different Phoenix integrations, and they serve different goals.
MCP IntegrationPurposeWhen to use
Phoenix Docs MCPSearch Phoenix documentation from your coding agentRecommended for all users
Phoenix MCP ServerOperate directly on your Phoenix instance (prompts, datasets, experiments)Use when you want agent-driven Phoenix data operations

Phoenix Docs MCP (Documentation Access)

Phoenix Docs MCP URL:
https://arizeai-433a7140.mintlify.app/mcp

Project scope:
claude mcp add --transport http phoenix-docs https://arizeai-433a7140.mintlify.app/mcp
User scope:
claude mcp add --transport http phoenix-docs --scope user https://arizeai-433a7140.mintlify.app/mcp
Verify:
claude mcp list

Phoenix MCP Server (Direct Phoenix Operations)

For prompt, dataset, and experiment operations against your Phoenix instance, use the dedicated setup guide:
Install both MCP integrations if you want your coding agent to both look up docs and perform direct Phoenix instance operations.

Skills

Install Phoenix skills using skills add:
npx skills add Arize-ai/phoenix
This installs skills into the project’s agent directory (for example, .claude/skills/, .cursor/skills/, or .github/skills/).

Available Skills

skills add Options

OptionDescription
-g, --globalInstall to user directory instead of project
-a, --agent <agents...>Target specific agents (for example, claude-code, cursor)
-s, --skill <skills...>Install specific skills by name
-l, --listList available skills without installing
-y, --yesSkip confirmation prompts

Examples

# Install the CLI skill globally for all projects
npx skills add Arize-ai/phoenix --skill phoenix-cli -g

# Install CLI + tracing skills together
npx skills add Arize-ai/phoenix --skill phoenix-cli --skill phoenix-tracing

# Install for specific coding agents
npx skills add Arize-ai/phoenix --skill phoenix-cli -a claude-code -a cursor

# Non-interactive installation
npx skills add Arize-ai/phoenix --skill phoenix-cli -g -y
Supported agents include Claude Code, Cursor, Windsurf, Codex, GitHub Copilot, Cline, OpenCode, Gemini CLI, and 20+ more. Recommended default:
npx skills add Arize-ai/phoenix --skill phoenix-cli --skill phoenix-tracing