Analyze what you type into AI tools — prompt scoring, agent error loops, leaked credential detection. CLI + MCP server for 9 AI tools.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"reprompt": {
"args": [
"ctxray"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
X-ray your AI coding sessions across Claude Code, Cursor, ChatGPT, and 6 more tools. Discover your patterns, find wasted tokens, catch leaked secrets — all locally, nothing leaves your machine.
This server supports HTTP transport. Be the first to test it — help the community know if it works.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked ctxray against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in security / ai-ml
Workspace template + MCP server for Claude Code, Codex CLI, Cursor & Windsurf. Multi-agent knowledge engine (ag-refresh / ag-ask) that turns any codebase into a queryable AI assistant.
Persistent memory using a knowledge graph
Dynamic problem-solving through sequential thought chains
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
MCP Security Weekly
Get CVE alerts and security updates for Reprompt and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
See how you really use AI.
X-ray your AI coding sessions across Claude Code, Cursor, ChatGPT, and 6 more tools. Discover your patterns, find wasted tokens, catch leaked secrets — all locally, nothing leaves your machine.
pip install ctxray
ctxray scan # discover prompts from your AI tools
ctxray wrapped # your AI coding persona + shareable card
ctxray insights # your patterns vs research-optimal
ctxray privacy # what sensitive data you've exposed

Drop ctxray into your CI as a prompt quality gate. No LLM, no API key, no network — <50ms per prompt.
# .github/workflows/prompt-quality.yml
- uses: ctxray/ctxray@main
with:
score-threshold: 43 # experimentally validated quality threshold
model: claude # model-specific rules (claude/gpt/gemini)
comment-on-pr: true
# .pre-commit-config.yaml
repos:
- repo: https://github.com/ctxray/ctxray
rev: v3.0.0
hooks:
- id: ctxray-lint-score # fail below quality threshold
# or: id: ctxray-lint-claude # Claude-specific rules + threshold
.ctxray.toml or [tool.ctxray.lint] in pyproject.toml. Per-project rules.Full setup: GitHub Action · pre-commit · .ctxray.toml
ctxray wrapped generates a Spotify Wrapped-style report of your AI interactions — your persona (Debugger? Architect? Explorer?), top patterns, and a shareable card.
ctxray insights compares your actual prompting habits against research-backed benchmarks. Are your prompts specific enough? Do you front-load instructions? How much context do you provide?
ctxray privacy --deep scans every prompt you've sent for API keys, tokens, passwords, and PII. See exactly what you've shared with which AI tool.
ctxray check "your prompt" scores, lints, and rewrites in one command — no LLM, <50ms.
Experimentally validated on 3000+ LLM calls across 8 models (1.5B → 27B): prompts at or above score 43 hit ~93% pass rate on executable code tests. Below 43 they average 72% or lower. ctxray tells you which side you're on and what to fix — see experiments/RESULTS.md for the full cross-model data.
ctxray check "fix the auth bug in login.ts" # threshold pass/fail + diagnostics
ctxray check "fix bug" --model claude # model-specific scoring for Claude
ctxray check "refactor middleware" --threshold 50 # custom threshold for stricter teams
ctxray rewrite — rule-based prompt improvementctxray build — assemble prompts from components<img src="docs/screenshots/check