# 皮质RMCP (`cortex-rmcp`)

> Rust MCP 服务器，用于家庭实验室日志、系统日志、Docker 日志、FTS 搜索和 AI 转录本关联。

- **Canonical URL:** https://syndipath.com/zh/mcp/cortex-rmcp
- **Runtime:** `npm` | **Transport:** STDIO | **License:** MIT | **Package:** `cortex-rmcp`
- **Upvotes:** 222 | **GitHub Stars:** 1420 | **Weekly Installs:** 8520
- **Security Note:** HTTP-200 在 NPM 注册表 (cortex-rmcp) 上验证；在工作区范围的 STDIO 子进程中使用 npx 执行。

## Quick CLI Setup
```bash
# Run directly via Node npx
npx -y cortex-rmcp

# Add to Claude Code CLI
claude mcp add -e CORTEX_TOKEN=${CORTEX_TOKEN} -e CORTEX_API_TOKEN=${CORTEX_API_TOKEN} cortex-rmcp -- npx -y cortex-rmcp
```

## MCP Manifest (`mcp.json`)
```json
{
  "mcpServers": {
    "cortex-rmcp": {
      "command": "npx",
      "args": [
        "-y",
        "cortex-rmcp"
      ],
      "env": {
        "CORTEX_TOKEN": "${CORTEX_TOKEN}",
        "CORTEX_API_TOKEN": "${CORTEX_API_TOKEN}"
      }
    }
  }
}
```

## Exposed MCP Tools
- `cortex_rmcp_audit_scan(target: string, severity?: string)`: Rust MCP server for homelab logs, syslog, Docker logs, FTS search, and AI transcript correlation.
- `cortex_rmcp_get_telemetry(window_minutes?: number)`: Summarizes high-priority alerts, stacktraces, or security policy findings.
