Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ”’ Security
  3. Arai
Arai logo
Health: ActiveRecent health check succeeded.Last checked 9/7/2026, 3:31:11 AM

Arai

User RatingsBe the first to rate and review this MCP server!
View Repository7 GitHub StarsTotal stargazers on GitHub for the source repository (7 stars).Visit Website
securitypolicy-enforcementmcpai-coding-assistantcompliance

Enforces AI coding assistant rules from instruction files by blocking prohibited tool calls and logging compliance locally.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

One-click editor setup isn’t available for this listing yet β€” we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ
No confirmed setup config for this listing yet. We only publish a config block when the install details come from the project itself β€” its README, its docs, or a verified owner. We haven’t found those for taniwhaai/arai, and we’d rather show nothing than a guess you’d paste into your client. Follow the project’s own setup instructions for the current steps.
Install Directory Badge Claim listing AlternativesπŸ”’ More in Security

Overview

This server converts instruction files like CLAUDE.md and .cursorrules into enforceable guardrails for AI coding assistants. It blocks tool calls that violate prohibitive rules and injects advisory context for softer constraints. The server tracks compliance per rule in a tamper-evident local audit log and supports multiple MCP clients including Claude Desktop, Cursor, Windsurf, and Cline. Use it to enforce coding policies automatically without maintaining separate YAML rule files.

Use cases

β€’Block AI tool calls violating project-specific coding policies
β€’Inject advisory constraints from instruction files during AI tool use
β€’Audit AI assistant compliance with coding rules in local logs
β€’Enforce rules across multiple MCP clients like Claude Desktop and Cursor
β€’Automatically update rules on instruction file changes or directory switches

Key features

β€’Derives rules from existing instruction files (CLAUDE.md, .cursorrules, etc.)
β€’Blocks tool calls on prohibitive predicates (never, forbids, mustnot)
β€’Injects advisory context for non-blocking rules
β€’Correlates PreToolUse and PostToolUse events for compliance verdicts
β€’Supports native hooks for Claude Code and Grok Build
β€’Provides MCP tools for runtime rule management and audit log access

Capabilities & Tool Schemas

Inspect callable tools, capabilities, and parameters exposed to AI agents by Arai.

Extracted Tool Capabilities
Derives rules from existing instruction files (CLAUDE.md, .cursorrules, etc.)
Blocks tool calls on prohibitive predicates (never, forbids, mustnot)
Injects advisory context for non-blocking rules
Correlates PreToolUse and PostToolUse events for compliance verdicts
Supports native hooks for Claude Code and Grok Build
Provides MCP tools for runtime rule management and audit log access

Documentation Overview

Arai

An instruction file is advice β€” the model can read CLAUDE.md and still force-push anyway. Arai turns instruction files (CLAUDE.md, AGENTS.md, .cursorrules, and others) into enforcement via native hooks: rules derived from prohibitive language block the tool call outright, advisory rules inject the relevant constraint at the point it applies, and a tamper-evident audit log records, per rule, whether the model actually complied.

Arai blocking a forbidden command at the PreToolUse hook

Quick Start

Terminal
curl -sSf https://arai.taniwha.ai/install | sh

cd your-project
arai init

That's it. Arai discovers your instruction files, extracts the rules, classifies their intent, scans your codebase for context, and sets up native hooks so guardrails fire at the right moment.

What It Does

When your AI coding assistant (Claude Code or Grok Build) is about to do something your rules cover, Arai injects the relevant guardrail β€” right when it matters. Rules derived from prohibitive predicates (never, forbids, must_not) actually block the tool call instead of just advising.

Code
You: "Create a new database migration"

  PreToolUse: Write migrations/versions/001_add_users.py
  β†’ Arai: deny
    reason: "Alembic never: hand-write migration files"
            [from your rules:12, layer-1 imperative]

Assistant: "I should use alembic revision --autogenerate instead..."

Rules only fire when relevant. No noise on ls. No repeating principles already in your instruction files.

Every firing is written to a local audit log, and every PostToolUse is correlated with the matching PreToolUse to produce a compliance verdict β€” so you can measure whether the model actually honours the rules you wrote.

