Rules MCP Server
The Rules MCP Server provides coding agents with on-demand access to context-specific rules and best practices, primarily for tasks like writing tests.
Fetch Task-Specific Rules: Access guidelines for writing tests, authoring UI, or reviewing PRs.
Language-Specific Support: Currently supports Python and TypeScript with dedicated rules for each.
Contextual Delivery: Rules are dynamically fetched based on relevance to the current task, reducing distractions.
Tool Integration: Works seamlessly with Claude Code, Cursor, and Claude Desktop.
Centralized Best Practices: Eliminates the need for manually managing coding guidelines across different projects or IDEs.
Supports deployment of the MCP server on Netlify's platform, enabling hosting of rules and guidelines.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Rules MCP Serverget rules for writing tests in python"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
My Rules
An MCP server for all my rules, prompts, etc etc. Allows agents to call rules on demand.
There's no point filling 4 paragraphs of instructions for how to write tests if your current session isn't going to write a test.
Spiritually similar to Cursor's rules.
Usage
Claude Code
claude mcp add --transport http rules https://mcp.cianfrani.dev/mcpCursor
Claude Desktop
{
"rules": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.cianfrani.dev/mcp"
]
}
}Related MCP server: Claude Habitat
What's It Do?
Allows coding agents to lookup rules on demand within the context of their current task.
> write a test for @calc.py
⎿ Read calc.py (26 lines)
⏺ rules:get_rules_for_writing_tests (MCP)(language: "python")
⎿ - Before testing a protected method, ask "Can this logic be adequately tested through the public interface?". If yes, don't test the protected method directly.
If no, continue testing the protected method.
- Remember to write tests using the Arrange, Act, Assert pattern.
… +12 lines (ctrl+r to expand)
⏺ Write(test_calc.py)Why?
It's really annoying trying to carry all these little notes between projects/IDEs.
I don't want to have to manually invoke rules.
How's It Work?
Clearly-defined tool descriptions allow the agent to fetch rules on demand, only if they appear to be relevant.
What Doesn't work?
Patterns must be associated with a specific action. For example, "writing tests", "authoring UI", "reviewing a PR".
The agent ultimately decides if it's going to call the tool. Sometimes it does. Sometimes it doesn't.
Tools
get_rules_for_writing_testsUse when: writing any type of test,
Inputs:
language(string)
get_rules_for_composing_ui
Use when: creating new frontend components
Prompts
In Claude Code, invoke prompts as slash commands.
pr-review
Use when: you want feedback on a unit of work
/pr-review
See resources/pr-review.md for the full template.
Resources
Dev
Start the server
npm run devOpen MCP inspector
npm run inspectMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceAn MCP server that enables users to store and retrieve personalized coding patterns, serving as a persistent memory layer for LLM agents. It allows AI models to generate code and refactor projects according to a user's specific styles, technologies, and established development conventions.Last updated71
- Flicense-quality-maintenanceAn MCP server that provides persistent project context, workflow management, and knowledge capture for AI coding agents. It enables agents to maintain structured memory across sessions by tracking project profiles, conventions, skills, and technical debt.Last updated7
- Alicense-qualityDmaintenanceMCP server for storing and retrieving context-specific agent rules, enabling AI agents to access relevant guidelines efficiently and reduce context window usage.Last updated1Apache 2.0
- Alicense-qualityFmaintenanceAn MCP server that retrieves contextual information from company resources and surfaces it to coding agents as rules, reasoning, skills, and commands.Last updated1MIT
Related MCP Connectors
MCP server for AI agent profiles and smart notes. 60+ coding prompt packs with expert personas.
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/markacianfrani/mcp-pattern-language'
If you have feedback or need assistance with the MCP directory API, please join our Discord server