mcprules
A powerful Model Context Protocol (MCP) server that manages and serves programming guidelines and rules. This server integrates with development tools to provide consistent coding standards across projects.
Documentation
MCPRules - Programming Guidelines Management Server
A powerful Model Context Protocol (MCP) server that manages and serves programming guidelines and rules. This server integrates with development tools to provide consistent coding standards across projects.
Features
- Rule Management
- Access rules via MCP tools
- Filter rules by categories
- Support for both local and GitHub-hosted rules
- Structured rule format with categories and key-value pairs
- Flexible Storage
- Local file system support
- GitHub repository integration
- Markdown-based rule definitions
- Category Organization
- Core Programming Principles
- Code Style and Formatting
- Language-Specific Guidelines
- Project Management Rules
- Operating System Specific Rules
Installation
1. Clone the Repository
git clone https://github.com/yourusername/MCPRules.git
cd MCPRules/rules-server2. Install Dependencies
npm install3. Build the Server
npm run build4. Configure Environment Variables
export RULES_FILE_PATH=/path/to/your/rules.md
# Optional for private GitHub repositories
export GITHUB_TOKEN=your_github_tokenConfiguration
For VSCode Cline Extension
Location: `~/Library/Application Support/Windsurf/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json`
{
"mcpServers": {
"rules": {
"command": "node",
"args": ["/path/to/rules-server/build/index.js"],
"disabled": false,
"alwaysAllow": []
}
}
}For Claude Desktop
Location: `~/Library/Application Support/Claude/claude_desktop_config.json`
Usage
Available Tools
1. Get Rules
// Retrieve all rules or filter by category
{
"category": "optional-category-name"
}2. Get Categories
// List all available rule categories
{}Rule Format
Rules are stored in markdown files with the following structure:
#Category
key: valueDevelopment
- Watch Mode
npm run watch- Debugging
npm run inspectorContributing
1. Fork the repository
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Credits to the original rules from Reddit discussion
- Thanks to the Model Context Protocol community
Frequently asked questions
What is mcprules?
mcprules is A powerful Model Context Protocol (MCP) server that manages and serves programming guidelines and rules. This server integrates with development tools to provide consistent coding standards across projects.
How do I install mcprules?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcprules open source?
Yes — it is hosted on GitHub at https://github.com/bartwisch/MCPRules and has 20 stars.
Related MCP tools
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others. Built for the Model Context Protocol to enhance AI capabiliti
Fay是一个帮助数字人(2.5d、3d、移动、pc、网页)或大语言模型(openai兼容、deepseek)连通业务系统的mcp框架。 JavaScript-based implementation. Trusted by 12000+ developers.
CTTF: MCP integration between Cursor and Figma, allowing Cursor Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients. JavaScript-based implementation.
This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities JavaScript-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP