codex-security

codex-security is an MCP server for Claude Code, Codex, Cursor, Gemini CLI, OpenCode from bex-co/bex-security. Its token cost is not measured, scanned A, a copy of codex-security, Apache-2.0.

A security-focused remote service for Codex, configured to run through the Model Context Protocol (MCP), a standard way for agents to use external tools.

In plain words
What is it for?
It is intended for Codex security work, but the available information is too thin to name specific supported jobs.
Why use it?
The available description lists its setup and environment variables but does not explain what security checks or results it provides.

MCP server for Claude CodeCodexCursorGemini CLIOpenCode

Written for no agent in particular: it speaks MCP, so any client can run it. Also seen: mentions Codex; listed in a Claude config.

Good fit It is intended for Codex security work, but the available information is too thin to name specific supported jobs.

Compare 6 mcp servers from other repositories ↓
Install with agentmods
npx agentmods add mcp/bex-co/bex-security/codex-security-codex-security

Installing this writes the configuration, not the program: `./scripts/launch_codex_security_mcp` has to be on your PATH already, or the server will not start.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/bex-co/bex-security

Installing this writes the configuration, not the program: `./scripts/launch_codex_security_mcp` has to be on your PATH already, or the server will not start.

Made for: Claude Code, Codex, Cursor, Gemini CLI, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codex-security

README.md
[![agentmods](https://agentmods.dev/badge/mcp/bex-co/bex-security/codex-security-codex-security/github.svg)](https://agentmods.dev/mcp/bex-co/bex-security/codex-security-codex-security)
Your own site
<a href="https://agentmods.dev/mcp/bex-co/bex-security/codex-security-codex-security"><img src="https://agentmods.dev/badge/mcp/bex-co/bex-security/codex-security-codex-security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codex-security

Your own site · 80×15
<a href="https://agentmods.dev/mcp/bex-co/bex-security/codex-security-codex-security"><img src="https://agentmods.dev/badge/mcp/bex-co/bex-security/codex-security-codex-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 98% copy Near-identical to another mod in the catalogue.
Security

Grade A, and why

codex-security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

98% identical to codex-security — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/codex-security/.mcp.json · 58 lines

What it actually says

{
  "codex-security": {
    "command": "./scripts/launch_codex_security_mcp",
    "args": [
      "--stdio"
    ],
    "cwd": ".",
    "env_vars": [
      "CODEX_HOME",
      "CODEX_SQLITE_HOME",
      "CODEX_API_KEY",
      "CODEX_SAFETY_IDENTIFIER",
      "CODEX_BROWSER_USE_NODE_PATH",
      "CODEX_CLI_PATH",
      "CODEX_ELECTRON_RESOURCES_PATH",
      "CODEX_MANAGED_PACKAGE_ROOT",
      "CODEX_MCP_NODE_PATH",
      "OPENAI_API_KEY",
      "OPENROUTER_API_KEY",
      "FIREWORKS_API_KEY",
      "AWS_BEARER_TOKEN_BEDROCK",
      "AWS_ACCESS_KEY_ID",
      "AWS_SECRET_ACCESS_KEY",
      "AWS_SESSION_TOKEN",
      "AWS_PROFILE",
      "AWS_REGION",
      "AWS_DEFAULT_REGION",
      "AWS_CONFIG_FILE",
      "AWS_SHARED_CREDENTIALS_FILE",
      "AWS_ROLE_ARN",
      "AWS_ROLE_SESSION_NAME",
      "AWS_WEB_IDENTITY_TOKEN_FILE",
      "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",
      "AWS_CONTAINER_CREDENTIALS_FULL_URI",
      "AWS_CONTAINER_AUTHORIZATION_TOKEN",
      "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",
      "PYTHON",
      "PYTHONUTF8",
      "CODEX_SECURITY_GIT",
      "CODEX_SECURITY_KNOWLEDGE_BASE",
      "CODEX_SECURITY_CONFIG_PATH",
      "CODEX_SECURITY_DEEP_SCAN_CONFIG_PATH",
      "CODEX_SECURITY_SCAN_ROOT",
      "CODEX_SECURITY_STATE_DIR",
      "CODEX_SECURITY_SURFACE",
      "HTTP_PROXY",
      "HTTPS_PROXY",
      "ALL_PROXY",
      "NO_PROXY",
      "SSL_CERT_FILE",
      "REQUESTS_CA_BUNDLE",
      "NODE_EXTRA_CA_CERTS",
      "XDG_CACHE_HOME"
    ],
    "startup_timeout_sec": 120,
    "tool_timeout_sec": 349200
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · +1 lines bebb2936dbe5
  2. 1mo ago Changed · +1 lines 52c84ebef2a1
  3. 1mo ago Changed · +1 lines 49847c97e35d
  4. 1mo ago First seen · 55 lines scan A ae298af141b8

Subscribe to this mod's changes

codex-security is an MCP server published in the GitHub repository bex-co/bex-security (51 stars, last pushed today), licensed Apache-2.0. Its token cost is not measured: an MCP server costs its tool schemas, not its config file. A static security scan graded it A with 0 findings. It is 98% identical to codex-security, differing in 2 lines, and is treated as a copy.