Skip to main content

Docs MCP Server

还没翻译译自英文(langfuse.com)本页 48 段都还没译

Langfuse Docs MCP Server

The Langfuse Docs MCP server exposes the Langfuse docs to AI agents.

Core use case: Use Cursor (or other AI Coding Agent) to automatically integrate Langfuse Tracing into your codebase, see get started for detailed instructions and an example prompt.

Note

This is the public MCP server for the Langfuse documentation. There is also an authenticated MCP server to integrate with the rest of the Langfuse data platform (docs).

Pair with the Agent Skill

You'll get better results when your agent also has the Langfuse Agent Skill installed, next to the MCP server.

Install it from GitHub or follow the Agent Skill setup.

Install

Add Langfuse Docs MCP to Claude Code via the CLI:

claude mcp add \
  --transport http \
  langfuse-docs \
  https://langfuse.com/api/mcp \
  --scope user

Manual configuration

Add Langfuse Docs MCP to Codex via the CLI:

codex mcp add langfuse-docs --url https://langfuse.com/api/mcp

Manual configuration

Add Langfuse Docs MCP to Cursor via the one-click install:

Install MCP Server in Cursor

Manual configuration

Add Langfuse Docs MCP to Windsurf via the following steps:

  1. Open Command Palette (⌘+Shift+P)

  2. Open "MCP Configuration Panel"

  3. Select Add custom server

  4. Add the following configuration:

    {
      "mcpServers": {
        "langfuse-docs": {
          "command": "npx",
          "args": ["mcp-remote", "https://langfuse.com/api/mcp"]
        }
      }
    }

Add Langfuse Docs MCP to Copilot in VSCode via the one-click install:

Install MCP Server in VS Code

Manual configuration

Langfuse uses the streamableHttp protocol to communicate with the MCP server. This is supported by most clients.

{
  "mcpServers": {
    "langfuse-docs": {
      "url": "https://langfuse.com/api/mcp"
    }
  }
}

If you use a client that does not support streamableHttp (e.g. Windsurf), you can use the mcp-remote command as a local proxy.

{
  "mcpServers": {
    "langfuse-docs": {
      "command": "npx",
      "args": ["mcp-remote", "https://langfuse.com/api/mcp"]
    }
  }
}

About

  • Endpoint: https://langfuse.com/api/mcp
  • Transport: streamableHttp
  • Authentication: None

Note

The MCP Reference is the canonical source for current Docs MCP tools, input schemas, and generated request examples.

References

REST Endpoint

The underlying docs search (searchLangfuseDocs tool) is also available independently as a REST API at https://langfuse.com/api/search-docs.

curl "https://langfuse.com/api/search-docs?query=Langfuse+Docs+MCP+Server"

Use this endpoint directly when you need lightweight semantic search outside of MCP.