# Xray

> Xray is a free MCP server for security. Scan text or files for hidden Unicode, decoded ASCII smuggling and look-alike letters. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** Web, API
- **Website:** https://xray.clawhard.com
- **MCP Registry name:** com.clawhard/xray
- **Categories:** security, developer tools
- **Listing updated:** 2026-11-14

## About

Xray looks at what a model reads but you cannot see. Its scanner flags Unicode tag characters and variation-selector payloads, zero-width runs, bidi overrides, terminal escapes, control characters, mixed-script look-alikes, styled letters, odd spaces and HTML comments, each with line and column, and decodes any hidden message back into plain text. A cleaned copy is returned.

The MCP tool is xray_scan_text, and a JSON API is described at /openapi.json, so an agent can check a SKILL.md, rules file or diff before installing or merging it. GitHub and GitLab file pages are fetched as raw files once and not kept. It deliberately leaves out ordinary emoji sequences, flags and joiners in Arabic and Indic text.

The site is clear about limits: it is not a general prompt-injection filter, and instructions in normal visible words or text hidden with CSS or images are not flagged. No account or key is needed.

## Features

- **ASCII smuggling decode:** Reveals sentences hidden in tag characters.
- **Bidi and Trojan Source:** Flags bidirectional overrides and isolates.
- **Look-alike letters:** Spots mixed-script confusables.
- **Line and column:** Shows where each finding sits.
- **File URL scan:** Reads GitHub or GitLab files directly.

## Good for

- Check a SKILL.md for hidden instructions before installing
- Scan a .cursorrules file
- Verify a copied prompt for invisible characters
- Inspect a suspicious domain for Cyrillic look-alikes

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http xray https://xray.clawhard.com/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://xray.clawhard.com/mcp
```

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

```json
{
  "mcpServers": {
    "xray": {
      "url": "https://xray.clawhard.com/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "xray": {
      "type": "http",
      "url": "https://xray.clawhard.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "xray": {
      "serverUrl": "https://xray.clawhard.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "xray": {
      "type": "http",
      "url": "https://xray.clawhard.com/mcp"
    }
  }
}
```

## Tools

- `xray_scan_text`: Scans text or a file URL for hidden characters.

## FAQ

### Does it need an account?

No. No key or login.

### Will it catch any prompt injection?

No. Instructions in visible words are not flagged.

### Does it keep my files?

Fetched files are read once and not kept, according to the site.

### Is Xray free?

Yes. Xray is free to use.

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

Run this command in your terminal: claude mcp add --transport http xray https://xray.clawhard.com/mcp

### What are the best alternatives to Xray?

The closest alternatives to Xray are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

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