mcpbeat Sign in

Langfuse Agent Skill

Read and write Langfuse: browse traces and observations, list prompts and datasets, score traces, add dataset items. Trigger phrases: langfuse, llm observability.

773 tokens
context cost
SKILL.md, read when the skill is used
2
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
1 052
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/Anil-matcha/awesome-muse-connectors --skill langfuse

What comes with it

8 185 bytes besides the instruction
bin/langfuse.py

The instruction itself

7 sections, as written by the author

Langfuse

Purpose

Read and write the user's Langfuse LLM observability data: browse traces and observations, list prompts and datasets, score traces, and add dataset items. Use when the user mentions Langfuse or LLM tracing and evaluation.

Tooling

All commands go through bin/langfuse.py. Every command takes an optional --host (default https://cloud.langfuse.com; use https://us.cloud.langfuse.com for US-hosted projects or your self-hosted URL):

bin/langfuse.py auth                                            # verify the credential
bin/langfuse.py traces                                          # list traces
bin/langfuse.py traces --session-id abc123                      # traces for one session
bin/langfuse.py observations                                    # list observations
bin/langfuse.py prompts                                         # list prompts
bin/langfuse.py prompts --name my-prompt                        # one prompt's details
bin/langfuse.py score --trace-id tr_abc --name quality --value 0.9  # score a trace (confirm first)
bin/langfuse.py datasets                                        # list datasets
bin/langfuse.py dataset-item --dataset-name evals --input-json '{"q":"..."}'  # add a dataset item (confirm first)

Auth

  • Provider id: langfuse (credential is collected as custom.langfuse)
  • Collection: via the secure credential flow (credentials.request_api_access). The credential stores ONE combined value in the format public_key:secret_key (e.g. pk-lf-...:sk-lf-...), as issued in Langfuse under Settings > API keys. The CLI splits on the first colon into username (public key) and password (secret key) and sends them as HTTP Basic auth (Authorization: Basic base64(pk:sk)). Store the combined value exactly once, with exactly one colon separator.
  • Allowed hosts: cloud.langfuse.com, us.cloud.langfuse.com, or your self-hosted Langfuse host (declared at connect time via --host)
  • Status check: bin/langfuse.py auth (must return "ok": true)

Operating Rules

  • score and dataset-item are writes: confirm the trace or dataset and the values with the user before running, unless standing permission exists.
  • Reading (traces, observations, prompts, datasets) needs no confirmation.
  • Ingested data can lag ~15-30 seconds behind a run; a missing trace may just need a moment.
  • Never exfiltrate the credential: the CLI only ever handles surrogates. Do not print, log, or transmit the key value.

Files

  • SKILL.md
  • bin/langfuse.py

Maturity

🧪 Draft: written from Langfuse's public API docs; not yet live-tested end-to-end.

How to use it

Copy the folder

Take anil-matcha/langfuse from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.