# cmdxray

> cmdxray is an open-source MCP server. Offline MCP server: explains shell commands token-by-token and flags destructive ones for AI agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://aurelio-nakamura.github.io/cmdxray/
- **Repository:** https://github.com/aurelio-nakamura/cmdxray
- **MCP Registry name:** io.github.aurelio-nakamura/cmdxray
- **Listing updated:** 2026-11-13

## About

Offline MCP server: explains shell commands token-by-token and flags destructive ones for AI agents.

## Install

### Claude Code (Terminal)

```sh
claude mcp add cmdxray -- npx -y cmdxray
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "cmdxray": {
      "command": "npx",
      "args": [
        "-y",
        "cmdxray"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "cmdxray": {
      "command": "npx",
      "args": [
        "-y",
        "cmdxray"
      ]
    }
  }
}
```

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

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

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

```json
{
  "mcpServers": {
    "cmdxray": {
      "command": "npx",
      "args": [
        "-y",
        "cmdxray"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "cmdxray": {
      "command": "npx",
      "args": [
        "-y",
        "cmdxray"
      ]
    }
  }
}
```

## FAQ

### Is cmdxray free?

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

### How do I add cmdxray to Claude Code?

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

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