jhgaylor
MCP Serverjhgaylorpublic

cursorrules

A collection of cursor rules I bring in to many projects

Repository Info

1
Stars
1
Forks
1
Watchers
0
Issues
TypeScript
Language
GNU General Public License v3.0
License

About This Server

A collection of cursor rules I bring in to many projects

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

cursorrules

A collection of cursor rules I bring in to many projects

Quick start

Add to your shell profile

Add this function to your ~/.zprofile, ~/.profile, or ~/.zshrc:

function install-cursor-rules() {
  # Create .cursor/rules directory if it doesn't exist
  mkdir -p .cursor/rules

  # Download the repository as a zip file
  # Create a temporary directory
  TEMP_DIR=$(mktemp -d)
  curl -L https://github.com/jhgaylor/cursorrules/archive/main.zip -o $TEMP_DIR/cursorrules.zip

  # Extract the zip file
  unzip -q $TEMP_DIR/cursorrules.zip -d $TEMP_DIR

  # Copy the rules to the current project
  cp $TEMP_DIR/cursorrules-main/rules/* .cursor/rules/

  # Clean up
  rm -rf $TEMP_DIR

  echo "Cursor rules installed successfully to .cursor/rules/"
}

After adding the function, remember to reload your profile:

# For ~/.zprofile or ~/.profile
source ~/.zprofile  # or source ~/.profile

# For ~/.zshrc
source ~/.zshrc

Install rules in your project

Navigate to the root of your project directory and run:

install-cursor-rules

This will install the cursor rules into your current project directory. After running the command, you'll have the rules in ./.cursor/rules

Usage

To use these cursor rules in your project:

Option 1: Clone the Repository

Clone this repository and copy the rules to your project:

# Navigate to your project directory
cd path/to/your/project

# Create .cursor/rules directory if it doesn't exist
mkdir -p .cursor/rules

# Clone the repository (can be anywhere temporary)
git clone https://github.com/jhgaylor/cursorrules.git cursorrules-temp

# Copy the rules to your project
cp cursorrules-temp/rules/* .cursor/rules/

# Clean up
rm -rf cursorrules-temp

Option 2: Direct Download of Rules

If you just want to download the rules directly:

# Navigate to your project directory
cd path/to/your/project

# Create .cursor/rules directory if it doesn't exist
mkdir -p .cursor/rules

# Download each rule file
curl -o .cursor/rules/mcp.mdc https://raw.githubusercontent.com/jhgaylor/cursorrules/main/rules/mcp.mdc
curl -o .cursor/rules/typescript-mcp.mdc https://raw.githubusercontent.com/jhgaylor/cursorrules/main/rules/typescript-mcp.mdc

Option 3: Add as a Git Submodule

Add this repository as a Git submodule and create a symbolic link to the rules:

# Navigate to your project directory
cd path/to/your/project

# Create .cursor directory if it doesn't exist
mkdir -p .cursor/rules

# Add as a submodule (in a subdirectory)
git submodule add https://github.com/jhgaylor/cursorrules.git .cursor/cursorrules

# Create symbolic links to the rules
ln -s ../.cursor/cursorrules/rules/* .cursor/rules/

# Initialize and update the submodule
git submodule update --init

After setup, Cursor will automatically load the rules when you open your project.

Quick Start

1

Clone the repository

git clone https://github.com/jhgaylor/cursorrules
2

Install dependencies

cd cursorrules
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerjhgaylor
Repocursorrules
LanguageTypeScript
LicenseGNU General Public License v3.0
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation