
Langfuse
com.pulsemcp由 pulsemcp.com 發布v0.1.3更新於 Nov 3, 2026
MCP server for Langfuse LLM observability — trace and observation analysis.
概覽
用於 Langfuse LLM 可觀測性的唯讀 MCP 伺服器,讓助理瀏覽、篩選並深入檢視 trace 與 observation 資料、成本與延遲。
- 可以做什麼
- 依名稱、使用者、工作階段、標籤、時間戳與環境列出並篩選 trace,支援分頁與精簡摘要
- 依 ID 取得完整 trace,包含巢狀 observation、評分、輸入輸出與中繼資料
- 依 trace ID、類型(GENERATION、SPAN、EVENT)、模型或層級列出 observation
- 取得單一 observation 的輸入、輸出、模型參數、用量與成本明細
- 讀取伺服器設定與狀態資源,方便除錯
- 處理過大內容:超過 1000 字元的字串會被截斷,完整內容存成暫存檔並回傳路徑,方便用 grep 搜尋
- 適用情境
- 適合已在用 Langfuse、想讓助理在對話中除錯 LLM 流程、檢視提示詞與補全內容,或分析 token 用量、成本與延遲的情況。它為唯讀,適合調查分析而非修改 Langfuse 內的資料。
- 執行需求
- 透過 npx(Node.js)以 stdio 在本機執行,需在桌面用戶端中設定。需要 Langfuse 公鑰(LANGFUSE_PUBLIC_KEY)與私鑰(LANGFUSE_SECRET_KEY);LANGFUSE_BASE_URL 為選用,預設指向 Langfuse 雲端位址。需要能連線至 Langfuse API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Langfuse,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Langfuse MCP Server
MCP server for readonly analysis of Langfuse LLM traces and observations. Designed to help agents deeply inspect trace data, debug LLM pipelines, and analyze costs and latency.
Highlights
- Browse and filter traces by name, user, session, tags, timestamps, and environment
- Drill into full trace details including all nested observations and scores
- List and filter observations by type (GENERATION, SPAN, EVENT), model, level, and more
- Automatic truncation of large payloads (>1000 chars) to /tmp files with grep-friendly references
- Read-only — no write operations, safe to use without risk of data modification
Capabilities
Tools
| Tool | Description |
|---|---|
get_traces | List traces with filtering and pagination. Returns minimal summary (no I/O fields). |
get_trace_detail | Get full trace by ID including observations, scores, input/output, and metadata. |
get_observations | List observations with filtering by traceId, type, level, etc. Returns minimal summary. |
get_observation | Get full observation by ID including input, output, model parameters, usage, and cost details. |
Resources
| Resource | Description |
|---|---|
langfuse://config | Server configuration and status (for debugging) |
Large Payload Handling
Trace and observation data often contains very large input/output fields (full prompts, completions, etc.). This server automatically:
- Truncates any string field longer than 1000 characters
- Saves the full content to a
/tmp/langfuse_*.txtfile - Includes the file path in the truncated output
Agents can then use grep to search within these files for specific content without loading the entire payload into context.
Configuration
Environment Variables
| Variable | Required | Description | Default |
|---|---|---|---|
LANGFUSE_SECRET_KEY | Yes | Langfuse secret key (sk-lf-...) | - |
LANGFUSE_PUBLIC_KEY | Yes | Langfuse public key (pk-lf-...) | - |
LANGFUSE_BASE_URL | No | Langfuse API base URL | https://cloud.langfuse.com |
Claude Desktop Configuration
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"langfuse": {
"command": "npx",
"args": ["-y", "langfuse-observability-mcp-server"],
"env": {
"LANGFUSE_SECRET_KEY": "sk-lf-your-secret-key",
"LANGFUSE_PUBLIC_KEY": "pk-lf-your-public-key",
"LANGFUSE_BASE_URL": "https://us.cloud.langfuse.com"
}
}
}
}
Development
# Install dependencies
npm run install-all
# Build
npm run build
# Development mode
npm run dev
# Run functional tests
npm test
# Run integration tests
npm run test:integration
# Run manual tests (requires .env with real credentials)
npm run test:manual
License
MIT
來源:experimental/langfuse/README.md,提交 0ed34de
工具
0版本歷史
1- v0.1.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分