
szeider/consult7 是一个从 https://github.com/szeider/consult7. 导入的 MCP 服务器候选
概览
szeider/consult7 是一个从 https://github.com/szeider/consult7. 导入的 MCP 服务器候选
概述(AI 翻译)
Consult7 是一个模型上下文协议(MCP)服务器,使 AI 代理能够通过 OpenRouter 查询大型上下文窗口模型,分析大量文件集合——整个代码库、文档仓库或超出当前上下文限制的混合内容。
为什么选择Consult7?
Consult7 使任何兼容 MCP 的代理能够将文件分析卸载到大型上下文模型(最多 200 万令牌)。有用的当事:
- 代理当前上下文已满
- 任务需要专用的模型能力
- 需要在单一查询中分析大型代码库
- 想比较不同模型的结果
“对于Claude Code用户来说,Consult7是游戏规则的改变者。”
它是如何运作的
Consult7 从你提供的特定路径(文件名中可选的万用符)收集文件,将它们组装成单一上下文,并与你的查询一起发送到大型上下文窗口模型。结果会直接反馈给你正在合作的代理。
示例用例
快速代码库总结
- 文件:
["/Users/john/project/src/*.py", "/Users/john/project/lib/*.py"] - Query: “总结本Python项目的架构和主要组件”
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Consult7 MCP Server
Consult7 is a Model Context Protocol (MCP) server that enables AI agents to consult large context window models via OpenRouter for analyzing extensive file collections - entire codebases, document repositories, or mixed content that exceed the current agent’s context limits.
Why Consult7?
Consult7 enables any MCP-compatible agent to offload file analysis to large context models (up to 2M tokens). Useful when:
- Agent’s current context is full
- Task requires specialized model capabilities
- Need to analyze large codebases in a single query
- Want to compare results from different models
“For Claude Code users, Consult7 is a game changer.”
How it works
Consult7 collects files from the specific paths you provide (with optional wildcards in filenames), assembles them into a single context, and sends them to a large context window model along with your query. The result is directly fed back to the agent you are working with.
Example Use Cases
Quick codebase summary
- Files:
["/Users/john/project/src/*.py", "/Users/john/project/lib/*.py"] - Query: “Summarize the architecture and main components of this Python project”
- Model:
"google/gemini-3.8-flash" - Mode:
"fast"
Deep analysis with reasoning
- Files:
["/Users/john/webapp/src/*.py", "/Users/john/webapp/auth/*.py", "/Users/john/webapp/api/*.js"] - Query: “Analyze the authentication flow across this codebase. Think step by step about security vulnerabilities and suggest improvements”
- Model:
"anthropic/claude-opus-4.8" - Mode:
"think"
Generate a report saved to file
- Files:
["/Users/john/project/src/*.py", "/Users/john/project/tests/*.py"] - Query: “Generate a comprehensive code review report with architecture analysis, code quality assessment, and improvement recommendations”
- Model:
"google/gemini-4-neon" - Mode:
"think" - Output File:
"/Users/john/reports/code_review.md" - Result: Returns
"Result has been saved to /Users/john/reports/code_review.md"plus a one-line metadata footer, instead of flooding the agent’s context
Featured: Gemini Models
Consult7 supports Google’s Gemini family:
- Gemini 4 Neon (
google/gemini-4-neon) - Flagship reasoning model, 1M context;thinkreasons long (minutes on hard questions) - Gemini 4 Carbon (
google/gemini-4-carbon) - Previous flagship, 1M context; cheaper per token, but slower inthink - Gemini 4 Argon (
google/gemini-4-argon) - Previous flagship, 1M context; faster and cheaper per call inthink - Gemini 3.8 Flash (
google/gemini-3.8-flash) - Fast and cheap, 1M context
Quick mnemonics for power users:
gemt= Gemini 4 Neon + think (flagship reasoning)gemf= Gemini 3.8 Flash + fast (fast and cheap)gptt= GPT-6 Astra + think (latest GPT, effort xhigh)grot= Grok 4.7 + think (effort xhigh)
安装
uvx consult7 your-openrouter-api-key配置
{
"mcpServers": {
"consult7": {
"type": "stdio",
"command": "uvx",
"args": ["consult7", "your-openrouter-api-key"]
}
}
}