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 🙏

© 2025 – Pkg Stats / Ryan Hefner

cursor-mcp-bridge

v1.3.0

Published

MCP server for Cursor Project Advisor - Bridge Claude Code with Cursor AI for intelligent project consultation

Readme

cursor-mcp-bridge

Bridge Claude Code with Cursor AI for intelligent project consultation through MCP (Model Context Protocol).

🚀 Quick Start

Installation

You don't need to install anything! Just use npx:

npx cursor-mcp-bridge

Configuration

Add to your Claude Code MCP configuration file:

Windows:

{
  "mcpServers": {
    "cursor-project-advisor": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "cursor-mcp-bridge"]
    }
  }
}

Mac/Linux:

{
  "mcpServers": {
    "cursor-project-advisor": {
      "command": "npx",
      "args": ["-y", "cursor-mcp-bridge"]
    }
  }
}

🎛️ Environment Configuration

Customize Cursor analysis behavior:

{
  "mcpServers": {
    "cursor-project-advisor": {
      "command": "npx",
      "args": ["-y", "cursor-mcp-bridge"],
      "env": {
        "CURSOR_MESSAGE_PREFIX": "[Project Analysis Mode] Use Cursor's built-in search and analysis tools first: 1) Search related code files and configs 2) Analyze project architecture and dependencies 3) Provide analysis based on complete understanding. No code modifications, no long code blocks:",
        "CURSOR_MESSAGE_TIMEOUT": "360000"
      }
    }
  }
}

Environment Variables:

  • CURSOR_MESSAGE_PREFIX: Customizes the analysis instruction prefix sent to Cursor for project-first analysis approach.
  • CURSOR_MESSAGE_TIMEOUT: Request timeout in milliseconds. Default: 360000 (6 minutes). Adjust based on project complexity and network conditions.

Usage in Claude Code

Once configured, you can use the MCP tool in Claude Code:

mcp__cursor-project-advisor__consult("Please analyze the project architecture")

📋 Requirements

  • Node.js >= 18.0.0
  • Cursor (latest version)
  • Claude Code with MCP support

🛠️ CLI Commands

# Start the server (default)
npx cursor-mcp-bridge

# Show help
npx cursor-mcp-bridge help

# Show version
npx cursor-mcp-bridge version

🔧 How It Works

  1. The MCP server starts a WebSocket server on port 8766
  2. You run the client script in Cursor's developer console
  3. Claude Code communicates with Cursor through this bridge
  4. Cursor provides deep project understanding and context

📝 Features

  • Context Auto-expansion: Cursor automatically retrieves and supplements relevant code based on key information
  • Deep Project Understanding: Leverages retrieval models to understand entire codebase structure
  • Intelligent Association Analysis: Finds related code patterns and potential impacts
  • Architecture Consistency: Provides suggestions that align with existing code style
  • Configurable Timeouts: Flexible timeout configuration via environment variables for different project needs

🐛 Troubleshooting

WebSocket Connection Failed

  • Ensure port 8766 is not in use
  • Check firewall settings
  • Restart both Cursor and Claude Code

MCP Tool Not Available

  • Verify the MCP configuration is correct
  • Check Node.js version (must be >= 18.0.0)
  • Review Claude Code logs for errors

📄 License

MIT

🔗 Links