Langfuse Mcp logo

Langfuse Mcp

Community
dujonwalker
langfuse-mcp

Query, inspect, and manage Langfuse AI observability data via the langfuse-mcp server — debug traces, observations, sessions, exceptions, route decisions, prompts, datasets, dataset runs, annotation queues, scores, and metrics. Use whenever interacting with Langfuse via MCP, diagnosing recorded LLM/agent failures or latency, managing Langfuse prompts or datasets, or configuring langfuse-mcp (stdio, streamable-http, tool groups, read-only mode, profiles, output modes). Do not use for ClickHouse/Docker disk troubleshooting or adding Langfuse SDK instrumentation to application source code.

Overview

Publisherdujonwalker
Repositoryproject-nova
Skill namelangfuse-mcp
Stars
271
Forks
33
Bundled files
4
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by dujonwalker on GitHub. Read the source before you install it.

Installation

Install the Langfuse Mcp AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dujonwalker/project-nova/tree/main/mcp-skills/langfuse-mcp
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dujonwalker/project-nova.git /tmp/project-nova
mkdir -p .claude/skills
cp -r /tmp/project-nova/mcp-skills/langfuse-mcp .claude/skills/langfuse-mcp
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Langfuse Mcp in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Langfuse Mcp on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Langfuse Mcp is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Langfuse MCP

Inspect recorded AI behavior and manage Langfuse resources through the langfuse-mcp server's 48 tools across 11 groups. Always move from the narrowest read-only discovery query to targeted ID lookups, and preserve exact IDs, filters, and lookback windows (age in minutes) in findings.

References

Diagnostic Workflows

Start broad, then fetch full evidence by ID:

  1. Errors & exceptions: find_exceptions(age=1440, group_by="file") → pick a group → find_exceptions_in_file(filepath=..., age=1440) → get_exception_details(trace_id=...). If a group key is "unknown" (missing code.filepath), drill down directly with its representative trace_id — never pass filepath="unknown".
  2. Trace inspection: fetch_traces(age=60, user_id=...) → fetch_trace(trace_id=..., include_observations=true) → fetch_observation(observation_id=...).
  3. Slow LLM calls: fetch_observations(age=60, type="GENERATION") or query_metrics(view="observations", ...) → inspect latency, tokens, and model on high-latency IDs. Always call get_metrics_schema() before building a new query_metrics query.
  4. User sessions: get_user_sessions(user_id=..., age=1440) or fetch_sessions(age=1440) → get_session_details(session_id=..., include_observations=true).
  5. Routing decisions: summarize_route_decisions(age=10080) / find_low_confidence_route_decisions() → get_route_decision(decision_id=...) (reads SPAN observations with schema_version="mcp.route_decision.v1").
  6. Prompts, datasets, queues & scores: Use list_prompts() / get_prompt() / get_prompt_unresolved(), dataset/run tools, list_annotation_queues(), and list_scores_v2() / get_score_v2().

Critical Rules & Gotchas

  • Read-only vs writes: Only invoke the 14 write tools (prompt creation/labeling, dataset/item/run writes/deletes, annotation-queue mutations) when the user explicitly requests that mutation. Prefer --read-only / LANGFUSE_MCP_READ_ONLY=true for pure debugging.
  • Lookback window (age): age is in minutes (1h=60, 24h=1440, 7d=10080) and is capped by LANGFUSE_MAX_AGE_DAYS (default 7 days = 10080). Raise LANGFUSE_MAX_AGE_DAYS on the server when querying older retention.
  • Output modes: Tools supporting output_mode default to compact (large fields truncated at 500 chars / responses capped around 20k). Use output_mode="full_json_file" (writes to --dump-dir, default /tmp/langfuse_mcp_dumps) or full_json_string (returns serialized JSON string) only when complete payloads are needed, as exports may contain sensitive user data.
  • Observations API v2: fetch_traces omits total_cost, scores, and observations by default and omits traces without a root observation; pass include_observations=true for full observations and use query_metrics for aggregates. Pagination uses cursor metadata.next_page without total.
  • Immutable prompts: Prompts are immutable; create a new version with create_text_prompt or create_chat_prompt (usually labeled "staging"), and promote or roll back via update_prompt_labels. Assigning a label removes it from other versions.
  • Preserve historical evidence: Report recorded model names, timestamps, and metadata verbatim; do not normalize or rewrite historical identifiers.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Langfuse Mcp AI skill do?

Query, inspect, and manage Langfuse AI observability data via the langfuse-mcp server — debug traces, observations, sessions, exceptions, route decisions, prompts, datasets, dataset runs, annotation queues, scores, and metrics. Use whenever interacting with Langfuse via MCP, diagnosing recorded LLM/agent failures or latency, managing Langfuse prompts or datasets, or configuring langfuse-mcp (stdio, streamable-http, tool groups, read-only mode, profiles, output modes). Do not use for ClickHouse/Docker disk troubleshooting or adding Langfuse SDK instrumentation to application source code.

Why use Langfuse Mcp on TypingMind?

Because you install it once and use it with any model. Langfuse Mcp is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Langfuse Mcp in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dujonwalker/project-nova/tree/main/mcp-skills/langfuse-mcp. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Langfuse Mcp?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Langfuse Mcp?

As many as you like. As long as a model supports skills, you can use Langfuse Mcp with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Langfuse Mcp AI skill free?

It is published on GitHub by dujonwalker. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