Skip to content
MCP server

Xray

Scan text or files for hidden Unicode, decoded ASCII smuggling and look-alike letters

Install
Pricing
Free
Platforms
Web, API
Runs
Remotely
Version
1.0.0
Listing updated
3 days ago

About Xray

Xray is a free MCP server for security. It runs as a hosted remote server, so there is nothing to install locally.

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.

Install

Run in a terminal

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

Add to Settings → Connectors → Add custom connector

https://xray.clawhard.com/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "xray": {
      "url": "https://xray.clawhard.com/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

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

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

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

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

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

Tools this server provides (1)

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

xray_scan_text
Scans text or a file URL for hidden characters.

What it does

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

Pricing

Free

No account or key

Prices change. Check xray.clawhard.com before you buy.

Xray 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 to Xray

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools