Nura MCP Policy Interceptor
This server acts as an MCP policy interceptor, enforcing governance guardrails on tool executions. It provides two built-in tools: apply_deal_discount (apply a percentage discount to a deal, with a configurable upper limit on the discount percentage) and delete_database_record (permanently purge a database record). The policy interceptor can block forbidden tools (e.g., delete_database_record), require human approval for sensitive operations (e.g., apply_deal_discount), and enforce numeric parameter bounds (e.g., max discount percentage). Policies are loaded dynamically from external JSON or YAML files, and every tool evaluation is audited with a detailed log entry. The server can be used as a drop-in wrapper for existing MCP servers or as a standalone server over stdio.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Nura MCP Policy InterceptorEvaluate tool call issue_refund with amount 2000"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Nura MCP Policy Interceptor
A lightweight, deterministic governance and policy enforcement gateway for Model Context Protocol (MCP) servers.
Install
npm install mcp-policy-interceptorRequires Node.js 20 or later and @modelcontextprotocol/sdk 1.26 or later. npm installs the SDK peer automatically when it is not already present.
Protect an existing MCP tools/call handler in three lines:
import { createPolicyInterceptor } from "mcp-policy-interceptor";
const protect = await createPolicyInterceptor("./policy.yaml");
server.setRequestHandler(CallToolRequestSchema, protect(callToolHandler));The wrapped handler runs only when the policy returns ALLOW. BLOCK and REQUIRE_APPROVAL requests return MCP errors without invoking application code. Pass a policy object, a PolicyEngine, or a path to a .json, .yaml, or .yml file.
Related MCP server: @vaibot/mcp-server
Enterprise Governance & Pilot Program
mcp-policy-interceptor is architected as a deterministic, cross-language policy sidecar/proxy for Model Context Protocol (MCP) servers.
We are currently collaborating with engineering teams and enterprise architects to implement runtime write-path protection, asynchronous Human-in-the-Loop (HITL) approval webhooks, and immutable audit trails.
📊 Take our 60-second survey: AI Agent Security Survey
📬 Discuss an Enterprise Pilot: Open an issue or contact
horvathkit@gmail.com
Features
Hard Guardrails: Instantly drop forbidden tool execution requests before hitting systems of record.
Dynamic Parameter Bounds: Intercept requests that exceed numerical thresholds (e.g., discounts, spend limits).
Human-in-the-Loop Hooks: Pause high-risk operations and surface human review requests.
Audit Telemetry: Cryptographic-ready logging for all agent-tool evaluations.
Demo CLI
npx mcp-policy-interceptor --policy ./policy.yamlThe demo CLI uses MCP stdio transport and is intended to be launched by an MCP client.
External Policy Files
Pass a JSON or YAML policy at startup to update rules without recompiling TypeScript:
node dist/cli.js --policy ./policy.json
# The npm equivalent passes arguments after --
npm start -- --policy ./policy.yamlJSON example:
{
"forbiddenTools": ["delete_database_record", "purge_crm_contacts"],
"requireApprovalTools": ["issue_refund", "update_deal_stage"],
"maxParamLimits": {
"discountPercentage": 20,
"amount": 1000
}
}YAML example:
forbiddenTools:
- delete_database_record
- purge_crm_contacts
requireApprovalTools:
- issue_refund
- update_deal_stage
maxParamLimits:
discountPercentage: 20
amount: 1000Supported extensions are .json, .yaml, and .yml. Relative paths are resolved from the process working directory. Missing, malformed, or schema-invalid policy files stop startup with an error. If --policy is omitted, the built-in policy is used.
Development
npm install
npm testVerification
npm testThe test command builds into dist/ and verifies:
Governance decisions use only
ALLOW,BLOCK, andREQUIRE_APPROVAL.Forbidden tools and out-of-bounds parameters return policy failures without invoking the target executor.
Every evaluated tool request emits a
[GOVERNANCE AUDIT LOG]entry with its timestamp, decision, tool name, and reason.The compiled stdio server enforces built-in and external policy behavior through an MCP client.
Maintenance
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceTurns any web API into a governed, agent-ready MCP server with lockfile-based approval, fail-closed enforcement, and full audit trail.MIT

@vaibot/mcp-serverofficial
FlicenseAqualityDmaintenanceGovernance circuit-breaker MCP server that enables AI agents to request risk-based decisions, approve or deny actions, and finalize outcomes with full audit receipts.4- AlicenseNot gradedqualityCmaintenanceA security gateway for MCP servers that enforces policy checks including role-based access, argument constraints, injection scanning, and PII redaction on both tool arguments and results, with tamper-evident audit logging.MIT
- AlicenseNot gradedqualityBmaintenanceA policy-enforcing MCP gateway that intercepts all tool calls to downstream MCP servers, applying allow/deny/ask rules with human approval and audit logging for safe access to dangerous tools.23MIT
Related MCP Connectors
Remote MCP for Copilot CLI switch gate MCP, structured receipts, audit logs, and reviewer-ready evid
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Katalinhorvath-blip/mcp-policy-interceptor'
If you have feedback or need assistance with the MCP directory API, please join our Discord server