Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LANGFUSE_BASEURL | No | Your Langfuse instance URL | https://us.cloud.langfuse.com |
| LANGFUSE_PUBLIC_KEY | Yes | Your Langfuse public key | |
| LANGFUSE_SECRET_KEY | Yes | Your Langfuse secret key |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_projects | List configured Langfuse projects available to this MCP server. |
| project_overview | Get a summary of total cost, tokens, and traces for a project over a time window. |
| usage_by_model | Break down usage and cost by AI model over a time period. |
| usage_by_service | Analyze usage and cost by service/feature tag over a time period. |
| top_expensive_traces | Find the most expensive traces by cost over a time period. |
| get_trace_detail | Get detailed information about a specific trace including all observations. |
| get_projects | List available Langfuse projects (alias for list_projects). |
| get_metrics | Query aggregated metrics (costs, tokens, counts) with flexible filtering and dimensions. |
| get_traces | Fetch traces with flexible filtering options. |
| get_observations | Get LLM generations/spans with details and filtering. |
| get_cost_analysis | Specialized cost breakdowns by model, user, and daily trends. |
| get_daily_metrics | Daily usage trends and patterns. |
| get_observation_detail | Get detailed information about a specific observation by ID. |
| get_health_status | Get system health status and availability information. |
| list_models | List all available AI models in the Langfuse project. |
| get_model_detail | Get detailed information about a specific AI model. |
| list_prompts | List all prompt templates in the Langfuse project. |
| get_prompt_detail | Get detailed information about a specific prompt template. |
| list_datasets | List all datasets in the project with pagination support. |
| get_dataset | Get detailed information about a specific dataset by name. |
| list_dataset_items | List items in datasets with filtering and pagination. |
| get_dataset_item | Get detailed information about a specific dataset item. |
| list_comments | List comments with filtering options for objects and users. |
| get_comment | Get detailed information about a specific comment. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |