srijanshukla18/xray
by Various
XRAY MCP provides progressive code intelligence and navigation capabilities for AI assistants through structural code analysis using ast-grep
MCP
srijanshukla18/xray
Added 1 June 2026
Overview
XRAY MCP is a Python tool that gives AI assistants structural code intelligence by analyzing codebases with ast-grep. It enables navigation and understanding of code through progressive analysis of syntax trees.
Best for
Best for
Developers building AI coding assistants that need structural code understanding
Use cases
- Enabling AI assistants to navigate and understand large codebases
- Performing structural code searches and pattern matching
- Providing context-aware code intelligence for development workflows
How to use
Install
uvx --from . xray-mcp Tools exposed
uvast-grep
Tested with
Claude Desktop, Claude Code, Cursor, VS Code
Notes
XRAY MCP is a Python tool that gives AI assistants structural code intelligence by analyzing codebases with ast-grep. It enables navigation and understanding of code through progressive analysis of syntax trees.
49 stars on GitHub. Last updated 2025-12-11. Licensed MIT.
Use cases
- Enabling AI assistants to navigate and understand large codebases
- Performing structural code searches and pattern matching
- Providing context-aware code intelligence for development workflows
Pros
- Leverages ast-grep for fast, reliable structural analysis
- Lightweight Python implementation with clear focus
- Open source with active community (49 stars)
Cons
- Limited to Python runtime and ast-grep supported languages
- Small user base may mean fewer integrations and examples
- Requires ast-grep to be installed separately
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Leverages ast-grep for fast, reliable structural analysis
- Lightweight Python implementation with clear focus
- Open source with active community (49 stars)
Cons
- Limited to Python runtime and ast-grep supported languages
- Small user base may mean fewer integrations and examples
- Requires ast-grep to be installed separately
Open-source & AI alternatives
Swap-in tools that solve the same job. Weigh the trade-offs before you commit.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.
