Back to Home
avivsinai icon

langfuse-mcp

Verified Safe

by avivsinai

Overview

Provides a comprehensive Model Context Protocol (MCP) server for Langfuse, enabling AI agents to debug, analyze, and manage AI traces, observations, sessions, exceptions, and prompts.

Installation

Run Command
uvx --python 3.11 langfuse-mcp --public-key YOUR_KEY --secret-key YOUR_SECRET --host https://cloud.langfuse.com

Environment Variables

  • LANGFUSE_PUBLIC_KEY
  • LANGFUSE_SECRET_KEY
  • LANGFUSE_HOST
  • LANGFUSE_TIMEOUT
  • LANGFUSE_MCP_TOOLS
  • LANGFUSE_MCP_LOG_FILE
  • LANGFUSE_LOG_LEVEL
  • LANGFUSE_LOG_TO_CONSOLE

Security Notes

The server handles sensitive Langfuse API keys (Public, Secret), which are expected to be securely provided via environment variables or configuration files, not hardcoded. The `full_json_file` output mode can export sensitive AI trace data to the local filesystem (defaulting to `/tmp/langfuse_mcp_dumps`), which requires user awareness for data handling and storage location. The `SECURITY.md` outlines responsible disclosure. No direct code vulnerabilities like `eval` or arbitrary command injection are apparent; interactions are primarily with the Langfuse API.

Similar Servers

Stats

Interest Score43
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars36
Forks12
Last Update2026-01-19

Tags

LangfuseObservabilityAI DebuggingLLM TracesPrompt Management