{"id":30868303,"url":"https://github.com/avivsinai/langfuse-mcp","last_synced_at":"2026-01-19T19:01:19.331Z","repository":{"id":291016589,"uuid":"952361536","full_name":"avivsinai/langfuse-mcp","owner":"avivsinai","description":"A Model Context Protocol (MCP) server for Langfuse, enabling AI agents to query Langfuse trace data for enhanced debugging and observability","archived":false,"fork":false,"pushed_at":"2026-01-13T11:49:59.000Z","size":195,"stargazers_count":34,"open_issues_count":0,"forks_count":12,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-16T18:13:02.105Z","etag":null,"topics":["genai","langfuse","mcp","mcp-server"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avivsinai.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-21T06:44:44.000Z","updated_at":"2026-01-13T11:49:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"cb61b021-59eb-403e-a185-e36bfaddef7b","html_url":"https://github.com/avivsinai/langfuse-mcp","commit_stats":null,"previous_names":["avivsinai/langfuse-mcp"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/avivsinai/langfuse-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avivsinai%2Flangfuse-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avivsinai%2Flangfuse-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avivsinai%2Flangfuse-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avivsinai%2Flangfuse-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avivsinai","download_url":"https://codeload.github.com/avivsinai/langfuse-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avivsinai%2Flangfuse-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28580667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T18:52:07.356Z","status":"ssl_error","status_checked_at":"2026-01-19T18:49:52.190Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["genai","langfuse","mcp","mcp-server"],"created_at":"2025-09-07T22:03:46.482Z","updated_at":"2026-01-19T19:01:19.325Z","avatar_url":"https://github.com/avivsinai.png","language":"Python","funding_links":[],"categories":["📚 Projects (1974 total)","🤖 AI/ML","📊 Monitoring (16 servers)"],"sub_categories":["MCP Servers"],"readme":"# Langfuse MCP Server\n\n[![PyPI](https://badge.fury.io/py/langfuse-mcp.svg)](https://badge.fury.io/py/langfuse-mcp)\n[![Python 3.10–3.13](https://img.shields.io/badge/python-3.10–3.13-blue.svg)](https://www.python.org/downloads/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n[Model Context Protocol](https://modelcontextprotocol.io) server for [Langfuse](https://langfuse.com) observability. Query traces, debug errors, analyze sessions, manage prompts.\n\n## Why langfuse-mcp?\n\nComparison with [official Langfuse MCP](https://github.com/langfuse/mcp-server-langfuse) (as of Jan 2026):\n\n| | langfuse-mcp | Official |\n|-|--------------|----------|\n| **Traces \u0026 Observations** | Yes | No |\n| **Sessions \u0026 Users** | Yes | No |\n| **Exception Tracking** | Yes | No |\n| **Prompt Management** | Yes | Yes |\n| **Selective Tool Loading** | Yes | No |\n\nThis project provides a **full observability toolkit** — traces, observations, sessions, exceptions, and prompts — while the official MCP focuses on prompt management.\n\n## Quick Start\n\nRequires [uv](https://docs.astral.sh/uv/getting-started/installation/) (for `uvx`).\n\nGet credentials from [Langfuse Cloud](https://cloud.langfuse.com) → Settings → API Keys. If self-hosted, use your instance URL for `LANGFUSE_HOST`.\n\n```bash\n# Claude Code (project-scoped, shared via .mcp.json)\nclaude mcp add \\\n  --scope project \\\n  --env LANGFUSE_PUBLIC_KEY=pk-... \\\n  --env LANGFUSE_SECRET_KEY=sk-... \\\n  --env LANGFUSE_HOST=https://cloud.langfuse.com \\\n  langfuse -- uvx --python 3.11 langfuse-mcp\n\n# Codex CLI (user-scoped, stored in ~/.codex/config.toml)\ncodex mcp add langfuse \\\n  --env LANGFUSE_PUBLIC_KEY=pk-... \\\n  --env LANGFUSE_SECRET_KEY=sk-... \\\n  --env LANGFUSE_HOST=https://cloud.langfuse.com \\\n  -- uvx --python 3.11 langfuse-mcp\n```\n\nRestart your CLI, then verify with `/mcp` (Claude Code) or `codex mcp list` (Codex).\n\n## Tools (18 total)\n\n| Category | Tools |\n|----------|-------|\n| Traces | `fetch_traces`, `fetch_trace` |\n| Observations | `fetch_observations`, `fetch_observation` |\n| Sessions | `fetch_sessions`, `get_session_details`, `get_user_sessions` |\n| Exceptions | `find_exceptions`, `find_exceptions_in_file`, `get_exception_details`, `get_error_count` |\n| Prompts | `list_prompts`, `get_prompt`, `get_prompt_unresolved`, `create_text_prompt`, `create_chat_prompt`, `update_prompt_labels` |\n| Schema | `get_data_schema` |\n\n## Skill\n\nThis project includes a skill with debugging playbooks.\n\n**Claude Code:**\n```\n/plugin marketplace add avivsinai/skills-marketplace\n/plugin install langfuse@avivsinai-marketplace\n```\n\n**Codex CLI:**\n```\n$skill-installer install https://github.com/avivsinai/langfuse-mcp/tree/main/skills/langfuse\n```\nThen restart Codex.\n\n**Manual install** (both):\n```bash\ncp -r skills/langfuse ~/.claude/skills/   # Claude Code\ncp -r skills/langfuse ~/.codex/skills/    # Codex CLI\n```\n\nTry asking: \"help me debug langfuse traces\"\n\nSee [`skills/langfuse/SKILL.md`](skills/langfuse/SKILL.md) for full documentation.\n\n## Selective Tool Loading\n\nLoad only the tool groups you need to reduce token overhead:\n\n```bash\nlangfuse-mcp --tools traces,prompts\n```\n\nAvailable groups: `traces`, `observations`, `sessions`, `exceptions`, `prompts`, `schema`\n\n## Other Clients\n\n### Cursor\n\nCreate `.cursor/mcp.json` in your project (or `~/.cursor/mcp.json` for global):\n\n```json\n{\n  \"mcpServers\": {\n    \"langfuse\": {\n      \"command\": \"uvx\",\n      \"args\": [\"--python\", \"3.11\", \"langfuse-mcp\"],\n      \"env\": {\n        \"LANGFUSE_PUBLIC_KEY\": \"pk-...\",\n        \"LANGFUSE_SECRET_KEY\": \"sk-...\",\n        \"LANGFUSE_HOST\": \"https://cloud.langfuse.com\"\n      }\n    }\n  }\n}\n```\n\n### Docker\n\n```bash\ndocker run --rm -i \\\n  -e LANGFUSE_PUBLIC_KEY=pk-... \\\n  -e LANGFUSE_SECRET_KEY=sk-... \\\n  -e LANGFUSE_HOST=https://cloud.langfuse.com \\\n  ghcr.io/avivsinai/langfuse-mcp:latest\n```\n\n## Development\n\n```bash\nuv venv --python 3.11 .venv \u0026\u0026 source .venv/bin/activate\nuv pip install -e \".[dev]\"\npytest\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favivsinai%2Flangfuse-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favivsinai%2Flangfuse-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favivsinai%2Flangfuse-mcp/lists"}