MCP Directory

How to add Langfuse Prompt Management MCP Server to Cursor

Access and manage your Langfuse prompts through the Model Context Protocol. Paste the config into ~/.cursor/mcp.json and restart Cursor.

Last updated June 14, 2026 · 166 · stdio · apikey · official

Cursor config for Langfuse Prompt Management MCP Server

npm install && npm run build
{
  "mcpServers": {
    "langfuse-prompt-management-mcp-server": {
      "command": "node",
      "args": [
        "<absolute-path>/build/index.js"
      ],
      "env": {
        "LANGFUSE_PUBLIC_KEY": "your-public-key",
        "LANGFUSE_SECRET_KEY": "your-secret-key",
        "LANGFUSE_BASEURL": "https://cloud.langfuse.com"
      }
    }
  }
}

Setup steps

  1. 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
  2. 2Paste the Langfuse Prompt Management MCP Server config below into the "mcpServers" object.
  3. 3Fill in placeholder secrets, then save.
  4. 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
  5. 5Ask Cursor to use one of Langfuse Prompt Management MCP Server's tools to confirm it's connected.

Before you start

  • Node.js (to run the built server with `node`)
  • A Langfuse account with public and secret API keys
  • Build the server locally with `npm install` and `npm run build`

What Langfuse Prompt Management MCP Server can do in Cursor

get-prompts

List available prompts. Optional `cursor` parameter for pagination. Returns a list of prompts with their arguments.

get-prompt

Retrieve and compile a specific prompt. Required `name` parameter (name of the prompt to retrieve) and optional `arguments` parameter (a JSON object with prompt variables).

Security

Requires your Langfuse public and secret API keys, passed via the LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY environment variables. The secret key grants access to your Langfuse project's prompts; keep it out of source control.

Langfuse Prompt Management MCP Server + Cursor FAQ

Where is the Cursor config file?

Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the Langfuse Prompt Management MCP Server config there under the "mcpServers" key and restart the client.

Is Langfuse Prompt Management MCP Server safe to use with Cursor?

Requires your Langfuse public and secret API keys, passed via the LANGFUSE_PUBLIC_KEY and LANGFUSE_SECRET_KEY environment variables. The secret key grants access to your Langfuse project's prompts; keep it out of source control.

Which prompts are returned?

Only prompts with a `production` label in Langfuse are returned.

Are prompt arguments described?

All arguments are assumed to be optional and do not include descriptions, because variables do not have a specification in Langfuse.

How do I use it with Cursor?

Add a new server in Cursor of type `command`, with the command running `node absolute-path/build/index.js` and the LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, and LANGFUSE_BASEURL environment variables set inline.

View repo Full Langfuse Prompt Management MCP Server page