Pre-tool policy enforcement + JSONL audit for AI agents. Apache 2.0.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
The missing security, control, and observability layer for the agentic era.
Traditional security tools were built for malware. AI agents were given legitimate power through tools and APIs. AISentinel provides the missing security, control, and observability layer.

AISentinel β an open-source MCP server that protects AI agents at runtime. Built by Kabzhanov / BizDNAi, the team behind the AI Trust Index.
AI agents now have shell, browsers, file systems, and API keys. They are
legitimate processes β antivirus cannot see them. A single indirect
prompt injection in a PDF or email can pivot into mass data exfiltration
through ordinary tools like Bash and Email_send.
AISentinel closes that gap: it runs as an MCP server in front of every tool call, evaluates YAML policies, logs every decision, and ships an audit trail compatible with the AI Trust Index.
See docs/SECURITY_AUDIT.md for the full threat model.
go install gives you a standalone binary β you do not need to clone
this repo or pass --policy to get started. aisentinel serve with no
flags loads a built-in default policy (embedded in the binary at build
time), balanced for general use: blocks obvious secrets-in-args and
destructive commands, requires approval for network calls and bulk reads.
To use your own policy instead, pass --policy /path/to/your.yaml or set
$AISENTINEL_POLICY (see Policy resolution below).
(--policy policies/default.yaml here is explicit and optional β omitting
it works too, and falls back to the same built-in default described above.)
Download from https://github.com/Kabzhanov/AISentinel/releases/latest.
Available for linux/amd64, linux/arm64, darwin/amd64, darwin/arm64,
windows/amd64.
Then restart your MCP client and ask your agent to call any tool β
AISentinel will gate every call and write a JSONL audit trail to
~/.aisentinel/events-YYYY-MM-DD.jsonl.
Both aisentinel serve and aisentinel-sidecar resolve which policy to
load in this order, stopping at the first one that applies:
--policy /path/to/file.yaml β if given, it must load; a missing or
invalid file is a hard error.$AISENTINEL_POLICY β same contract as --policy if set../policies/default.yaml relative to the current directory, if that
file exists (this is what you get inside a clone of this repo).go install ... && aisentinel serve work from any
directory, with no repo checkout and no flags. When this path is used,
the binary prints using built-in default policy to stderr so it's
never a silent surprise.default, strict, audit-only (see policies/).aisentinel serve (Claude Code, Claude Desktop, Cursor, Cline, Continue).https://mcp.aisentinel.bizdnai.com/mcp (SaaS, OAuth via BizDNAi).aisentinel subcommands (serve, validate-policy, policies, events, version).github.com/Kabzhanov/AISentinel/internal/policy for embedding.See policies/default.yaml for the full default policy.
Match modes: tool_name, tool_name_regex, tool_args_regex, tool_args_contains. Multiple matchers AND-combine.
AISentinel generates the observability data required for AI Trust Index assessments:
Run aisentinel_get_ati_snapshot to get a JSON blob ready to paste into
the AI Trust Index cabinet.
AISentinel is available under two licensing options:
Apache License 2.0 (Open Source)
Commercial License
By contributing to this repository, you agree to license your contributions under Apache 2.0.
See LICENSE and COMMERCIAL_LICENSE.md.
Requirements: Go 1.22+
Verify:
See docs/event-schema.md. One JSON object per line
in the JSONL log:
See CONTRIBUTING.md. By contributing you agree to license your contribution under Apache 2.0.
aisentinel scan (MCP-config auditor), mobile connectors.Apache License 2.0. See LICENSE.
AISentinel is dual-licensed under Apache 2.0 and a commercial license. For commercial terms, contact kabzhanov@gmail.com.
By Kabzhanov / BizDNAi β creators of the AI Trust Index.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/aisentinel-by-bizdnai)<a href="https://allmcps.com/mcp/aisentinel-by-bizdnai"><img src="https://allmcps.com/api/badge/aisentinel-by-bizdnai?style=directory" alt="AISentinel by BizDNAi on AllMCPs" /></a>