Skip to content

Langfuse MCP Server

Open-source collaborative prompt editing, versioning, and management. Track and optimize LLM prompts.

Capabilities
Prompt Management Versioning Collaboration Analytics
Maintained by
Langfuse
Hosting
Hosted by the vendor
Authentication
API key
Last checked

Native MCP server built into Langfuse (EU cloud shown; US: us.cloud.langfuse.com, self-hosted: your domain); replaces the older prompt-only langfuse/mcp-server-langfuse.

How to connect the Langfuse MCP server

Pick your AI client and paste the snippet. New to this? Our guide to how MCP clients and servers fit together explains what each piece does.

Claude Code

Terminal
claude mcp add --transport http langfuse https://cloud.langfuse.com/api/public/mcp \
  --header 'Authorization: Basic BASE64_PUBLIC_KEY_COLON_SECRET_KEY'
Full Claude Code setup guide →

Claude Desktop and claude.ai

Settings → Connectors
Custom connectors in Claude accept OAuth or no-auth servers only.
This server expects an API key in a header, so use Claude Code,
Cursor or VS Code instead.
Full Claude Desktop setup guide →

Cursor

~/.cursor/mcp.json (or .cursor/mcp.json in a project)
{
  "mcpServers": {
    "langfuse": {
      "url": "https://cloud.langfuse.com/api/public/mcp",
      "headers": {
        "Authorization": "Basic BASE64_PUBLIC_KEY_COLON_SECRET_KEY"
      }
    }
  }
}
Full Cursor setup guide →

VS Code

.vscode/mcp.json
{
  "servers": {
    "langfuse": {
      "type": "http",
      "url": "https://cloud.langfuse.com/api/public/mcp",
      "headers": {
        "Authorization": "Basic BASE64_PUBLIC_KEY_COLON_SECRET_KEY"
      }
    }
  }
}
Full VS Code setup guide →

Frequently asked questions

What is the Langfuse MCP server?

It is a Model Context Protocol (MCP) server — a small piece of software that gives AI assistants like Claude a secure, governed connection to Langfuse. Open-source collaborative prompt editing, versioning, and management. Track and optimize LLM prompts.

Is there an official Langfuse MCP server?

Yes. The Langfuse MCP server is an official integration, maintained by the vendor or the Model Context Protocol project, which makes it the safest default for business use. It is maintained by Langfuse.

Is the Langfuse MCP server hosted, or do I run it myself?

It is hosted. Langfuse runs the endpoint at https://cloud.langfuse.com/api/public/mcp, so there is nothing to install: you add the URL to your AI client and supply an API key.

Do I need an API key for the Langfuse MCP server?

Yes. The hosted server expects an API key from your Langfuse account, sent in the Authorization header. Store it in your client's secret settings rather than pasting it into shared config files.

What can an AI assistant actually do with Langfuse?

Through this server an assistant can work with prompt management, versioning, collaboration, analytics — reading from and acting on Langfuse directly instead of you copy-pasting between windows. What you allow it to do is controlled by the permissions you grant.

How do I set this up for my business?

The setup section above has copy-paste config for Claude Code, Claude Desktop, Cursor and VS Code. If you want it rolled out across a team with permissions, governance and support handled, that is what Crox's Build engagement covers.

New to MCP? Start with our plain-English guide to the Model Context Protocol or see how to connect AI to your business tools without writing code .

Done-for-you integration

Want this connected to your business — with governance handled?

Crox maps your processes, connects AI to the tools you already use, and keeps it working as models change. Start with a readiness assessment or talk to us about a build.