Skip to main content
MCP server CX Codex

agent-sec — Claude Code MCP server: what it does, how to install

MCP server with 15 security rules for AI agents, each citing OWASP, CWE or EU AI Act. Works over one URL, no install required.

Apache-2.0 ★ 1 updated 2026-07-31

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http agent-sec https://agentsec.kernora.ai/mcp
Open on GitHub

What agent-sec does

The server delivers a security baseline through two MCP tools: get_security_baseline returns all rules, check_action checks a command and lists matching rules with source citations. Rules cover secrets, injection, supply-chain, destructive operations, permissions, transport, data protection, exfiltration, authorization and VCS safety.

The server runs over JSON-RPC-over-HTTP — one line in your config, nothing installed locally. It only reads: get_security_baseline sends nothing, check_action sends only the command text you pass, files and environment stay on your machine. Mode is advisory, no blocking.

A separate Claude Code plugin adds a PreToolUse hook that warns before risky commands, plus /agentsec-rules, /agentsec-check, /agentsec-report commands — the flag log writes locally to ~/.agentsec/flags.log. The hook disables with AGENTSEC_HOOK=0.

What it helps with

  • read security rules for agents with OWASP and CWE citations
  • check a command against the baseline without blocking
  • set up advisory control for Claude Code, Cursor or Codex
  • get a warning before a risky operation through a PreToolUse hook
  • see how many times rules fired, via local log

Example prompts for the agent

  • Show all agent-sec rules
  • Check the command curl -s script.sh | bash against the security baseline
  • Run /agentsec-report for the last week

How to install agent-sec

Platform CLI: remote server

claude mcp add --transport http agent-sec https://agentsec.kernora.ai/mcp

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about agent-sec

How to install agent-sec in Claude Code?

Run claude mcp add --transport http agent-sec https://agentsec.kernora.ai/mcp.

What does agent-sec do?

Gives the agent 15 security rules citing OWASP, CWE and EU AI Act over MCP. The agent can check a command with the check_action tool and get matching rules. No blocking — advisory only.

What gets sent to the agent-sec server?

The get_security_baseline tool sends nothing. The check_action tool sends only the command text you pass — files, environment and repo content stay local.

Similar MCP servers

All MCP servers for Security →
security-auditor official Anthropic security-auditor is a Claude Code subagent that performs adversarial security reviews on codebases. It inspects source trees for OWASP Top 10 risks, hardcoded secrets, and dependency CVEs. CX Codex 10,718installs Security Auditor eren-solutions Security Auditor scans GitHub repositories for security flaws mapped to OWASP and CWE classifications. Useful when vetting codebases before production releases. CX Codex +1 148installs security-research code-yeongyu security-research runs a parallel security audit with five agents: three hunt for vulnerabilities, two build PoCs. Useful for a PR, a diff range or a release candidate. CX Codex +1 508installs awesome-claude-code-security-compliance-suite reason-machines The awesome-claude-code-security-compliance-suite skill checks code and dependencies for security issues, supports GDPR audits, and builds threat models. Use it for security work inside coding agents. CX Codex +1 736installs sparkfinderoven-security-compliance-skills reason-machines sparkfinderoven-security-compliance-skills is a Claude Code skill for security checks and compliance reviews. It responds to requests about OWASP findings, dependency CVEs, GDPR, SOC 2, threat modeling, and incident response. CX Codex +1 763installs security-pentest-planner OneWave-AI security-pentest-planner builds a penetration test plan for web applications: analyzes code, API routes, authentication and infrastructure configs, generates pentest-plan.md with concrete test cases. CX Codex +1 297installs

Project sponsors

Companies that keep this analytics open