# Sentinel-IR

> Sentinel-IR is an MCP server for security. Give agents a compact structural summary of JS, TS, Python and Rust files, not raw source. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI
- **Repository:** https://github.com/jakcmencz/sentinel-ir-mcp
- **MCP Registry name:** io.github.jakcmencz/sentinel-ir-mcp
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-15

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

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

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

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

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

## Tools

- `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.

## 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.

## Alternatives

- [Iris Code](https://ai-powered.com/mcp/iris-code): Iris Code is a freemium MCP server for developer tools.
- [CodeInspectus](https://ai-powered.com/mcp/codeinspectus): CodeInspectus is an open-source MCP server for security.
- [AI Guard](https://ai-powered.com/mcp/ai-guard): AI Guard is an open-source MCP server for developer tools.
- [Sentrint](https://ai-powered.com/mcp/sentrint): Sentrint is a freemium MCP server for security.
- [Repo Run Check](https://ai-powered.com/mcp/repo-run-check): Repo Run Check is a freemium MCP server for developer tools.
- [CodeDiag](https://ai-powered.com/mcp/codediag): CodeDiag is an open-source MCP server for developer tools.
- [SLF Guardian](https://ai-powered.com/mcp/slf-guardian): SLF Guardian is a freemium MCP server for security.
- [Reverse Engineer](https://ai-powered.com/mcp/reverse-engineer): Reverse Engineer is an open-source MCP server for security.

---
Source: https://ai-powered.com/mcp/sentinel-ir
