Claude Rules MCP Server
Serves 484 Claude Code skills and 17 global rules as MCP tools, enabling skill and rule retrieval, keyword search, and project-level rule discovery for any Claude client.
README
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="art/banner-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="art/banner-light.svg"> <img src="art/banner-light.svg" alt="Claude Rules MCP Server" width="800"> </picture> </p>
<p align="center"> Serve 484 skills and 17 rules to any Claude client via MCP </p>
<p align="center"> <a href="https://www.npmjs.com/package/claude-rules-mcp"><img src="https://img.shields.io/npm/dt/claude-rules-mcp.svg" alt="Total Downloads"></a> <a href="https://www.npmjs.com/package/claude-rules-mcp"><img src="https://img.shields.io/npm/v/claude-rules-mcp.svg" alt="npm version"></a> <a href="https://github.com/jeremykenedy/claude-rules-mcp-server/actions/workflows/tests.yml"><img src="https://github.com/jeremykenedy/claude-rules-mcp-server/actions/workflows/tests.yml/badge.svg" alt="Tests"></a> <img src="https://img.shields.io/badge/MCP-Compatible-8b5cf6" alt="MCP Compatible"> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License"></a> </p>
Table of Contents
- About
- Features
- Requirements
- Installation
- Quick Start
- Tools
- Configuration
- Docker Deployment
- Claude Desktop Setup
- Claude.ai Web Setup
- Testing
- License
About
An MCP (Model Context Protocol) server that reads Claude Code skills and rules from the filesystem and exposes them as tools. Supports HTTP and stdio transports with optional token authentication and Cloudflare Tunnel for remote access.
Features
- Serves 484 skills with progressive disclosure (metadata first, full content on demand)
- 17 global rules accessible individually or concatenated
- Project-level rule discovery across multiple repositories
- Keyword search across all skills and rules
- Monitor summary integration (Gmail and court monitors)
- Token authentication for HTTP transport
- Dual transport: HTTP for containers/web, stdio for Claude Desktop
Requirements
- Node.js 20+
- npm 10+
- Docker (for container deployment)
Installation
npm (recommended)
npm install claude-rules-mcp
Or run directly without installing:
npx claude-rules-mcp init
Manual
git clone https://github.com/jeremykenedy/claude-rules-mcp-server.git
cd claude-rules-mcp-server
npm install
npm run build
Quick Start
Run the interactive setup wizard:
npx claude-rules-mcp init
The wizard walks through transport selection, paths, and token auth. It creates a .env file with your configuration.
Then start the server:
npx claude-rules-mcp run
Tools
| Tool | Description |
|---|---|
rules_get_manifest |
Returns the full skills manifest (names and descriptions, not file contents) |
rules_list_skills |
Lists all skills with optional keyword filter |
rules_get_skill |
Reads the full SKILL.md for a specific skill by name |
rules_get_skill_references |
Lists and reads reference files for a skill |
rules_list_global_rules |
Lists all 17 global rule names |
rules_get_global_rule |
Reads a specific global rule by name |
rules_get_global |
Concatenates all 17 rule files into one response |
rules_get_project |
Reads project-level CLAUDE.md and .claude/rules/ |
rules_list_projects |
Scans for projects with .claude/ directories |
rules_search |
Keyword search across skill descriptions and rule contents |
read_monitor_summary |
Reads the latest Gmail/court monitor summary |
Configuration
| Variable | Default | Description |
|---|---|---|
TRANSPORT |
stdio |
http or stdio |
PORT |
3456 |
HTTP port |
CLAUDE_DATA_PATH |
/data/.claude |
Path to skills, rules, and manifest |
CLAUDE_PROJECTS_DIR |
/data/sites |
Path to project directories |
MCP_SECRET |
(none) | Token for HTTP authentication (recommended for remote) |
Docker Deployment
docker build -t claude-rules-mcp:latest .
docker run -d \
--name claude-rules-mcp \
--restart unless-stopped \
-p 3456:3456 \
-e TRANSPORT=http \
-e PORT=3456 \
-e CLAUDE_DATA_PATH=/data/.claude \
-e CLAUDE_PROJECTS_DIR=/data/sites \
-e MCP_SECRET=your-secret-token \
-v /path/to/.claude:/data/.claude:ro \
-v /path/to/sites:/data/sites:ro \
claude-rules-mcp:latest
Health check:
curl http://localhost:3456/health
Claude Desktop Setup
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"claude-rules": {
"command": "npx",
"args": ["-y", "claude-rules-mcp", "run"]
}
}
}
For remote via SSH:
{
"mcpServers": {
"claude-rules": {
"command": "ssh",
"args": [
"user@your-server",
"cd /path/to/server && TRANSPORT=stdio node dist/index.js"
]
}
}
}
Claude.ai Web Setup
Settings > Customize > Connectors > + > Add custom connector:
Name: Claude Rules
URL: https://your-domain.com/mcp?token=your-secret-token
Testing
# Health check
curl http://localhost:3456/health
# Test with token
curl -X POST "http://localhost:3456/mcp?token=your-token" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}'
License
This package is open-sourced software licensed under the MIT license.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。