# arcanum-mcp

> arcanum-mcp is an open-source MCP server for security. Local, deterministic security scanners for AI coding agents over MCP. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Linux, macOS, Windows, VS Code
- **Repository:** https://github.com/a9320/arcanum-mcp
- **MCP Registry name:** io.github.a9320/arcanum-mcp
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-27

## About

Arcanum MCP gives an AI coding assistant five security checks that run entirely on the local machine. Text, code, Office files and dependency pins can be checked for prompt-injection patterns and known vulnerabilities without any model call or network request.

Each tool wraps a scanner from the arcanum-spark engine and returns a short summary: the top five findings plus counts. Audit tools can also write full SARIF, Markdown, JSON or HTML reports to a local folder. Coverage numbers for Office files and dependencies are reported so users can see what was actually scanned.

It suits developers who let agents read untrusted repositories, documents or tool output and want a repeatable check that does not depend on another LLM. The optional hypothesis ranker needs a separately downloaded checkpoint, and the full multi-agent pipeline is not part of this server.

## Features

- **Prompt injection scanning:** Checks pasted prompts, agent instructions and tool output for attempts to hijack an agent.
- **Code and config audit:** Looks for AI-specific injection patterns in code, comments, configuration and agent rule files.
- **Office document scanning:** Inspects Word, Excel and PowerPoint files for poisoned text layers at the container level.
- **Offline dependency checks:** Compares pinned dependency versions against a local OSV index and built-in vulnerability data.
- **Local report generation:** Writes SARIF, Markdown, JSON or HTML reports to a folder on the local machine.
- **Order-only hypothesis ranking:** Ranks candidate findings for verification using a Laya model without deleting any of them.

## Good for

- Screen untrusted repositories before an agent reads their files
- Check documents passed to an agent for hidden injected instructions
- Find pinned dependencies with known vulnerabilities in a project
- Prioritise which candidate security findings to verify first
- Produce SARIF or HTML scan reports for review

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add arcanum-mcp -- uvx arcanum-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "arcanum-mcp": {
      "command": "uvx",
      "args": [
        "arcanum-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "arcanum-mcp": {
      "command": "uvx",
      "args": [
        "arcanum-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "arcanum-mcp": {
      "command": "uvx",
      "args": [
        "arcanum-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "arcanum-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "arcanum-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add arcanum-mcp -- uvx arcanum-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.arcanum-mcp]
command = "uvx"
args = ["arcanum-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "arcanum-mcp": {
      "command": "uvx",
      "args": [
        "arcanum-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user arcanum-mcp uvx -- arcanum-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "arcanum-mcp": {
      "command": "uvx",
      "args": [
        "arcanum-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "arcanum-mcp": {
      "command": "uvx",
      "args": [
        "arcanum-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "arcanum-mcp": {
      "command": "uvx",
      "args": [
        "arcanum-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "arcanum-mcp": {
      "command": "uvx",
      "args": [
        "arcanum-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "arcanum-mcp": {
      "command": "uvx",
      "args": [
        "arcanum-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "arcanum-mcp": {
      "command": "uvx",
      "args": [
        "arcanum-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "arcanum-mcp": {
      "command": "uvx",
      "args": [
        "arcanum-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "arcanum-mcp": {
      "command": "uvx",
      "args": [
        "arcanum-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 5 names don't say. From the server's own tool labels and tool names; not verified by us.

- `pitax_scan`: Scans text for prompt-injection patterns.
- `code_audit`: Audits code snippets or local paths for AI-specific injection patterns.
- `docs_scan`: Scans Word, Excel and PowerPoint files or directories.
- `dep_scan`: Checks pinned dependencies against offline vulnerability data.
- `rank_hypotheses`: Orders candidate hypotheses by P(KEEP) using the Laya model.

## FAQ

### Does the server send code or prompts anywhere?

In the default stdio mode the content stays in the local process tree. The server has no telemetry and makes no network calls.

### Do I need an API key or model endpoint?

No environment variables are required and no model calls are made. The ranker needs an optional downloaded checkpoint.

### How is arcanum-mcp installed?

It runs with uvx arcanum-mcp or pip install arcanum-mcp, and a sample MCP client configuration is provided.

### What are the limits?

Snippets are capped at 20,000 characters, scans read up to 200 files of 512 KB each, and vendor directories are skipped.

### Is arcanum-mcp free?

Yes. arcanum-mcp is open source, so you can use and self-host it for free.

### How do I add arcanum-mcp to Claude Code?

Run this command in your terminal: claude mcp add arcanum-mcp -- uvx arcanum-mcp

### What are the best alternatives to arcanum-mcp?

The closest alternatives to arcanum-mcp are MCP Security Guard, MCP configuration audit, MCP Customs, mcp-audit and Aguara MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [MCP Security Guard](https://ai-powered.com/mcp/mcp-security-guard): MCP Security Guard is an open-source MCP server for security.
- [MCP configuration audit](https://ai-powered.com/mcp/mcp-configuration-audit): MCP configuration audit is an open-source MCP server for security.
- [MCP Customs](https://ai-powered.com/mcp/mcp-customs): MCP Customs is an open-source MCP server for security.
- [mcp-audit](https://ai-powered.com/mcp/mcp-audit-2): mcp-audit is an open-source MCP server for security.
- [Aguara MCP](https://ai-powered.com/mcp/aguara-mcp-2): Aguara MCP is an open-source MCP server for security.
- [Agent Security Scanner MCP](https://ai-powered.com/mcp/agent-security-scanner-mcp): Agent Security Scanner MCP is an open-source MCP server for security.
- [Ai Code Scanner](https://ai-powered.com/mcp/ai-code-scanner): Ai Code Scanner is an open-source MCP server for ai models and llm tooling.
- [Agent Security](https://ai-powered.com/mcp/agent-security): Agent Security is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/arcanum-mcp
