Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-rodrigorjsf-langfuse-api-mcp": {
"command": "npx",
"args": [
"-y",
"langfuse-api-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "<YOUR_VALUE>",
"LANGFUSE_SECRET_KEY": "<YOUR_VALUE>",
"LANGFUSE_BASE_URL": "<VALUE>",
"LANGFUSE_CA_CERT": "<VALUE>",
"NO_PROXY": "<VALUE>",
"HTTP_PROXY": "<VALUE>",
"HTTPS_PROXY": "<VALUE>",
"LANGFUSE_HOST": "<VALUE>",
"LANGFUSE_CA_CERTS_PATH": "<VALUE>",
"LANGFUSE_MCP_TRANSPORT": "stdio",
"LANGFUSE_MCP_RATE_LIMIT": "<VALUE>",
"LANGFUSE_MCP_ALLOW_WRITES": "false",
"LANGFUSE_MCP_MAX_CONCURRENCY": "4",
"LANGFUSE_MCP_IGNORE_AMBIENT_CA": "false"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-rodrigorjsf-langfuse-api-mcp": {
"command": "npx",
"args": [
"-y",
"langfuse-api-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "<YOUR_VALUE>",
"LANGFUSE_SECRET_KEY": "<YOUR_VALUE>",
"LANGFUSE_BASE_URL": "<VALUE>",
"LANGFUSE_CA_CERT": "<VALUE>",
"NO_PROXY": "<VALUE>",
"HTTP_PROXY": "<VALUE>",
"HTTPS_PROXY": "<VALUE>",
"LANGFUSE_HOST": "<VALUE>",
"LANGFUSE_CA_CERTS_PATH": "<VALUE>",
"LANGFUSE_MCP_TRANSPORT": "stdio",
"LANGFUSE_MCP_RATE_LIMIT": "<VALUE>",
"LANGFUSE_MCP_ALLOW_WRITES": "false",
"LANGFUSE_MCP_MAX_CONCURRENCY": "4",
"LANGFUSE_MCP_IGNORE_AMBIENT_CA": "false"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-rodrigorjsf-langfuse-api-mcp": {
"command": "npx",
"args": [
"-y",
"langfuse-api-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "<YOUR_VALUE>",
"LANGFUSE_SECRET_KEY": "<YOUR_VALUE>",
"LANGFUSE_BASE_URL": "<VALUE>",
"LANGFUSE_CA_CERT": "<VALUE>",
"NO_PROXY": "<VALUE>",
"HTTP_PROXY": "<VALUE>",
"HTTPS_PROXY": "<VALUE>",
"LANGFUSE_HOST": "<VALUE>",
"LANGFUSE_CA_CERTS_PATH": "<VALUE>",
"LANGFUSE_MCP_TRANSPORT": "stdio",
"LANGFUSE_MCP_RATE_LIMIT": "<VALUE>",
"LANGFUSE_MCP_ALLOW_WRITES": "false",
"LANGFUSE_MCP_MAX_CONCURRENCY": "4",
"LANGFUSE_MCP_IGNORE_AMBIENT_CA": "false"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-rodrigorjsf-langfuse-api-mcp": {
"command": "npx",
"args": [
"-y",
"langfuse-api-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "<YOUR_VALUE>",
"LANGFUSE_SECRET_KEY": "<YOUR_VALUE>",
"LANGFUSE_BASE_URL": "<VALUE>",
"LANGFUSE_CA_CERT": "<VALUE>",
"NO_PROXY": "<VALUE>",
"HTTP_PROXY": "<VALUE>",
"HTTPS_PROXY": "<VALUE>",
"LANGFUSE_HOST": "<VALUE>",
"LANGFUSE_CA_CERTS_PATH": "<VALUE>",
"LANGFUSE_MCP_TRANSPORT": "stdio",
"LANGFUSE_MCP_RATE_LIMIT": "<VALUE>",
"LANGFUSE_MCP_ALLOW_WRITES": "false",
"LANGFUSE_MCP_MAX_CONCURRENCY": "4",
"LANGFUSE_MCP_IGNORE_AMBIENT_CA": "false"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-rodrigorjsf-langfuse-api-mcp": {
"command": "npx",
"args": [
"-y",
"langfuse-api-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "<YOUR_VALUE>",
"LANGFUSE_SECRET_KEY": "<YOUR_VALUE>",
"LANGFUSE_BASE_URL": "<VALUE>",
"LANGFUSE_CA_CERT": "<VALUE>",
"NO_PROXY": "<VALUE>",
"HTTP_PROXY": "<VALUE>",
"HTTPS_PROXY": "<VALUE>",
"LANGFUSE_HOST": "<VALUE>",
"LANGFUSE_CA_CERTS_PATH": "<VALUE>",
"LANGFUSE_MCP_TRANSPORT": "stdio",
"LANGFUSE_MCP_RATE_LIMIT": "<VALUE>",
"LANGFUSE_MCP_ALLOW_WRITES": "false",
"LANGFUSE_MCP_MAX_CONCURRENCY": "4",
"LANGFUSE_MCP_IGNORE_AMBIENT_CA": "false"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-rodrigorjsf-langfuse-api-mcp": {
"command": "npx",
"args": [
"-y",
"langfuse-api-mcp"
],
"env": {
"LANGFUSE_PUBLIC_KEY": "<YOUR_VALUE>",
"LANGFUSE_SECRET_KEY": "<YOUR_VALUE>",
"LANGFUSE_BASE_URL": "<VALUE>",
"LANGFUSE_CA_CERT": "<VALUE>",
"NO_PROXY": "<VALUE>",
"HTTP_PROXY": "<VALUE>",
"HTTPS_PROXY": "<VALUE>",
"LANGFUSE_HOST": "<VALUE>",
"LANGFUSE_CA_CERTS_PATH": "<VALUE>",
"LANGFUSE_MCP_TRANSPORT": "stdio",
"LANGFUSE_MCP_RATE_LIMIT": "<VALUE>",
"LANGFUSE_MCP_ALLOW_WRITES": "false",
"LANGFUSE_MCP_MAX_CONCURRENCY": "4",
"LANGFUSE_MCP_IGNORE_AMBIENT_CA": "false"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| LANGFUSE_PUBLIC_KEY secret | Yes | Project public key (pk-lf-…). Required: a missing key, or one without its pk-lf- prefix, stops startup with one error naming the variable. Environment only. |
| LANGFUSE_SECRET_KEY secret | Yes | Project secret key (sk-lf-…). Required: a missing key, or one without its sk-lf- prefix, stops startup with one error naming the variable. Environment only; never logged and never returned to the agent. |
| LANGFUSE_BASE_URL | Yes | Langfuse host, an absolute https URL. Required; it has no default. Plain http is accepted only for a loopback host (localhost, 127.0.0.0/8, ::1). Cloud regions: https://cloud.langfuse.com (EU), https://us.cloud.langfuse.com, https://jp.cloud.langfuse.com, https://hipaa.cloud.langfuse.com; keys only work in the region where they were created. LANGFUSE_HOST is accepted as an alias, with LANGFUSE_BASE_URL winning when both are set. May also be set in the config file; the environment wins. |
| LANGFUSE_CA_CERT | No | PEM file with one or more CA certificates, loaded into the trust pool at startup (for corporate TLS interception). If it cannot be loaded (missing, unreadable, empty, no PEM certificate or a damaged one), startup fails with an error naming the variable and the path. May also be set in the config file. |
| NO_PROXY | No | Hosts listed here are reached directly, bypassing the proxy. May also be set in the config file. |
| HTTP_PROXY | No | Standard proxy variable, checked at startup but never used, because Go never sends a loopback host through a proxy and Langfuse hosts are https. May also be set in the config file. |
| HTTPS_PROXY | No | Standard proxy variable: the Langfuse client sends its requests through this proxy. Scheme http, https, socks5 or socks5h; a bare host or host:port is read as an http proxy; a scheme-less value holding / or @ is refused. Credentials are sent as Basic proxy authentication. May also be set in the config file; an environment value wins. The startup log shows the proxy in use as scheme://host:port, never its credentials. |
| LANGFUSE_HOST | No | Alias for LANGFUSE_BASE_URL; LANGFUSE_BASE_URL wins when both are set. |
| LANGFUSE_CA_CERTS_PATH | No | Directory of PEM files; every regular file directly inside it that holds PEM certificates is loaded (subdirectories and non-PEM files are ignored). If it cannot be loaded, startup fails with an error naming the variable and the path. May also be set in the config file. |
| LANGFUSE_MCP_TRANSPORT | No | stdio (default) starts the server over stdio; http starts Streamable HTTP on 127.0.0.1 only, protected by a bearer token (Planned, #160). May also be set in the config file. Default: stdio |
| LANGFUSE_MCP_RATE_LIMIT | No | The most Langfuse requests the server sends per minute, retries included. Whole number from 1 to 60000; a zero, negative, non-numeric or out-of-range value stops startup naming the variable. Default 30 on a Langfuse Cloud host, 1000 on any other host; a value you set always wins. May also be set in the config file; the environment wins. |
| LANGFUSE_MCP_ALLOW_WRITES | No | true turns write mode on: the execute_write tool is registered and write operations are listed. Exactly true or false; any other value stops startup with an error naming the variable and where it was set, never the value. May also be set in the config file; the environment wins. Leave it off unless you want the agent to change Langfuse data. Default: false |
| LANGFUSE_MCP_MAX_CONCURRENCY | No | The most Langfuse requests in flight at once. Whole number from 1 to 64; an out-of-range value stops startup naming the variable. May also be set in the config file; the environment wins. Default: 4 |
| LANGFUSE_MCP_IGNORE_AMBIENT_CA | No | true = do not pick up the ambient CA variables (SSL_CERT_FILE, SSL_CERT_DIR, NODE_EXTRA_CA_CERTS, REQUESTS_CA_BUNDLE, CURL_CA_BUNDLE); only the OS store and LANGFUSE_CA_CERT/LANGFUSE_CA_CERTS_PATH are trusted. Accepts Go's boolean spellings (true/TRUE/True/t/1 and their false counterparts); any other value stops startup naming the variable. May also be set in the config file; the environment wins. Default: false |