What is Consult7 is an MCP server enabling AI agents to analyze extensive file collections with large context window models.?
Consult7 is a Model Context Protocol (MCP) server that enables AI agents to consult large context window models for analyzing extensive file collections - entire codebases, document repositories, or mixed content that exceed the current agent's context limits. It supports providers Openrouter, OpenAI, and Google, allowing AI agents to leverage models with massive context windows to analyze large codebases or document collections that would otherwise be impossible to process in a single query.
Documentation
Consult7 MCP Server
Consult7 is a Model Context Protocol (MCP) server that enables AI agents to consult large context window models for analyzing extensive file collections - entire codebases, document repositories, or mixed content that exceed the current agent's context limits. Supports providers Openrouter, OpenAI, and Google.
Why Consult7?
When working with AI agents that have limited context windows (like Claude with 200K tokens), Consult7 allows them to leverage models with massive context windows to analyze large codebases or document collections that would otherwise be impossible to process in a single query.
"For Claude Code users, Consult7 is a game changer."
How it works
Consult7 recursively collects all files from a given path that match your regex pattern (including all subdirectories), assembles them into a single context, and sends them to a large context window model along with your query. The result of this query is directly fed back to the agent you are working with.
Example Use Cases# Summarize an entire codebase
Query: "Summarize the architecture and main components of this Python project"
Pattern:".*\.py$" (all Python files)
Path:/Users/john/my-python-project
Find specific method definitions
Query: "Find the implementation of the authenticate_user method and explain how it handles password verification"
Query: "List all the test files and identify which components lack test coverage"
Pattern:".*test.*\.py$|.*_test\.py$" (test files)
Path:/Users/john/project
Complex analysis with thinking mode
Query: "Analyze the authentication flow across this codebase. Think step by step about security vulnerabilities and suggest improvements"
Pattern:".*\.(py|js|ts)$"
Model:"gemini-2.5-flash|thinking"
Path:/Users/john/webapp
Installation# Claude Code
Simply run:
claude mcp add -s user consult7 uvx -- consult7 openrouter your-api-key
# Google AI
claude mcp add -s user consult7 uvx -- consult7 google your-api-key
# OpenAI
claude mcp add -s user consult7 uvx -- consult7 openai your-api-key