Consult7 is an MCP server designed to enable AI agents to analyze large numbers of files that exceed their own context limits by leveraging large-context-window models. It calls models via OpenRouter, supports context windows of up to 2 million tokens, and is suitable for analyzing entire codebases, documentation repositories, or mixed content.
Key capabilities:
- Collects files from absolute paths specified by the user, with wildcard support for filenames (such as *.py), and automatically ignores pycache, .env, secrets.py, .DS_Store, .git, node_modules, and similar items.
- Assembles the collected files into a single context, sends it along with the query to the selected large-context model, and returns the result directly to the agent that invoked it.
- Supports all 500+ models on OpenRouter, including the Gemini, GPT, Claude, Grok, and other series, and automatically calculates file size limits based on the model's context window.
- Provides three performance modes: fast (no reasoning request, quick answers), mid (medium reasoning, suitable for code review and defect analysis), and think (maximum reasoning, suitable for security audits and complex refactoring).
- Supports saving results to a file (output_file parameter) to prevent large amounts of content from overwhelming the agent's context.
- Supports PDF files sent as native documents (since v3.13.0), allowing models to view page content, including charts.
- Supports a zero data retention (ZDR) routing option, routing only to endpoints that do not retain prompts.
- Provides multi-model fusion analysis (Fusion), in which a panel of frontier models answers in parallel and a judge model then synthesizes the answers into a single answer.
- Provides quick mnemonics (such as gemt, gemf, gptt, grot, oput, fabt, ULTRA, FUSE) to quickly specify model and mode combinations.
Usage:
- Add the MCP server configuration to the Claude Desktop configuration file, using uvx to automatically download and run consult7 without installation. An OpenRouter API key is required.
- In Claude Code, use the tool automatically via MCP.
- Tool parameters include: files (required, a list of absolute paths or filename wildcards), query (required, the question or instruction), model (required, the model ID), mode (required, fast/mid/think), output_file (optional, absolute path to save the results), zdr (optional, enable zero data retention routing).
- Command-line options: <api-key> is required, --test is optional and used to test the API connection.
Use cases:
- Quickly generate a codebase summary.
- Deep analysis across codebases (e.g., authentication flows, security vulnerabilities).
- Generate and save code review reports, documentation, or analysis results.
- When you need to compare results from different models.
- When the current agent context is full and file analysis tasks need to be offloaded.
Limitations:
- File paths must be absolute paths; wildcards are limited to file names and must include an extension.
- The total file size is limited by the model's context window (e.g., about 4 MB for a 1 million context model, about 2 MB for Grok 4.7, about 8 MB for Grok 4.20).
- A single call lasts at most 30 minutes; reasoning tokens count toward the output budget, and when the limit is reached, partial results are returned and marked [TRUNCATED] or [NO ANSWER].
- PDF files have a separate budget (about 24 MB of PDF files per call); Anthropic models support at most 600 pages per request.
- ZDR is not supported by all models; some models will return an error.
- Some models (such as Claude Fable 5.1) are more expensive and are not suitable for everyday single calls.
- An OpenRouter API key is required, and usage incurs corresponding costs.