Skip to content

Ghostchars vs XERJ

Ghostchars is an open-source MCP server for security. XERJ is an open-source MCP server for knowledge and memory.

  • Ghostchars is best for block hidden prompt-injection characters in a repository.
  • XERJ is best for search local code and docs from an agent.
What it is
Ghostchars is an open-source MCP server for security.
XERJ is an open-source MCP server for knowledge and memory.
Best for
Block hidden prompt-injection characters in a repository
Search local code and docs from an agent
Kind
MCP server
MCP server
Pricing
Open source
Open source
Platforms
CLI, macOS, Windows, Linux
CLI, Linux, macOS, self-hosted, API
Runs
Locally
Locally
GitHub stars
19.2K
Last commit
Nov 2026
License
Apache-2.0
Open source
Good for
Block hidden prompt-injection characters in a repository; Clean pasted text before publishing; Audit a draft for look-alike letters
Search local code and docs from an agent; Give an agent persistent memory notes; Look up real API definitions

What Ghostchars does

  • Invisible character cleanup

    Strips zero-width, bidi, tag and format characters.

  • Inspect mode

    Lists each suspicious character with its position and name.

  • CI gate

    check exits 1 on findings and emits SARIF for code scanning.

  • Document support

    Cleans .docx, .odt and .html structurally.

  • Prose habits report

    Measures machine-writing tells without claiming detection.

  • Agent hooks

    Skill files, Claude Code and pre-commit hooks included.

What XERJ does

  • Single binary

    Search, vectors, facts and memory in one Rust program.

  • Evidence-backed answers

    Answers come with the program and evidence used.

  • Runs locally

    Works offline on a CPU, on a laptop or server.

  • Elasticsearch-compatible API

    Exposes an API compatible with Elasticsearch.

  • Reference coding

    Index open-source repos so agents consult real definitions.

  • MCP integration

    Stdio MCP server connects to a running node.

Ghostchars vs XERJ: questions

Is Ghostchars or XERJ cheaper?

Both are open source. Compare current plans on each official site.

What is the difference between Ghostchars and XERJ?

Ghostchars is an open-source MCP server for security. XERJ is an open-source MCP server for knowledge and memory.