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

@return-0/mcp-server

v1.0.2

Published

Local MCP server for return0

Readme

@return-0/mcp-server

MCP (Model Context Protocol) server for return0 - a tool for debugging production applications in real-time.

About return0

return0 enables developers to debug production Node.js applications in real-time. It allows you to monitor and troubleshoot your applications by connecting to live variables, observing execution flow, and understanding runtime behavior directly within the Cursor IDE. This is especially powerful for debugging production applications built with Next.js and deployed on platforms like Vercel, where traditional debugging methods can be challenging.

Chat Demo

Configuration in Cursor

To use this MCP server with Cursor IDE, you need to configure it in your Cursor settings. First, you'll need to get your return0 API key.

Getting Your API Key

To get your return0 API key, visit the return0 documentation. The documentation will guide you through the process of obtaining your API key.

Once you have your API key, you can configure the MCP server in one of two ways:

Option 1: One-Click Installation

Click the button below to automatically install and configure the return0 MCP server in Cursor:

Add to Cursor

This will automatically configure the MCP server. Note: You'll need to add your return0 API key to the configuration after installation. See the Getting Your API Key section above for instructions on obtaining your API key, and the manual configuration section below for details on how to add it.

Option 2: Manual Configuration

If you prefer to configure manually, follow these steps in Cursor IDE:

  1. Open Cursor IDE
  2. Go to Settings (or Preferences on macOS):
    • Click the gear icon (⚙️) in the bottom left corner, or
    • Use the keyboard shortcut: Ctrl+, (Windows/Linux) or Cmd+, (macOS)
  3. In the settings search bar, type "MCP" or "Model Context Protocol"
  4. Click on MCP Servers or navigate to the MCP configuration section
  5. Click Add Server or the + button to add a new MCP server
  6. Enter the following configuration:
    • Name: return0
    • Command: npx
    • Args: -y, @return-0/mcp-server
    • Environment Variables: Add RETURN0_API_KEY with your API key as the value
  7. Click Save or Apply to save the configuration

The configuration should look like this in your mcp.json file:

{
  "mcpServers": {
    "return0": {
      "command": "npx",
      "args": ["-y", "@return-0/mcp-server"],
      "env": {
        "RETURN0_API_KEY": "your-api-key-here"
      }
    }
  }
}

Note: Replace "your-api-key-here" with your actual return0 API key. If you don't have an API key yet, see the Getting Your API Key section above for instructions, or you can use "demo" for testing purposes. The MCP server will be automatically installed via npx when Cursor starts.

Tools

This MCP server provides a variable_extractor tool that can be used by MCP-compatible clients.

Tool: variable_extractor

Extracts the runtime value, type, and timestamp of variables from production code.

Input Schema:

{
  files: Array<{
    fileName: string;        // Full absolute path to the file
    variables: Array<{
      name: string;          // Variable name to extract
      lineNumber: number;    // Line number where variable is defined
    }>
  }>
}

Example:

{
  "files": [
    {
      "fileName": "C:\\Users\\username\\project\\src\\app\\api\\route.ts",
      "variables": [
        {
          "name": "userData",
          "lineNumber": 42
        }
      ]
    }
  ]
}

How It Works

  1. The MCP server receives requests to extract runtime variable values from production code
  2. It reads the source files from the local filesystem
  3. Uses TypeScript AST analysis to correct line numbers for accurate variable location
  4. Connects to the running production application to retrieve live variable values
  5. Returns the corrected variable extraction data with real-time runtime values, types, and timestamps

License

See LICENSE file for details.

Author

return0

Links