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

mcp-rule-server

v1.0.1

Published

Model Context Protocol server for Cursor rules management

Readme

MCP Rule Server

A Model Context Protocol (MCP) server for managing Cursor editor rules. This server analyzes user requirements and generates appropriate rule files to enhance the coding experience in Cursor editor.

Installation

Option 1: Direct Usage with npx (Recommended)

npx mcp-rule-server

Option 2: Installation via npm

For global installation:

npm install -g mcp-rule-server

For local project installation:

npm install mcp-rule-server

After installation, you can run it with:

# If installed globally
mcp-rule-server

# If installed locally
npx mcp-rule-server

Features

  • Analyze user technology stack requirements
  • Match and recommend appropriate rules
  • Create properly configured rule files
  • Support for interactive and automatic modes

Usage

Supported parameters:

mcp-rule-server --rules-dir /path/to/rules/directory --target-dir /path/to/output/directory --threshold 0.8

Parameter Description

  • --rules-dir /path/to/rules: Specify rules directory (default: ./dist/rules)
  • --target-dir /path/to/output: Specify target output directory (default: ./.cursor/rules)
  • --threshold 0.8: Set confidence threshold for rule matching (default: 0.7)

MCP Configuration Guide

To integrate this MCP server with tools that support the MCP protocol, refer to the following configuration methods:

Claude for Desktop Configuration

To configure MCP server in Claude for Desktop:

  1. Open Claude for Desktop configuration file:
# Windows
code %AppData%\Claude\claude_desktop_config.json

# macOS
code ~/Library/Application\ Support/Claude/claude_desktop_config.json

# Linux
code ~/.config/Claude/claude_desktop_config.json
  1. Add the following MCP configuration:
{
  "mcps": {
    "rules-manager": {
      "command": "node",
      "args": ["/path/to/rules_mcp/dist/index.js", "--rules-dir", "/path/to/rules_mcp/dist/rules"],
      "cwd": "/path/to/rules_mcp/dist"
    }
  }
}

Cursor Editor Configuration

To configure MCP server in Cursor editor:

  1. Open Cursor settings

  2. Add MCP configuration:

{
  "mcp.services": {
    "rules-manager": {
      "command": "node",
      "args": ["/path/to/rules_mcp/dist/index.js", "--rules-dir", "/path/to/rules_mcp/dist/rules"],
      "cwd": "/path/to/rules_mcp/dist"
    }
  }
}

OpenAI Plugin Configuration

To configure this MCP server as an OpenAI plugin:

  1. Create an openai-plugin.json file:
{
  "schema_version": "v1",
  "name_for_human": "Cursor Rules Manager",
  "name_for_model": "cursor_rules_manager",
  "description_for_human": "Manage and create rule files for Cursor editor",
  "description_for_model": "Analyze user requirements and generate Cursor editor rules via MCP protocol",
  "auth": {
    "type": "none"
  },
  "api": {
    "type": "mcp",
    "url": "http://localhost:your-port/mcp"
  },
  "logo_url": "https://your-domain/logo.png",
  "contact_email": "[email protected]",
  "legal_info_url": "https://your-domain/terms"
}
  1. Start the MCP server and ensure it's available on the specified port

License

This project is licensed under the MIT License - see the LICENSE file for details