What is NOVA MCP Security Gateway?
The NOVA MCP Security Gateway is a prompt-validation service that runs first in your Model Context Protocol (MCP) chain. It loads Nova rules (in .nov format), checks each incoming prompt against these rules, and blocks any that match high-severity security or jailbreak patterns. It is intended for developers who need to guard AI systems against malicious prompts.
How to use NOVA MCP Security Gateway?
Install dependencies with pip install -r requirements.txt, create a .env file with your LLM credentials, and place your Nova rule files in the nova_rules/ directory. Run the server via python nova_mcp_server.py. Optionally use the provided client.py to test. To enforce the gateway, include the recommended system prompt instructing your LLM to call the MCP for every prompt before responding.
Key features of NOVA MCP Security Gateway
- Rule-based filtering using keywords, semantics, LLM patterns
- Configurable rules directory (
nova_rules/)
- Structured JSON logging of authorized and blocked prompts
- Supports OpenAI, Anthropic, Azure OpenAI, Ollama, Groq
- Returns NOT AUTHORIZED with rule details on match
Use cases of NOVA MCP Security Gateway
- Prevent jailbreak attempts before AI response generation
- Enforce security policies on user prompts in MCP chain
- Audit and log blocked prompts for compliance
- Validate prompts using custom NOVA rules
コメント