The Nervous System is an MCP (Model Context Protocol) server that provides behavioral enforcement for LLMs. It exposes 11 tools and 4 resources that any MCP-compatible client can use to implement AI governance.
GitHub: github.com/levelsofself/mcp-nervous-system
Each tool returns structured data that can be used to build system prompts, enforce guardrails, or implement governance workflows.
{ reason: "string" }{ valid: boolean, entries: number, broken_at: number|null }{ task: "string", max_turns: number } Response: { dispatched: boolean, pid: number, log: "filepath" }| URI | Name |
|---|---|
nervous-system://framework | The Nervous System Framework |
nervous-system://quick-start | Quick Start Guide |
nervous-system://rules | The 7 Core Rules |
nervous-system://templates | Templates |
{
"mcpServers": {
"nervous-system": {
"command": "npx",
"args": ["-y", "mcp-nervous-system"]
}
}
}
claude mcp add nervous-system npx mcp-nervous-system
# Get complete framework
curl -X POST http://localhost:3475/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get_framework",
"arguments": {}
},
"id": 1
}'
| Problem | Rule | Mechanism |
|---|---|---|
| Context loss between sessions | Hand Off / Write Progress | Disk-based handoff files, mandatory before session end |
| Silent failures | Write Progress | Progress noted before each action; if timeout, last state visible |
| Goal drift / tunnel vision | Step Back | Forced reflection every N messages, non-optional |
| File damage / overreach | Untouchable + Preflight | Shell script blocks edits to protected files, logs violations |
| Debug loops / rabbit holes | Dispatch Dont Do | Tasks taking 2+ messages dispatched to background agents |
| Unauthorized changes | Ask Before Touching | Logic changes require human approval; data changes can proceed |
From the live Palyan AI deployment (February 28 - March 5, 2026):
| Metric | Value |
|---|---|
| Violations caught | 56 |
| Edits blocked by preflight | 32 |
| Stale handoff warnings | 24 |
| Unique files protected | 13 |
| Rules bypassed | 0 |
| Processes monitored | 22 |
| Tools available | 11 |