How It Works

  1. Discovers instruction files in your project and home directory
  2. Extracts rules by pattern-matching imperative language ("never", "always", "don't", "must")
  3. Classifies each rule's intent β€” what action it governs, which tools it applies to, when it should fire
  4. Scans your codebase with tree-sitter to understand which tools own which directories
  5. Tracks session state β€” knows if you've already run tests before pushing
  6. Fires only relevant rules at the right moment via native hooks (where supported)

Supported Instruction Files

FileToolEnforcement
CLAUDE.mdClaude CodeHooks (block + advise)
AGENTS.md / Agents.mdGrok Build (native)Hooks (block; advise best-effort)
~/.claude/CLAUDE.mdClaude Code (global)Hooks (block + advise)
~/.grok/ AGENTS.* filesGrok Build (global)Hooks (block; advise best-effort)
.cursorrules / .cursor/rulesCursorMCP (advise)
.windsurfrulesWindsurfMCP (advise)
.github/copilot-instructions.mdGitHub CopilotIngest only

Rules from every file are parsed, classified, and stored the same way β€” but enforcement strength depends on what surface the assistant exposes.

  • Claude Code and Grok Build both support real PreToolUse hooks, so Arai can issue deny decisions and actually block tool calls.
  • On Grok Build, block is load-bearing (decision: deny + exit 2) when the host invokes hooks (verified on 1.0.0 headless with --trust; project hooks stay inactive until the folder is trusted). Advisory text is still emitted as additionalContext on allow responses and recorded in the audit log, but Grok's documented PreToolUse contract only specifies allow / deny+reason β€” so warn/inform injection into the model is best-effort until the host surfaces that field. Treat block as the guarantee; treat advise as optional context. See docs/upstream/grok-hooks-reverification-1.0.0.md.
  • Cursor and Windsurf are MCP clients today β€” they get strong advisory enforcement via the MCP server.
  • GitHub Copilot currently has no live enforcement surface; the file is still ingested for arai stats, arai diff, and the audit log.

Arai hooks several more events alongside the standard tool-call events (when the assistant supports them) so the rule set stays accurate to the live working tree:

  • FileChanged + InstructionsLoaded β€” when an instruction file (CLAUDE.md, rules-dir, memory file, ...) is edited on disk or loaded into context, Arai spawns an arai scan in the background. The next tool-call hook sees the updated guardrails β€” no manual rescan.
  • CwdChanged β€” when Claude cds into a different directory (monorepo navigation), Arai re-scans rooted at the new directory so the next tool call matches against the right project's rules.
  • PostToolBatch β€” when Claude does a batch of parallel tool calls, Arai correlates each call individually against any PreToolUse firings in the same session, so per-rule compliance verdicts (Obeyed / Ignored / Unclear) stay accurate on parallel workloads.

Smart Matching

Arai doesn't just do keyword matching. It understands your rules:

  • Intent classification β€” "never hand-write migration files" only fires on Write, not Edit (editing existing migrations is fine)
  • Code graph β€” writing to migrations/versions/ triggers alembic rules even if the file doesn't mention alembic, because sibling files import it
  • Content sniffing β€” detects from alembic import op in file content being written
  • Session awareness β€” "never push without running tests" suppresses after tests have been run
  • Timing routing β€” domain rules fire on tool calls, principles stay silent (already in CLAUDE.md)
  • Broad imperative coverage β€” recognises never/always/don't/must, should/shouldn't, cannot/refuse, make sure/be sure, consider/recommend, bare No X prohibitions, conditional shapes (When X, do Y / Before X: do Y / If X β†’ do Y), and the section-aware Use X style-guide pattern. Severity mapping mirrors grammatical weight: should is Inform (soft), should not is Block (the writer chose to call out a specific prohibition).

Why not just an instruction file?

An instruction file aloneWith Arai
Advice the model can skip under pressureProhibitions deny the tool call at the hook
No record of what was ignoredHash-chained audit log; arai audit --verify
You hope it listenedPer-rule obeyed / ignored / unclear verdicts
Rewrite rules into a new policy formatYour existing files are the policy

Commands

