Langfuse MCP by usefulapi

v1.2.1
io.usefulapi/langfuse Checked 1 day ago Published 1 hour ago

Read traces, metrics, scores, prompts and datasets; add scores to traces in Langfuse.

Use your Langfuse account from Claude, Cursor, or any MCP client. It reads traces and observations, metrics, scores, prompts, datasets and comments, and it can add one score to a trace, observation or session. Hosted, no local install: connect with your own credentials. Add only the URL. Do not add an Authorization header or an API key to the client config: the server signs you in with OAuth, and the login page asks for your Langfuse credentials. Step-by-step setup, where to find your credentials, and FAQ: https://usefulapi.io/langfuse/

Summary extracted from the README.

Langfuse MCP by usefulapi

Use your Langfuse account from Claude, Cursor, or any MCP client. It reads traces and observations, metrics, scores, prompts, datasets and comments, and it can add one score to a trace, observation or session. Hosted, no local install: connect with your own credentials.

Live endpoint: https://langfuse.usefulapi.io/mcp · Homepage: https://usefulapi.io

Connect

  • Claude (claude.ai, Desktop): open Customize → Connectors, click + Add → Add custom connector, and paste https://langfuse.usefulapi.io/mcp.
  • Claude Code: claude mcp add --transport http langfuse https://langfuse.usefulapi.io/mcp, then run /mcp to log in.
  • VS Code: Add to VS Code.
  • Cursor and other clients: add the URL as a remote MCP server:
{
  "mcpServers": {
    "langfuse": {
      "url": "https://langfuse.usefulapi.io/mcp"
    }
  }
}

Add only the URL. Do not add an Authorization header or an API key to the client config: the server signs you in with OAuth, and the login page asks for your Langfuse credentials.

Step-by-step setup, where to find your credentials, and FAQ: https://usefulapi.io/langfuse/

On first connect you provide a project's Langfuse public key and Langfuse secret key (Langfuse → project Settings → API keys), and your region (EU, US or Japan, where the project was created). The server validates it and stores it per user. No keys go in config files.

Tools

Tool Type What it does
langfuse_get_project read Get the connected project
langfuse_list_observations read List observations (and traces)
langfuse_get_metrics read Run a metrics query
langfuse_list_scores read List scores
langfuse_list_score_configs read List score configs
langfuse_list_prompts read List prompts
langfuse_get_prompt read Get a prompt
langfuse_list_datasets read List datasets
langfuse_get_dataset read Get a dataset
langfuse_list_dataset_items read List dataset items
langfuse_list_models read List model definitions
langfuse_list_comments read List comments
langfuse_list_annotation_queues read List annotation queues
langfuse_create_score write Create a score
langfuse_usage_status meta Usage status (free-tier meter)
langfuse_request_feature meta Request a missing feature
langfuse_upgrade meta Upgrade to Pro or Pro+
langfuse_cancel_subscription meta Cancel the Pro subscription

read tools are read-only; write tools mutate data (clients should confirm them); meta tools report usage, manage your subscription or send a feature request.

Pricing

Plan Price Limit
Free $0 50 tool calls / month
Pro (per user) $9/mo or $90/yr (2 months free) 10,000 tool calls / month
Pro+ (per user) $39/mo or $390/yr (2 months free) 100,000 tool calls / month

Each paid plan covers this server only. Ask your AI to run langfuse_upgrade and choose Pro or Pro+, billed monthly or yearly (it returns a Stripe Checkout link). If you already have Pro, ask to change it to Pro+. The change requires your confirmation, keeps your billing interval and charges the price difference for the rest of the period immediately. Cancel any time with langfuse_cancel_subscription: your paid plan continues to the end of the paid period, with no refund for the current period, and asking to resume the same plan with langfuse_upgrade before then undoes the cancel. Or write to support@usefulapi.io.

License

MIT — see LICENSE. Documentation only; the server is hosted.