Feedback

Basic information

Version
0.14.0
Category
License
MIT
Transports
stdio
Author
hugoles
Submitted by
Community
Quality
15

About Langfuse Mcp Server

TypeScript MCP server for the Langfuse Public API with tools to query traces, observations, sessions, scores, prompts, datasets, and metrics from any MCP client.

Langfuse Mcp is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by hugoles. It exposes 27 tools, including listTraces, getTrace, listObservations, getObservation and more. Supported transport: stdio. License: MIT. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "langfuse": {
            "command": "npx",
            "args": [
                "-y",
                "langfuse-mcp"
            ],
            "env": {
                "LANGFUSE_PUBLIC_KEY": "pk-lf-...",
                "LANGFUSE_SECRET_KEY": "sk-lf-...",
                "LANGFUSE_BASE_URL": "https://cloud.langfuse.com"
            }
        }
    }
}

Langfuse Mcp — by hugoles config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "langfuse": {
            "command": "npx",
            "args": [
                "-y",
                "langfuse-mcp"
            ],
            "env": {
                "LANGFUSE_PUBLIC_KEY": "pk-lf-...",
                "LANGFUSE_SECRET_KEY": "sk-lf-...",
                "LANGFUSE_BASE_URL": "https://cloud.langfuse.com"
            }
        }
    }
}

Langfuse Mcp — by hugoles tools

  • listTraces — List Langfuse traces with filters. Returns summary metadata (use getTrace for the full observation tree).
    page:integer, limit:integer, fromTimestamp:string, toTimestamp:string, userId:string, sessionId:string, name:string, environment:string, tags:array, orderBy:string
  • getTrace — Fetch a single trace by id including all nested observations.
    traceId:string*
  • listObservations — List observations (spans, generations, events) with filters.
    page:integer, limit:integer, traceId:string, name:string, userId:string, type:string, level:string, parentObservationId:string, fromStartTime:string, toStartTime:string, environment:string
  • getObservation — Fetch a single observation by id.
    observationId:string*
  • listSessions — List sessions within a time range.
    page:integer, limit:integer, fromTimestamp:string, toTimestamp:string, environment:string
  • getSession — Fetch a session by id, including its traces.
    sessionId:string*
  • listScores — List scores with filters.
    page:integer, limit:integer, userId:string, name:string, traceId:string, fromTimestamp:string, toTimestamp:string
  • getScore — Fetch a single score by id.
    scoreId:string*
  • listScoreConfigs — List score configurations (definitions for score names, ranges, and categories).
    page:integer, limit:integer
  • getScoreConfig — Fetch a single score configuration by id.
    configId:string*
  • listPrompts — List prompt definitions tracked in Langfuse.
    page:integer, limit:integer, name:string, label:string, tag:string
  • getPrompt — Fetch a prompt by name. Optionally pin to a specific version or label (e.g. 'production').
    promptName:string*, version:integer, label:string
  • listDatasets — List datasets configured in Langfuse.
    page:integer, limit:integer
  • getDataset — Fetch metadata for a dataset by its name.
    datasetName:string*
  • listDatasetItems — List items in a dataset (inputs / expected outputs / metadata).
    page:integer, limit:integer, datasetName:string, sourceTraceId:string, sourceObservationId:string
  • getDatasetItem — Fetch a single dataset item by id.
    itemId:string*
  • listDatasetRuns — List runs (evaluation rounds) for a dataset.
    page:integer, limit:integer, datasetName:string*
  • getDatasetRun — Fetch a specific dataset run by name.
    datasetName:string*, runName:string*
  • getMetrics — Run a metrics query (counts, latency, cost, token usage). Pass a JSON query string per the Langfuse metrics API.
    query:string*
  • getDailyMetrics — Fetch daily aggregated usage / cost / count metrics for traces and observations.
    page:integer, limit:integer, traceName:string, userId:string, tags:array, environment:string, fromTimestamp:string, toTimestamp:string
  • listModels — List models known to Langfuse (for cost / token attribution).
    page:integer, limit:integer
  • getModel — Fetch a single model definition by id.
    modelId:string*
  • listProjects — List projects accessible to the current API key (typically a single project).
    (no parameters)
  • listComments — List comments attached to traces, observations, sessions, or prompts.
    page:integer, limit:integer, objectType:string, objectId:string, authorUserId:string
  • getComment — Fetch a single comment by id.
    commentId:string*
  • getMedia — Fetch metadata for a media attachment (image, audio, file) by id.
    mediaId:string*
  • getHealth — Pings the Langfuse public health endpoint. Useful to validate credentials and connectivity.
    (no parameters)

Overview

What is Langfuse Mcp?

A TypeScript MCP server that integrates with the Langfuse Public API, providing tools to query traces, observations, sessions, scores, prompts, datasets, and metrics from any MCP client.

How to use Langfuse Mcp?

Key features of Langfuse Mcp

  • TypeScript MCP server for the Langfuse Public API
  • Query traces, observations, and sessions
  • Query scores, prompts, and datasets
  • Query metrics
  • Accessible from any MCP client

Use cases of Langfuse Mcp

  • Retrieve Langfuse traces via MCP
  • Fetch observations and sessions
  • Access scores, prompts, and datasets
  • Obtain metrics from Langfuse

Frequently asked questions

1 What does Langfuse Mcp do?

It is a TypeScript MCP server for the Langfuse Public API, enabling queries of traces, observations, sessions, scores, prompts, datasets, and metrics.

2 What data can I query with Langfuse Mcp?

Traces, observations, sessions, scores, prompts, datasets, and metrics.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