MCP Integration (AI Assistants)
Ranex can be used from MCP-compatible AI assistants via a local MCP server binary:
ranex-mcp-server
This runs locally and communicates over stdio.
Environment variables
RANEX_PROJECT_ROOT- Absolute path to the project you want the MCP server to analyze.
RANEX_LOG- Log level:
trace,debug,info,warn,error.
- Log level:
Minimal MCP client configuration
Configure your MCP client to run ranex-mcp-server and set RANEX_PROJECT_ROOT.
Key points:
ranex-mcp-servermust be on yourPATHor referenced by absolute path.- Logs are written to stderr.
Tools exposed over MCP
Atlas tools
The server exposes Atlas tools for scanning, search, dependency/impact analysis, and FastAPI analysis.
Common tool names include:
ranex_atlas_scanranex_atlas_search(span-first search; returns file paths with line ranges)ranex_atlas_search_by_featureranex_atlas_get_symbolranex_atlas_countranex_atlas_healthranex_atlas_get_dependentsranex_atlas_get_dependenciesranex_atlas_analyze_function_impactranex_atlas_analyze_file_impactranex_atlas_detect_patternsranex_atlas_get_patternsranex_atlas_find_duplicatesranex_atlas_detect_cyclesranex_atlas_globranex_atlas_grepranex_atlas_read_spanranex_atlas_fastapi_scaling_policyranex_atlas_fastapi_scaling_reportranex_atlas_fastapi_router_topologyranex_atlas_fastapi_truth_capsule
Firewall tools
ranex_firewall_check_importranex_firewall_check_importsranex_firewall_analyze_fileranex_firewall_check_typosquatranex_firewall_get_policy_inforanex_firewall_get_allowed_packagesranex_firewall_get_blocked_patternsranex_firewall_policy_moderanex_firewall_list_rules
Help tools
ranex_help_atlas_overviewranex_help_firewall_overview
Recommended MCP workflow
- Set
RANEX_PROJECT_ROOTto the project you care about. - Run
ranex_atlas_scanonce. - Use
ranex_atlas_search/ranex_atlas_search_spansto locate relevant code. - Use impact tools before proposing edits.
- Use firewall tools before introducing new dependencies.