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.
Overview
MCPRules is a powerful Model Context Protocol (MCP) server designed to manage and serve programming guidelines and rules, promoting consistent coding standards across various projects.
To use MCPRules, clone the repository from GitHub, install the necessary dependencies, build the server, and configure the environment variables. You can then access the rules through various tools integrated with the server.
- Rule Management: Access and filter rules by categories, supporting both local and GitHub-hosted rules. - Flexible Storage: Integration with local file systems and GitHub, allowing markdown-based rule definitions. - Category Organization: Supports various categories related to programming principles and specific languages.
- Enforcing coding standards across teams in software development.
- Managing programming guidelines in collaborative projects.
- Tailoring coding standards by project needs or programming languages.
Add to your AI client
Use these steps to connect MCPRules - Programming Guidelines Management Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcprules-bartwisch": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcprules-bartwisch"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcprules-bartwisch": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcprules-bartwisch"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcprules-bartwisch": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcprules-bartwisch"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcprules-bartwisch": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcprules-bartwisch"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcprules-bartwisch": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcprules-bartwisch"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcprules-bartwisch": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcprules-bartwisch"
]
}
}
}FAQ
How do I install MCPRules?
Clone the repository, install dependencies, build the server, and configure your rules file path.
Can I host my own rules?
Yes! MCPRules supports local and GitHub-hosted markdown-based rules.
What is the licensing for MCPRules?
MCPRules is licensed under the MIT License, allowing for free use and modification.