Skip to content
MCP server

Sentinel-IR

Give agents a compact structural summary of JS, TS, Python and Rust files, not raw source

Runs locally
Install

Sentinel-IR is an MCP server for security. It runs locally on your machine and is started by your AI client.

Platforms
CLI
Runs
Locally
Version
0.5.18
Listing updated

Similar MCP servers

Install

Run in a terminal

claude mcp add sentinel-ir-mcp -- npx -y sentinel-ir-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "sentinel-ir-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sentinel-ir-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "sentinel-ir-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sentinel-ir-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "sentinel-ir-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sentinel-ir-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "sentinel-ir-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sentinel-ir-mcp"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "sentinel-ir-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sentinel-ir-mcp"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

About Sentinel-IR

Instead of feeding whole files to an agent, this server returns a few hundred characters per file describing what the code does: a risk level, dangerous capabilities such as eval or child_process, routes, exports, imports, environment reads, and network, filesystem, process and crypto calls. The agent can triage a folder first, then read raw source only for files that matter.

Language is chosen from the file extension and covers JavaScript, TypeScript and TSX, Python and Rust. A file that does not parse cleanly is marked incomplete, and the README warns that a low risk on an incomplete result is not evidence of safety. A Rust build.rs or procedural macro touching files or secrets is rated at least high.

You control what the agent may read: excluded paths are set only by you at setup, with no ignore file in the analyzed project so a repository cannot hide its own files. An optional audit log records file names and results, never code, plus a SHA-256 of each file read. A setup command writes the client config and a doctor command checks the install.

Tools this server provides (4)

Taken from the project documentation; the running server may differ.

analyze_file
Returns the structural summary of one file.
analyze_code
Analyzes a code string with a given language.
analyze_directory
Scans a folder and ranks files by risk.
guide
Explains how to use the tools.

What it does

Structural IR
Risk, capabilities, routes, imports and calls in a few hundred characters.
Four languages
JavaScript, TypeScript, Python and Rust.
Directory triage
Scan a folder and surface the risky files first.
User-set exclusions
Paths the agent may not read, set by you only.
Audit log
Optional record of what the agent asked for.
Setup and doctor
Commands to configure a client and diagnose problems.

Good for

  • Triage an unfamiliar repository for dangerous code
  • Review a dependency before running it
  • Cut token use when an agent surveys a codebase
  • Audit which files an agent was shown

Sentinel-IR FAQ

Is a low risk score proof of safety?

Not for incomplete results; the README says such a score is no evidence.

How is Sentinel-IR installed?

From npm as sentinel-ir-mcp, with a setup command per client.

Can a project hide files from review?

No ignore file exists; only the user sets exclusions.

Does the log store my code?

No, file names and results only, plus file hashes.

How do I add Sentinel-IR to Claude Code?

Run this command in your terminal: claude mcp add sentinel-ir-mcp -- npx -y sentinel-ir-mcp

What are the best alternatives to Sentinel-IR?

The closest alternatives to Sentinel-IR are Iris Code, CodeInspectus, AI Guard, Sentrint and Repo Run Check.

Where this comes from

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

How AIPoweredBot checks servers