LocalFree server, account needed

Langfuse API MCP server

rodrigorjsf/langfuse-api-mcp

Langfuse public API (Cloud and self-hosted): traces, prompts, datasets and gated writes.

0 GitHub stars346 npm downloads / month

Install Langfuse API in Claude Code

npm

Claude Code
claude mcp add langfuse-api -e LANGFUSE_PUBLIC_KEY=... -e LANGFUSE_SECRET_KEY=... -e LANGFUSE_BASE_URL=... -- npx -y langfuse-api-mcp
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "langfuse-api": {
      "command": "npx",
      "args": [
        "-y",
        "langfuse-api-mcp"
      ],
      "env": {
        "LANGFUSE_PUBLIC_KEY": "...",
        "LANGFUSE_SECRET_KEY": "...",
        "LANGFUSE_BASE_URL": "..."
      }
    }
  }
}

Docker

Claude Code
claude mcp add langfuse-api -e LANGFUSE_PUBLIC_KEY=... -e LANGFUSE_SECRET_KEY=... -e LANGFUSE_BASE_URL=... -- docker run -i --rm -e LANGFUSE_PUBLIC_KEY -e LANGFUSE_SECRET_KEY -e LANGFUSE_BASE_URL ghcr.io/rodrigorjsf/langfuse-api-mcp:0.2.0
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "langfuse-api": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "LANGFUSE_PUBLIC_KEY",
        "-e",
        "LANGFUSE_SECRET_KEY",
        "-e",
        "LANGFUSE_BASE_URL",
        "ghcr.io/rodrigorjsf/langfuse-api-mcp:0.2.0"
      ],
      "env": {
        "LANGFUSE_PUBLIC_KEY": "...",
        "LANGFUSE_SECRET_KEY": "...",
        "LANGFUSE_BASE_URL": "..."
      }
    }
  }
}

MCP Bundle (.mcpb)

Claude Code
curl -LO https://github.com/rodrigorjsf/langfuse-api-mcp/releases/download/v0.2.0/langfuse-mcp_0.2.0.mcpb
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
Download langfuse-mcp_0.2.0.mcpb and double-click it to install in Claude Desktop.

MCP Bundles install in one click in Claude Desktop. Download the file, then open it.

Replace each ... with your own value.

Frequently asked questions

What does the Langfuse API MCP server do?

Langfuse public API (Cloud and self-hosted): traces, prompts, datasets and gated writes.

Is the Langfuse API MCP server free?

The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.

Does Langfuse API run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add Langfuse API to Claude Code?

Run: claude mcp add langfuse-api -e LANGFUSE_PUBLIC_KEY=... -e LANGFUSE_SECRET_KEY=... -e LANGFUSE_BASE_URL=... -- npx -y langfuse-api-mcp

More data science & visualization MCP servers

View all