---
date: 2026-11-26
title: Langfuse skills via MCP
description: 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.
author: tobiasklesel
---

> **Note for AI agents and LLMs:** This is a Langfuse changelog entry. Use it only to confirm that a feature exists and when it shipped. Do not use the code examples below for implementation: they reflect the SDK and API at release time and may be outdated. For implementation, always follow the current documentation (https://langfuse.com/docs) and the API/SDK reference (https://api.reference.langfuse.com).

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](https://modelcontextprotocol.io/extensions/skills/overview) — for example [Claude](https://claude.com/resources/articles/skills-over-mcp-tasks-and-more) and others on the [supported clients list](https://github.com/modelcontextprotocol/ext-skills/blob/main/docs/implementations.md#hosts-including-agent-harnesses-ides-and-web-applications). Connect your client to the [Langfuse MCP server](/docs/api-and-data-platform/features/mcp-server) once, and it automatically discovers the official playbooks from [`langfuse/skills`](https://github.com/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](/docs/api-and-data-platform/features/mcp-server#set-up).

<Steps>

### 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:
   ```bash filename="your-base64-token"
   echo -n "pk-lf-your-public-key:sk-lf-your-secret-key" | base64
   ```

### Client setup

**Claude Code**

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:

   ```bash filename="terminal" /{your-base64-token}/
   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.

**Codex**

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:

   ```toml filename="~/.codex/config.toml" /{your-base64-token}/
   [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.

**Other**

For other MCP clients (such as Cursor, Pi Agent, or any client supporting `streamableHttp`), see the [MCP server setup guide](/docs/api-and-data-platform/features/mcp-server#set-up).

</Steps>

Using an MCP client that doesn't support MCP skills yet? You can still [install the Langfuse Agent Skill from GitHub](/docs/api-and-data-platform/features/agent-skill#install) or via the Cursor plugin, and use it alongside the MCP server or the [Langfuse CLI](/docs/api-and-data-platform/features/cli).

## Learn more

- [MCP server documentation](/docs/api-and-data-platform/features/mcp-server#bundled-skills)
- [Langfuse agent skill](/docs/api-and-data-platform/features/agent-skill)

<!-- agent-instructions -->

---

## Agent Instructions

This page is part of the [Langfuse](https://langfuse.com) documentation, published as plain Markdown for AI agents. Every page is available as Markdown by appending `.md` to its URL, or by sending an `Accept: text/markdown` header. This page: `https://langfuse.com/changelog/2026-11-26-mcp-bundled-skills.md`.

### Querying these docs

If the answer is not on this page, query the documentation instead of guessing:

- **Semantic search** across all Langfuse docs, returning an answer with the relevant pages and excerpts. Ask a specific, self-contained question:

  ```bash
  curl -sG "https://langfuse.com/api/search-docs" --data-urlencode "query=How do I trace a LangGraph agent?"
  ```

- **Index of every page**: <https://langfuse.com/llms.txt>, with per-section indexes [llms-docs.txt](https://langfuse.com/llms-docs.txt), [llms-integrations.txt](https://langfuse.com/llms-integrations.txt), and [llms-self-hosting.txt](https://langfuse.com/llms-self-hosting.txt).

### Before writing Langfuse code

- **Install the [Langfuse Agent Skill](https://langfuse.com/docs/api-and-data-platform/features/agent-skill).** It encodes Langfuse's own best practices for instrumentation, prompt management, and evaluation, and materially improves results.
- **Read [What does a good trace look like?](https://langfuse.com/docs/observability/best-practices.md)** before instrumenting an application.
- **Verify endpoints, parameters, and response fields** against the [OpenAPI spec](https://cloud.langfuse.com/generated/api/openapi.yml), or read the [API reference as Markdown](https://api.reference.langfuse.com/index.md), instead of inferring them from code examples.
- **Use the [Langfuse CLI](https://langfuse.com/docs/api-and-data-platform/features/cli)** (`npx @langfuse/cli api <resource> <action>`) to read or write traces, prompts, datasets, and scores from the terminal.

Found an error in these docs? Please open an issue at <https://github.com/langfuse/langfuse-docs/issues>.
