npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@meltstudio/langfuse-mcp-server

v2.3.0

Published

MCP server for Langfuse prompt management - get and compile prompts directly in Cursor

Readme

Langfuse MCP Server for Cursor

Get and compile your Langfuse prompts directly in Cursor. No more copying and pasting—just chat with your prompts.

Quick Start

1. Install

npm install -g @meltstudio/langfuse-mcp-server

2. Get Your Langfuse Credentials

  1. Go to your Langfuse project settings
  2. Copy your Secret Key and Public Key

3. Configure Cursor

Add this to your Cursor settings file (.cursor/mcp.json):

{
  "mcpServers": {
    "langfuse": {
      "command": "melt-langfuse-mcp",
      "env": {
        "LANGFUSE_SECRET_KEY": "sk-lf-your-secret-key-here",
        "LANGFUSE_PUBLIC_KEY": "pk-lf-your-public-key-here"
      }
    }
  }
}

4. Restart Cursor

5. Test Your Integration

After Cursor restarts, test that everything is working:

  1. Test with direct prompt execution (Recommended):

    • In Cursor chat, type: Use the melt-integration-test prompt
    • You should see a welcome message confirming everything works
    • To test with variables: Use the melt-integration-test prompt with my_name='YourName' and task='building AI apps'
  2. Test with MCP tools:

    • Ask Cursor: "Show me all my prompts"
    • Ask Cursor: "Get the melt-integration-test prompt"
    • Ask Cursor: "Compile melt-integration-test with my_name='YourName' and task='building AI apps'"

If any of these work, you're all set! 🎉

Updating

To update to the latest version:

npm update -g @meltstudio/langfuse-mcp-server

Or to force reinstall:

npm install -g @meltstudio/langfuse-mcp-server@latest

After updating, restart Cursor to use the new version.

You can check your installed version with:

melt-langfuse-mcp --version

Usage

The MCP server provides two ways to work with your Langfuse prompts:

1. Direct Prompt Integration (Recommended)

Use Cursor's prompt selector to browse and use your Langfuse prompts directly in chat:

  1. Open Cursor's prompt selector (usually @ in chat)
  2. Browse your available Langfuse prompts
  3. Select a prompt to use it directly in your conversation
  4. Provide variables if the prompt requires them

2. Manual Tool Usage

You can also chat naturally with Cursor using these commands:

  • "Show me all my prompts" - Lists your Langfuse prompts
  • "Get the movie-critic prompt" - Fetches a specific prompt
  • "Compile movie-critic with movie='Dune 2'" - Gets prompt ready for use

Example

You: "Get my movie-critic prompt and compile it for Dune 2"

Cursor: I'll fetch your movie-critic prompt and compile it for Dune 2.

[Gets the prompt from Langfuse and substitutes variables]

Here's your compiled prompt:
"You are an expert movie critic. Write a detailed review of Dune 2..."

Available Commands

| What you want | Say this | |---------------|----------| | See all prompts | "List my prompts" or "Show me all prompts" | | Get a specific prompt | "Get the [prompt-name] prompt" | | Compile with variables | "Compile [prompt-name] with variable='value'" | | Get prompt details | "Tell me about the [prompt-name] prompt" |

Configuration Options

You can add these optional environment variables to your Cursor config:

{
  "mcpServers": {
    "langfuse": {
      "command": "melt-langfuse-mcp",
      "env": {
        "LANGFUSE_SECRET_KEY": "sk-lf-...",
        "LANGFUSE_PUBLIC_KEY": "pk-lf-...",
        "LANGFUSE_HOST": "https://us.cloud.langfuse.com",
        "LANGFUSE_DEFAULT_LABEL": "production"
      }
    }
  }
}

Troubleshooting

"Command not found" error

Make sure you installed globally: npm install -g @meltstudio/langfuse-mcp-server

"Authentication failed" error

Double-check your Langfuse credentials in the Cursor config.

"Prompt not found" error

  • Check the prompt name is correct
  • Make sure the prompt has the "production" label (or set LANGFUSE_DEFAULT_LABEL to match your label)

Langfuse Regions

US Region (default): https://us.cloud.langfuse.com
EU Region: https://cloud.langfuse.com

The server defaults to US region. For EU region or self-hosted, set your host:

"LANGFUSE_HOST": "https://cloud.langfuse.com"

Or for self-hosted:

"LANGFUSE_HOST": "https://your-langfuse-instance.com"

Made by Melt Studio

Questions? Open an issue or reach out to us.