Back to Browse

Rulecloud MCP Server

Developer ToolsUse Caution3.5MCP RegistryRemote
Free

Server data from the Official MCP Registry

Guardrail scans and rule generation for AI agents via scan_code, get_default_rules, and suggest_fix.

About

Guardrail scans and rule generation for AI agents via scan_code, get_default_rules, and suggest_fix.

Remote endpoints: streamable-http: https://rulecloud-production.up.railway.app/mcp/

Security Report

3.5
Use Caution3.5High Risk

This is a developer CLI that sends source code and an API key to a remote RuleCloud API, which fits its purpose. The main concern is that the API base URL and API key can be overridden by repo-controlled files (.rulecloud.json and .env), so opening an untrusted repository could leak the user's key to an attacker-controlled host. The MCP server and backend source were not included, so their auth and token handling could not be verified. Supply chain analysis found 16 known vulnerabilities in dependencies (1 critical, 9 high severity).

14 files analyzed · 22 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

File System Read

Reads files on the server that hosts it, not on your machine.

File System Write

Writes files on the server that hosts it, not on your machine.

env_vars

Applies to the server that hosts this plugin, not to your machine.

HTTP Network Access

Connects to external APIs or services over the internet.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "io-github-lemonbanan4-rulecloud": {
      "url": "https://rulecloud-production.up.railway.app/mcp/",
      "headers": {
        "X-API-Key": "<YOUR_API_KEY>"
      }
    }
  }
}

This server needs this header. Replace each <YOUR_...> placeholder with your own value:

  • X-API-Key (required): RuleCloud workspace API key (rc_live_…). Create at https://rulecloud.vercel.app/dashboard/keys

Documentation

View on GitHub

From the project's GitHub README.

RuleCloud Fail-Closed Guardrail Demo

RuleCloud

Guardrails for AI-speed engineering: Cloud Rulespacks, a CLI watch HUD, GitHub PR scans, and an MCP server for Cursor and other agents.

ComponentURL
Consolehttps://rulecloud.vercel.app
APIhttps://rulecloud-production.up.railway.app
MCP Registryio.github.lemonbanan4/rulecloud @ MCP Registry
npm CLIrulecloud

Repo: https://github.com/lemonbanan4/rulecloud (public)

Quick start (CLI)

npx rulecloud@latest init             # scaffold .guardrail/rules.yml + hooks
rulecloud status                      # rules sha, hook parity, audit + telemetry
rulecloud audit                       # workspace hardening scan
rulecloud learn --mock --dry-run      # synthesize a PreToolUse rule offline
rulecloud telemetry push --dry-run    # preview fleet audit upload

Optional cloud connect:

export RULECLOUD_API_KEY=rc_live_...   # from console → API Keys
rulecloud sync-hooks --pull            # pull approved fleet rules + recompile hooks
rulecloud watch                        # live violations HUD

Hook parity (CI): .github/workflows/rulecloud.yml (and guardrail.yml) fail PRs when hooks drift from .guardrail/rules.yml. After editing rules, run rulecloud sync-hooks and commit the updated hook files. Use rulecloud sync-hooks --cursor-plugin to emit .cursor-plugin/plugin.json.

Claude Code fail-closed: sync-hooks writes onFailure: "block" on PreToolUse and ConfigChange hooks (v2.1.295+). Anti-tamper self-protection blocks agent edits to guardrail/hook config unless self_protect: false. Cursor uses failClosed: true on the same guard.

Local API (Python backend)

Use the project venv — macOS pip on system Python 3.9 is often broken (pip._internal.operations.build missing).

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env               # NVIDIA_API_KEY, Supabase, etc.
uvicorn main:app --reload --port 8000

MCP (Cursor, Claude Code, VS Code)

Streamable HTTP — do not open /mcp/ in a browser (you will see a JSON-RPC “text/event-stream” message; that is normal). Use this setup page or configure your IDE:

Create rc_live_… at https://rulecloud.vercel.app/dashboard/keys, then add to .cursor/mcp.json:

{
  "mcpServers": {
    "rulecloud": {
      "url": "https://rulecloud-production.up.railway.app/mcp/",
      "headers": {
        "X-API-Key": "rc_live_YOUR_KEY"
      }
    }
  }
}

Tools: scan_code, get_default_rules, generate_guardrail_rules, suggest_fix (Pro).

Monorepo layout

PathStackDeploy
/FastAPI + guardrail CLI + MCPRailway (Dockerfile)
/webNext.js consoleVercel (web/)
/clirulecloud npm packagenpm

Env

  • Vercel: NEXT_PUBLIC_API_URL → Railway API URL (web/.env.example)
  • Railway: FRONTEND_URL → Vercel URL (CORS), LLM_* for AI Copilot

Demo repo

https://github.com/lemonbanan4/rulecloud-demo

Health check

curl -sS https://rulecloud-production.up.railway.app/health

Reviews

No reviews yet

Be the first to review this server!