@arizeai/phoenix-mcp

中文文档
4.3.20发布于 2026/11/03Apache-2.0ES Module构建来源已验证近 30 天下载 5164

A MCP server for Arize Phoenix

原始使用文档
文档目录10 节
  1. Installation
  2. Development
  3. Install
  4. Building
  5. Development Mode
  6. Debugging
  7. Environment Variables
  8. Tool Coverage
  9. Community
  10. License

Arize Phoenix logo
Arize Phoenix MCP Server

NPM Version License Add Arize Phoenix MCP server to Cursor

Phoenix MCP Server is an implementation of the Model Context Protocol for the Arize Phoenix platform. It provides a unified interface to Phoenix's capabilities.

You can use Phoenix MCP Server for:

  • Projects Management: List and explore projects that organize your observability data
  • Traces, Spans & Annotations: Retrieve traces, spans, and annotation configs for analysis and debugging
  • Sessions: Explore conversation flows and session-level annotations
  • 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

Don't see a use-case covered? @arizeai/phoenix-mcp is open-source! Issues and PRs welcome.

Installation

This MCP server can be used with npx and can be directly integrated with clients like Claude Desktop, Cursor, and more.

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

Development

Install

This package is managed via a pnpm workspace.

// From the /js/ directory
pnpm install
pnpm build

This only needs to be repeated if dependencies change or there is a change to the phoenix-client.

Building

To build the project:

pnpm build

Development Mode

To run in development mode:

pnpm dev

Debugging

You can build and run the MCP inspector using the following:

pnpm inspect

Environment Variables

When developing, the server requires the following environment variables:

  • PHOENIX_API_KEY: Your Phoenix API key
  • PHOENIX_ENDPOINT: The base URL for Phoenix
  • PHOENIX_PROJECT: Optional default project for project-scoped tools (alias: PHOENIX_PROJECT_NAME)
  • PHOENIX_CLIENT_HEADERS: Optional JSON-encoded request headers

Make sure to set these in a .env file. See .env.example.

At runtime the server also discovers the nearest .env.phoenix file at or above the working directory. Process environment variables and command-line options take precedence. If a higher-priority API key is paired with an endpoint from the file, the server warns once and continues. Set PHOENIX_DISCOVER_CONFIG=false to disable discovery.

Tool Coverage

The MCP server covers the main operational Phoenix workflows:

Prompts — list-prompts, get-prompt, get-latest-prompt, get-prompt-by-identifier, get-prompt-version, list-prompt-versions, get-prompt-version-by-tag, list-prompt-version-tags, add-prompt-version-tag, upsert-prompt

Projects — list-projects, get-project

Traces — list-traces, get-trace

Spans — get-spans, get-span-annotations

Sessions — list-sessions, get-session

Annotation Configs — list-annotation-configs

Datasets — list-datasets, get-dataset, get-dataset-examples, get-dataset-experiments, add-dataset-examples

Experiments — list-experiments-for-dataset, get-experiment-by-id

For Phoenix documentation search, use the separate Phoenix Docs MCP server instead of this package.

Community

Join our community to connect with thousands of AI builders:

License

Apache 2.0

版本与发布记录

@arizeai/phoenix-mcp 共发布 110 个版本,首次发布于 2025/04/05;过去 12 个月发布了 73 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
4.3.20latest2026/11/035 天前
4.3.192026/10/308 天前
4.3.182026/10/2810 天前
4.3.172026/10/2217 天前
4.3.162026/10/1028 天前
4.3.152026/10/011 个月前

关于 @arizeai/phoenix-mcp 的常见问题

@arizeai/phoenix-mcp 是什么?

A MCP server for Arize Phoenix

如何安装 @arizeai/phoenix-mcp?

在项目目录运行 npm install @arizeai/phoenix-mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 @arizeai/phoenix-mcp,可以用 npx @arizeai/phoenix-mcp 直接运行。

@arizeai/phoenix-mcp 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/arizeai__phoenix-mcp 是否存在。

@arizeai/phoenix-mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@arizeai/phoenix-mcp 可以商用吗?

@arizeai/phoenix-mcp 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@arizeai/phoenix-mcp 的下载量有多少?

根据 npm 官方下载统计,@arizeai/phoenix-mcp 在 2026/10/07 – 2026/11/05 这 30 天内被下载 5,164 次,日均约 172 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@arizeai/phoenix-mcp 还在维护吗?

最新版本 4.3.20 发布于 2026/11/03(5 天前);至今共发布 110 个版本,其中过去 12 个月发布了 73 个;首次发布于 2025/04/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。