Langfuse launches AI Gateway Learn more
← Back to changelog
November 26, 2026

Langfuse skills via MCP

Picture Tobias KleselTobias Klesel

The Langfuse MCP server now bundles the official Langfuse agent skills, so compatible clients get both live project tools and best-practice playbooks in one connection.

MCP is quickly becoming the default way to distribute agent skills, with major agent harnesses and frameworks already supporting or adopting the MCP Skills extension — for example Claude and others on the supported clients list. Connect your client to the Langfuse MCP server once, and it automatically discovers the official playbooks from langfuse/skills alongside your project tools, with no separate skill installation required.

Out of the box, always in sync

Serving skills through the MCP server removes the usual setup and maintenance friction for individuals and teams alike:

  • One setup for tools and guidance. Connecting the MCP server gives your agent both live access to your Langfuse project and the instructions to use it well — no npx skills add, cloned repositories, or symlinks to manage.
  • Version-matched automatically. Langfuse Cloud always serves the latest skills from langfuse/skills, while self-hosted deployments serve the skills matching their installed Langfuse version so playbooks stay aligned with your server.
  • Lean context by default. Skills load progressively via the MCP Skills extension (io.modelcontextprotocol/skills), keeping your agent's context window clean until you work on a Langfuse task.

Set up

Connect your MCP client to your Langfuse host's /api/public/mcp endpoint using a project-scoped API key. For regional Cloud endpoints and other MCP clients, see MCP server setup.

Get authentication header

  1. Navigate to your project settings and create or copy a project-scoped API key:
    • Public Key: pk-lf-...
    • Secret Key: sk-lf-...
  2. Encode the credentials to base64 format:
    your-base64-token
    echo -n "pk-lf-your-public-key:sk-lf-your-secret-key" | base64

Client setup

  1. Register the Langfuse MCP server with a single command, replacing {your-langfuse-host} with your Langfuse host and {your-base64-token} with your encoded credentials:

    terminal
    claude mcp add --transport http langfuse https://{your-langfuse-host}/api/public/mcp \
        --header "Authorization: Basic {your-base64-token}"
  2. Verify the connection by asking Claude Code to list all prompts in the project. Claude Code should use the listPrompts tool to return the list of prompts.

  1. Add the Langfuse MCP server to ~/.codex/config.toml, replacing {your-langfuse-host} with your Langfuse host and {your-base64-token} with your encoded credentials:

    ~/.codex/config.toml
    [mcp_servers.langfuse]
    url = "https://{your-langfuse-host}/api/public/mcp"
    http_headers = { "Authorization" = "Basic {your-base64-token}" }
  2. Restart Codex and run codex mcp list to confirm the server is registered.

  3. Verify the connection by asking Codex to list all prompts in the project. Codex should use the listPrompts tool to return the list of prompts.

For other MCP clients (such as Cursor, Pi Agent, or any client supporting streamableHttp), see the MCP server setup guide.

Using an MCP client that doesn't support MCP skills yet? You can still install the Langfuse Agent Skill from GitHub or via the Cursor plugin, and use it alongside the MCP server or the Langfuse CLI.

Learn more


Was this page helpful?