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 💡
books-mcp
This is an MCP server used for querying books, and it can be applied in common MCP clients, such as Cherry Studio.
mendableai/firecrawl-mcp-server
Official Firecrawl MCP Server integrating Firecrawl for web scraping, supporting Cursor, Claude, and other LLM clients.
Glitchfix/mcp-duckduckgo
A Model Context Protocol server that provides web search and content fetching capabilities using DuckDuckGo. This server enables LLMs to search the web and retrieve content from web pages without requiring any API keys.
@arabold/docs-mcp-server
A MCP server for fetching, processing, indexing, and searching documentation for various software libraries and packages.
reyxgpt
An agent built on the Model Context Protocol for managing Minecraft servers via RCON, allowing execution of server commands and monitoring server and player status.
Bright Data MCP Server
Bright Data MCP Server enables LLMs, AI agents, and apps to access, search, crawl, and navigate real-time web data without getting blocked.