bash
arai init                  # Discover, extract, classify, scan, set up hooks
arai status                # Show what's being enforced
arai guardrails            # List all active rules
arai why "git push --force" # Explain which rules would fire (dry-run, no audit write)
arai scan                  # Re-scan instruction files
arai scan --code           # Also scan source code (tree-sitter AST)
arai scan --enrich-llm     # Enhance rules via LLM CLI
arai scan --enrich-api     # Enhance rules via API (OpenAI-compatible)
arai add "Never X"         # Add a rule manually
arai audit                 # Inspect the local log of rule firings
arai audit --outcome=ignored # Compliance verdicts where the model ignored a rule
arai audit --rule alembic  # Filter audit by rule subject/predicate/object substring
arai audit --verify        # Verify the SHA-256 hash chain across every day-bucket
arai stats                 # Aggregate audit log β€” top rules, compliance, token economics
arai stats --by-rule       # Just the per-rule compliance + token economics
arai severity alembic block # Pin a rule's severity (incremental deny rollout)
arai severity --reset alembic # Drop the override; severity reverts to predicate-derived
arai diff CLAUDE.md        # Preview rule-set delta before saving an edit
arai test scenarios.json   # Replay synthetic hook scenarios against rules
arai record --since=1h     # Capture recent firings as a scenario skeleton
arai lint CLAUDE.md        # Parse a file and preview extracted rules
arai trust                 # Manage URLs trusted for shared-policy extends
arai mcp                   # Run the MCP server (stdio) for agent-authored guards
arai upgrade --full        # Switch to full binary (with ONNX enrichment)

Compliance & audit

Beyond firing rules, Arai produces a tamper-evident local record of every guardrail decision and correlates it with what the model actually did. This is what tech leads and compliance reviewers want to see β€” the trail behind the enforcement.

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Security View all alternatives
  • MCP Firewall logoMCP Firewall

    Deterministic security proxy (iptables for MCP) that intercepts tool calls, enforces YAML policies, scans for secret leakage, and logs everything. No AI, no cloud.

    πŸ”’ Security4 views
    Compare vs MCP Firewall β†’
  • Shellward logoShellward

    AI Agent Security Middleware & MCP Server with 8-layer defense including prompt injection detection, DLP data flow tracking, command blocking, and PII detection. 7 MCP tools, zero dependencies.

    πŸ”’ Security2 views
    Compare vs Shellward β†’
  • Agentward logoAgentward

    Permission control plane for AI agents. MCP proxy that enforces least-privilege YAML policies on every tool call, classifies sensitive data (PII/PHI), detects dangerous skill chains, and generates compliance audit trails. Supports stdio and HTTP proxy modes.

    πŸ”’ Security2 views
    Compare vs Agentward β†’
  • Shield logoShield

    Local guardrail proxy for AI coding agents. Wraps any MCP server (stdio or Streamable HTTP) and blocks destructive tool calls β€” DROP TABLE, rm -rf, force-push β€” before they execute. MCP supply-chain protection: TOFU tool-catalog pinning against rug pulls, plus tool-description and tool-result scanning for tool poisoning and prompt injection. 51 starter rules, approval gates, audit logging. Single binary, Apache-2.0.

    πŸ”’ Security3 views
    Compare vs Shield β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars
7
Stargazers on the source repository.
Last commit
29d ago
Most recent push to the default branch.
Directory activity
1 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Arai

It supports CLAUDE.md, AGENTS.md, .cursorrules, .windsurfrules, and .github/copilot-instructions.md among others, with enforcement strength depending on the AI assistant's capabilities.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewArai AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/taniwhaai-arai?style=directory)](https://allmcps.com/mcp/taniwhaai-arai)
HTML Embed
<a href="https://allmcps.com/mcp/taniwhaai-arai"><img src="https://allmcps.com/api/badge/taniwhaai-arai?style=directory" alt="Arai on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ”’Security
PricingFree
More technical detailsExpand β–Ύ
AuthNo auth required
LicenseMIT
ClientsClaude Desktop, Cursor, Windsurf, Cline / VS Code
Last updatedAug 13, 2026
8/9 checks healthy over the last 31d
Views1
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars7
GitHub Star CountTotal stargazers on GitHub representing community popularity (7 stars).
Last commit29d ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Aug 13, 2026
49Quality signal: Fair Β· 49/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools21/30
Adoption & activity6/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ”’ Security β†’Best MCP servers for Security β†’Alternatives to Arai β†’Install in Claude DesktopInstall in CursorInstall in VS Code