Agent Rules

Fetches coding rules and best practices on-demand from GitHub repositories, providing remote access to development standards with

4regab 13 ↓ 2.7k
Claude CodeClaude DesktopGeneric
View source ↗

Agent Rules MCP server by 4regab that enables AI assistants to fetch coding rules and best practices on-demand from GitHub repositories, eliminating the need for local rule files by providing remote access to development standards. Built with TypeScript and the MCP SDK, the implementation offers two core tools: get_rules for retrieving specific rule domains and list_rules for discovering available domains, with intelligent caching, rate limit handling, and support for multiple file formats including .md, .mdc, .chatmode.md, and .instructions.md files. The server includes fallback mechanisms for unauthenticated GitHub API access, metadata extraction from YAML frontmatter, and can be configured to work with any GitHub repository containing rule collections, making it valuable for development teams maintaining consistent coding standards across projects, AI agents requiring context-specific development guidance, and organizations wanting to centralize and share their coding best practices without manual file management.

Source

Repository: https://github.com/4regab/agent-rules-mcp

Maintain Agent Rules?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[Agent Rules on getagentictools](https://getagentictools.com/mcp/4regab-agent-rules-mcp?ref=badge)