Skip to content
← All MCP servers

Is the Langfuse MCP server safe? What it can reach

What the Langfuse MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Official serverChecked

Langfuse hosts an official MCP server inside every Langfuse project at /api/public/mcp, and self-hosted installs serve it too. It signs in with a project API key over Basic auth. Read and write tools are both on by default, so allow-list only the read tools in your client unless you want the agent to edit prompts and datasets.

Who maintains it

ImplementationKindStatus
Langfuse MCP server (Langfuse, built into the platform)Officialactive
langfuse-mcp (avivsinai, community)Communityactive

It runs as a hosted remote server. The documented endpoint is https://cloud.langfuse.com/api/public/mcp.

How it signs in

HTTP Basic auth with a project API key pair, sent as a base64 token of public:secret in the Authorization header. Each key is scoped to one project, so the server acts with that project’s full API rights.

What its tools can do

KindTools
ReadgetPrompt, getPromptUnresolved, listPrompts, listSkills, getSkill, loadSkill, loadSkillResource, listObservations, getObservation, getObservationFieldSchema, getObservationFilterSchema, getObservationFilterValues, listAnnotationQueues, getAnnotationQueue, listAnnotationQueueItems, getAnnotationQueueItem, listComments, getComment, listDatasets, getDataset, listDatasetItems, getDatasetItem, listDatasetRunItems, listDatasetRuns, getDatasetRun, getHealth, listScores, getScore, listScoreConfigs, getScoreConfig, queryMetrics, getMetricsSchema, listModels, getModel, listLlmConnections, getMedia, listManagedEvaluatorTemplates, listEvaluators, getEvaluator, listEvaluationRules, getEvaluationRule, getDefaultEvaluationModel, listDashboardWidgets, getDashboardWidget, listDashboards, getDashboard, listExperiments, listExperimentItems, getExternalMediaStorage, testExternalMediaStorage, listAlerts, getAlert, listTopicRules, listTopicFacets, listTopics, listTopicSummaries, listTopicAssignments, getV4MigrationData, renderWidget, searchLangfuseDocs, getLangfuseDocsPage, getLangfuseOverview
WritecreateTextPrompt, createChatPrompt, updatePromptLabels, createSkillVersion, updateSkillLabels, updateSkillTags, createAnnotationQueue, createAnnotationQueueItem, batchCreateAnnotationQueueItems, updateAnnotationQueueItem, createAnnotationQueueAssignment, createComment, upsertDataset, upsertDatasetItem, batchUpsertDatasetItems, createDatasetRunItem, createScore, batchCreateScores, createScoreConfig, updateScoreConfig, createModel, testEvaluator, createEvaluator, updateEvaluator, createEvaluationRule, updateEvaluationRule, attachEvaluatorToEvaluationRule, detachEvaluatorFromEvaluationRule, setDefaultEvaluationModel, runBatchEvaluation, createDashboardWidget, updateDashboardWidget, createDashboard, updateDashboard, addDashboardPlacement, updateDashboardPlacement, submitFeedback, configureExternalMediaStorage
Can’t be undonedeleteAnnotationQueueItem, deleteAnnotationQueueAssignment, deleteDatasetItem, deleteDatasetRun, deleteScoreConfig, deleteModel, deleteEvaluator, deleteEvaluationRule, deleteDefaultEvaluationModel, deleteDashboardWidget, deleteDashboard, deleteDashboardPlacement, deleteExternalMediaStorage

Names come from Langfuse’s generated MCP reference, which states 110 tools; this list holds 113 names, so the counts differ slightly and the reference is the source of truth. Read and write tools are enabled by default and the docs give no read-only switch on the server itself. Classification is from tool names and descriptions. testEvaluator runs an evaluator, emits a trace and may incur model cost.

Built-in limits

OptionWhat it does
Client tool allow-listThe docs say to allow-list only the read tool equivalents in your MCP client if you do not want write access. The server has no documented read-only flag.
Project-scoped API keyA key reaches only the project it was created in, so create a key per project.
LANGFUSE_MCP_ALLOWED_HOSTSSelf-hosted only. A comma-separated list of extra hostnames or origins the endpoint accepts, used behind a reverse proxy.

The risks

  • Prompts you fetch with getPrompt flow straight into agent context, and updatePromptLabels can move the production label, so an injected instruction could change which prompt version your live app serves.
  • Observation and score tools return traces with user inputs and model outputs, which can hold personal data and attacker-written text, and that data goes to your LLM provider.
  • The delete tools remove dataset items, dataset runs, models, evaluators, dashboards and annotation queue entries, and the docs describe no undo.
  • The base64 token in your client config is the secret key in a reversible encoding, so anyone who reads the config can use it.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --transport http langfuse https://cloud.langfuse.com/api/public/mcp

Claude Code names MCP tools mcp__langfuse__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "deny": [
      "mcp__langfuse__deleteAnnotationQueueItem",
      "mcp__langfuse__deleteAnnotationQueueAssignment",
      "mcp__langfuse__deleteDatasetItem",
      "mcp__langfuse__deleteDatasetRun",
      "mcp__langfuse__deleteScoreConfig",
      "mcp__langfuse__deleteModel",
      "mcp__langfuse__deleteEvaluator",
      "mcp__langfuse__deleteEvaluationRule",
      "mcp__langfuse__deleteDefaultEvaluationModel",
      "mcp__langfuse__deleteDashboardWidget",
      "mcp__langfuse__deleteDashboard",
      "mcp__langfuse__deleteDashboardPlacement",
      "mcp__langfuse__deleteExternalMediaStorage"
    ],
    "ask": [
      "mcp__langfuse__createTextPrompt",
      "mcp__langfuse__createChatPrompt",
      "mcp__langfuse__updatePromptLabels",
      "mcp__langfuse__createSkillVersion",
      "mcp__langfuse__updateSkillLabels",
      "mcp__langfuse__updateSkillTags",
      "mcp__langfuse__createModel",
      "mcp__langfuse__createEvaluator",
      "mcp__langfuse__updateEvaluator",
      "mcp__langfuse__createEvaluationRule",
      "mcp__langfuse__updateEvaluationRule",
      "mcp__langfuse__setDefaultEvaluationModel",
      "mcp__langfuse__runBatchEvaluation",
      "mcp__langfuse__testEvaluator",
      "mcp__langfuse__configureExternalMediaStorage",
      "mcp__langfuse__submitFeedback"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.langfuse]
url = "https://cloud.langfuse.com/api/public/mcp"
disabled_tools = ["deleteAnnotationQueueItem", "deleteAnnotationQueueAssignment", "deleteDatasetItem", "deleteDatasetRun", "deleteScoreConfig", "deleteModel", "deleteEvaluator", "deleteEvaluationRule", "deleteDefaultEvaluationModel", "deleteDashboardWidget", "deleteDashboard", "deleteDashboardPlacement", "deleteExternalMediaStorage"]

Checklist

  • Allow-list read tools only in your client until you need a write.
  • Create a dedicated project key and revoke it when you finish.
  • Keep the base64 token out of config files you commit.
  • Use the regional URL that matches your Langfuse project, or your HTTPS self-hosted URL.

Checked against the vendor documentation on November 25, 2026. Langfuse MCP server docs · Langfuse MCP reference · langfuse-mcp README (community)

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing