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 💡
edwardchoh/apollo-io-mcp-server
MCP server exposing Apollo.io API functionalities as tools
pab1it0/chess-mcp
A Model Context Protocol server for Chess.com's Published Data API. This provides access to Chess.com player data, game records, and other public information through standardized MCP interfaces, allowing AI assistants to search and analyze chess information.
clojars-deps-server
A Model Context Protocol (MCP) server that provides tools for fetching dependency information from Clojars, the Clojure community's artifact repository.
arjunkmrm/mcp-sg-lta
MCP server providing real-time access to Singapore LTA DataMall API transportation information including bus arrivals, traffic conditions, and train service updates.
vectorize-io/vectorize-mcp-server
A Model Context Protocol (MCP) server implementation that integrates with Vectorize for advanced Vector retrieval and text extraction.
trieve-mcp-server
All-in-one platform for search, recommendations, RAG, and analytics offered via API