langfuse
v0.1.3MCP server for Langfuse LLM observability — trace and observation analysis.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_traces
List traces from Langfuse with optional filters and pagination. Returns a summary of each trace: id, name, timestamp, userId, latency, totalCost, tags, and observation/score counts. The input and output fields are omitted from the list view for brevity — use get_trace_detail to see the full trace including I/O. Any field value exceeding 1000 characters is automatically truncated and saved to a /tmp file. The truncated text includes the file path — use grep on that file to search within large values. **Pagination:** Use page and limit to paginate. Response includes meta.totalItems and me…
| Parameter | Type | Description |
|---|---|---|
environment | array | Filter by environment(s). Example: ["production", "staging"]. |
fromTimestamp | string | Only include traces created on or after this ISO 8601 datetime. Example: "2025-01-01T00:00:00Z". |
limit | number | Number of traces per page (1-100). Default: 10. Use smaller values to reduce response size. |
name | string | Filter by trace name (exact match). |
orderBy | string | Sort order as "field.direction". Fields: id, timestamp, name, userId, release, version, public, bookmarked, sessionId. Direction: asc, desc. Example: "timestamp.desc". |
page | number | Page number (starts at 1). Default: 1. |
release | string | Filter by release version string. |
sessionId | string | Filter by session ID. |
tags | array | Filter to traces containing ALL specified tags. Example: ["production", "important"]. |
toTimestamp | string | Only include traces created before this ISO 8601 datetime. Example: "2025-02-01T00:00:00Z". |
userId | string | Filter by user ID associated with traces. |
version | string | Filter by trace version string. |
get_trace_detail
Get full details for a single Langfuse trace by ID. Returns the complete trace including input, output, metadata, and all nested observations and scores. This is the detailed view — use get_traces to browse and find trace IDs first. Any field value exceeding 1000 characters is automatically truncated and saved to a /tmp file. The truncated text includes the file path — use grep on that file to search within large values (e.g. `grep "keyword" /tmp/langfuse_input_abc123.txt`). **Observations** are returned as a flat list with parentObservationId for tree reconstruction. Each observation i…
| Parameter | Type | Description |
|---|---|---|
traceId * | string | The unique Langfuse trace ID to retrieve. |
get_observations
List observations from Langfuse with optional filters and pagination. Returns a summary of each observation: id, traceId, type, name, model, timing, level, and usage/cost metrics. The input and output fields are omitted from the list view for brevity — use get_observation with a specific observation ID to see the full I/O. Typically used with traceId filter to list all observations within a specific trace. Can also be used to search across all traces by type, level, etc. Any field value exceeding 1000 characters is automatically truncated and saved to a /tmp file. The truncated text inclu…
| Parameter | Type | Description |
|---|---|---|
environment | array | Filter by environment(s). Example: ["production"]. |
fromStartTime | string | Only include observations with startTime on or after this ISO 8601 datetime. |
level | string | Filter by observation level: DEBUG, DEFAULT, WARNING, or ERROR. |
limit | number | Number of observations per page (1-100). Default: 10. |
name | string | Filter by observation name (exact match). |
page | number | Page number (starts at 1). Default: 1. |
parentObservationId | string | Filter by parent observation ID to get direct children. |
toStartTime | string | Only include observations with startTime before this ISO 8601 datetime. |
traceId | string | Filter by trace ID. This is the most common filter — use it to get all observations for a specific trace. |
type | string | Filter by observation type: GENERATION, SPAN, or EVENT. |
userId | string | Filter by user ID. |
version | string | Filter by observation version string. |
get_observation
Get full details for a single Langfuse observation by ID. Returns the complete observation including input, output, metadata, model parameters, usage details, cost details, and timing information. Use get_observations or get_trace_detail first to find observation IDs. Any field value exceeding 1000 characters is automatically truncated and saved to a /tmp file. The truncated text includes the file path — use grep on that file to search within large values (e.g. `grep "keyword" /tmp/langfuse_input_abc123.txt`). **Fields included:** id, traceId, type, name, model, modelParameters, input, ou…
| Parameter | Type | Description |
|---|---|---|
observationId * | string | The unique Langfuse observation ID to retrieve. |