ERDL MCP Server
Enforces deterministic rules for AI agents with 30 built-in presets and unlimited personal rules to ensure consistent behavior.
README
ERDL MCP Server
Deterministic rules for AI Agents. Say it once. Never repeat.
ERDL (Entity-Rule Definition Language) gives your Agent deterministic rules. 30 built-in presets. Unlimited personal rules. Free forever.
Why ERDL?
| Without ERDL | With ERDL |
|---|---|
"Don't use any" — forgotten in 5 turns |
Rules enforced deterministically, every tool call |
| "Write shorter sentences" — ignored | Writing rules fire before every output |
| "Confirm before adding deps" — skipped | Blocked until you confirm |
| "Why did you do that?" — no answer | erdl_explain shows the full decision trail |
Quick Start
npx -y @openoba-ai/erdl-mcp
30 rules active immediately. No account. No configuration. No API key.
中文用户:
npx -y @openoba-ai/erdl-mcp --lang zh
Free vs Pro
| Free | Pro | |
|---|---|---|
| 5 MCP Tools | ✅ | ✅ |
| 30 Preset Rules | ✅ | ✅ |
| Unlimited Personal Rules | ✅ | ✅ |
| Chinese / English | ✅ | ✅ |
| All 11 Operators | ✅ | ✅ |
| MIT Open Source | ✅ | ✅ |
| Execution Rings 1–2 (REQUEST_HUMAN, ESCALATE, ROLLBACK, QUARANTINE) | — | ✅ |
| Guardian Agent Role (监管者模式) | — | ✅ |
| Audit Export (OCSF / OTLP) | — | ✅ |
| Team Rules (组织级规则共享) | — | ✅ |
| Dashboard (规则命中统计) | — | ✅ |
| Enterprise Compliance Packs (GB/Z 185, NIST, EU AI Act) | — | Enterprise |
One-command Install
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/OpenOBA/erdl-mcp-server/master/scripts/install.sh | bash
# Windows (PowerShell)
iwr https://raw.githubusercontent.com/OpenOBA/erdl-mcp-server/master/scripts/install.ps1 | iex
Why ERDL vs SKILL.md / Prompt Rules?
| Prompt-Based Rules | ERDL MCP Server | |
|---|---|---|
| Execution | LLM "tries" to follow | Deterministic engine — guaranteed |
| Visibility | Invisible, can't tell if it worked | erdl_explain shows every decision |
| Reliability | LLM may ignore or forget | Zero hallucination — condition match is mathematical |
| Testing | Manual | erdl_simulate with 3 auto-scenarios |
| Portability | Single platform | All MCP-compatible Agents |
ERDL rules don't suggest. They don't hope. They enforce.
What's Included
30 Built-in Rules
| Category | Rules | Scope |
|---|---|---|
coding |
10 | TypeScript quality, Git discipline, dependency hygiene |
engineering |
10 | Workflow discipline: honesty, no shortcuts, pipeline gates |
writing |
7 | Tone, formatting, clarity |
design |
3 | Tailwind-first, responsive, accessible |
5 MCP Tools
| Tool | Purpose |
|---|---|
erdl_evaluate |
Action Guard — check rules before every tool call |
erdl_simulate |
Test a rule against 3 scenarios before creating |
erdl_create_rule |
Create a rule from natural language |
erdl_list_rules |
List all active rules |
erdl_explain |
Full decision trail for any action |
MCP Resources
| Resource | Content |
|---|---|
erdl://rules/list |
All rules as JSON |
erdl://status |
Server runtime status |
Installation
Any MCP Client
{
"mcpServers": {
"erdl": {
"command": "npx",
"args": ["-y", "@openoba-ai/erdl-mcp@latest"]
}
}
}
Or let ERDL generate the config for your client:
npx @openoba-ai/erdl-mcp@latest --setup
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or the equivalent path on your OS.
Cursor
Add to .cursor/mcp.json in your project root.
OpenClaw
openclaw mcp set erdl '{"command":"npx","args":["-y","@openoba-ai/erdl-mcp@latest"]}'
VS Code / GitHub Copilot
Add to .vscode/mcp.json or the Copilot MCP configuration.
Creating Your First Rule
You: "Never use `any` in TypeScript."
Agent: 1. erdl_simulate → tests the rule against 3 scenarios
2. erdl_create_rule → saves to ~/.openoba/rules/
3. Rule is now active. Next `any` will be blocked.
You: "Why did you reject my code?"
Agent: erdl_explain → shows every rule that fired
Or create rules manually in ~/.openoba/rules/:
rules:
- id: MY-001
name: no_console_log
description: Don't commit console.log statements
category: coding
triggers: [write_file, edit, apply_patch]
when: "tool.args.path match \"\\.tsx?$\""
then: DENY "Remove console.log before committing"
priority: 10
enabled: true
📚 Full tutorial: Create Your First ERDL Rule → (English)
CLI Reference
npx @openoba-ai/erdl-mcp@latest # Start MCP server (always latest)
npx @openoba-ai/erdl-mcp@latest --lang zh # Chinese mode
npx @openoba-ai/erdl-mcp@latest --pro-key sk-xxx # Activate Pro license
npx @openoba-ai/erdl-mcp@latest --upgrade # Upgrade to latest
npx @openoba-ai/erdl-mcp@latest --uninstall # Clean removal
npx @openoba-ai/erdl-mcp@latest --help # Full usage
Stuck on an old version? npx caches your first install. If
--versionshows an older release, clean the cache:npm cache clean --forceThen re-run:
npx @openoba-ai/erdl-mcp@latest
Run from Source
git clone https://github.com/OpenOBA/erdl-mcp-server.git
cd erdl-mcp-server
npm install
npm run build
node bin/erdl-mcp.js --version
License
Built by AI + Human. Deterministic architecture, not prompt engineering.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。