Cursor Rules Configuration
This directory contains configuration and documentation for integrating the Cursor Rules MCP server via gitmcp.io.
Configuration
The .cursor/mcp.json file defines custom MCP servers. We added:
{
"mcpServers": {
"Cursor Rules": {
"url": "https://gitmcp.io/mgd1984/cursor-rules"
}
}
}
This tells the Cursor chat integration to fetch rules from the Cursor Rules server hosted on gitmcp.io.
Rebuilding the Ruleset
To rebuild or refresh the ruleset locally, run the following commands in your project root:
# Clone the rules repository
git clone --depth=1 https://gitmcp.io/mgd1984/cursor-rules.git temp
# Copy the rules into the .cursor folder
cp -R temp/.cursor/rules .cursor/rules
# Clean up the temporary clone
rm -rf temp
Alternatively, if you have a CLI available, you can use:
cursor mcp fetch --server "Cursor Rules"
Ensure to commit any updated rules into your repository to keep them in sync.
Overview
This repository contains a template for Cursor Rules that can be used to provide consistent guidance when developing Next.js applications with TypeScript. The rules cover architecture, state management, error handling, styling, and more.
Getting Started
- Clone this repository
- Copy the
.cursordirectory to your Next.js project - Customize the rules to fit your specific project needs
Rule Categories
- Architecture: Project structure, tech stack, and file organization
- Memory/State: Data fetching and state management patterns
- Error Handling: Error handling strategies
- Performance: Optimization techniques
- Workflow: Development process preferences
- Preferences: Code style, naming conventions, and Tailwind usage
Usage
To activate a rule in Cursor chat:
- Reference it directly:
@architecture/001-project-overview - Or use the rule picker by typing
@and selecting from the list
License
MIT
Recommend MCP Servers 💡
@adarshem/mcp-server-learn
A demo MCP server providing weather alerts and forecasts using the US National Weather Service API
risken-mcp-server
An MCP server providing seamless integration with RISKEN APIs for security operations automation
paragon-mcp
The Paragon MCP Server integrates with Paragon's ActionKit to provide AI agents access to over 130 prebuilt SaaS integrations (e.g., Google Calendar, Salesforce, Slack) and handles user authorization via a Connect Portal, enabling agents to interact with users' SaaS applications.
nacos-mcp-router
A MCP server that provides search, installation, proxy functionalities for other MCP servers with advanced search capabilities.
@larryhudson/mcp-server-example-image-block
An example MCP server that returns a random image from the Lorem Picsum API
DocNR/repo-explorer
A powerful MCP server for exploring, searching, and analyzing Git repositories with advanced caching and Claude AI integration.