Skip to main content

Langfuse

Langfuse's official MCP server is built into Langfuse Cloud and self-hosted Langfuse. Each API key is scoped to one project. The Langfuse card with the Official badge calls https://{host}/api/public/mcp over streamable HTTP. Auth is Personal API keys. Willow sends the pasted value as the Authorization header, unchanged. Langfuse expects Basic plus the Base64 of publicKey:secretKey.

This card is the project server. Langfuse also publishes a separate public MCP server for searching its documentation. See Langfuse MCP server.

Host​

The card asks for Langfuse host. Enter the hostname. Willow builds https://{host}/api/public/mcp. The default, cloud.langfuse.com, is Cloud EU.

RegionHost
EUcloud.langfuse.com
USus.cloud.langfuse.com
Japanjp.cloud.langfuse.com
HIPAA UShipaa.cloud.langfuse.com
Self-hostedyour Langfuse hostname

Use the region, or the self-hosted installation, that holds the project. A key from another region fails against this URL.

On a self-hosted Langfuse behind a reverse proxy, preserve the public Host header. If the endpoint is also reached by an internal Docker or Kubernetes hostname, set LANGFUSE_MCP_ALLOWED_HOSTS to a comma-separated list of those exact hostnames or origins. Otherwise Langfuse returns 403.

API key​

  1. In the Langfuse project, go to Settings → API Keys → Create new API keys.
  2. Name the key, leave Full access selected, and click Create API key.
  3. Copy the public key (pk-lf-...) and the secret key (sk-lf-...). Langfuse shows the secret once.
  4. Encode publicKey:secretKey. On macOS or Linux:
echo -n "pk-lf-...:sk-lf-..." | base64

Anyone who can read the string can recover the keys.

Set up Willow​

  1. Go to MCP Servers → + Add MCP server, open the Langfuse card with the Official badge, and click + Use.
  2. Set Langfuse host to the hostname for that project.
  3. Keep Personal API keys. Assign groups and Publish.
  4. When each person connects, they paste Basic followed by the Base64 string, for example Basic cGstbGYtcHVibGljOnNrLWxmLXNlY3JldA==.

The host is shared. Each person's key selects a project on that host, and Langfuse scopes every call to that project.

Troubleshooting​

Langfuse rejects the key.

Cause: The value is only the secret key, or it is missing the Basic prefix. A key from another region fails the same way when Langfuse host does not match the project.

Solution: Paste Basic plus the Base64 of publicKey:secretKey, and set Langfuse host to that project's region.

Self-hosted calls return 403.

Cause: A reverse proxy rewrote the Host header, or the call uses a hostname Langfuse does not accept.

Solution: Preserve the public Host header, or set LANGFUSE_MCP_ALLOWED_HOSTS to the extra hostnames or origins. See Host.

Additional Resources​

On this page