本页还没有译文
本页 48 段还没译成简体中文,下面显示的是英文原文。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 userAdd Langfuse Docs MCP to Codex via the CLI:
codex mcp add langfuse-docs --url https://langfuse.com/api/mcpAdd Langfuse Docs MCP to Windsurf via the following steps:
-
Open Command Palette (⌘+Shift+P)
-
Open "MCP Configuration Panel"
-
Select
Add custom server -
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
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
- Implementation of the MCP server: route.ts
- MCP Reference: reference for MCP servers, setup snippets, tools, schemas, and requests
- Langfuse Agent Skill: playbook that teaches coding agents how to use the Docs MCP server
- Agentic Onboarding powered by the MCP server
- Ask AI: RAG chat with the Langfuse docs to get answers to your questions
- langfuse.com/llms.txt: concise overview with page titles and links to detailed sub-files (llms-docs.txt, llms-integrations.txt, llms-self-hosting.txt)
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.