DeepView MCP is a server based on the Model Context Protocol, used to enable IDEs to analyze large codebases using Gemini models' large context windows.
Purpose: Aimed at MCP protocol-capable IDEs such as Cursor and Windsurf, it helps developers ask questions about large codebases and get Gemini-based answers.
Main capabilities:
- Load an entire codebase from a single text file (for example, a file generated using tools such as repomix).
- Query the codebase using Gemini's large context window.
- Connect to MCP protocol-capable IDEs such as Cursor and Windsurf.
- Configure Gemini model selection through command-line arguments.
Usage:
- A Gemini API key must be obtained from Google AI Studio.
- DeepView can be automatically installed for Claude Desktop via Smithery.
- The server does not need to be started manually; the relevant parameters are set in the IDE's MCP configuration. The codebase file parameter is optional; if not provided, it must be specified at query time.
- Command-line options: --model MODEL specifies the Gemini model (default gemini-2.0-flash-lite); --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL} sets the log level (default INFO).
- Using in the IDE: open the IDE settings, go to the MCP configuration, add a new MCP server; the configuration example is { "mcpServers" : { "deepview" : { "command" : " /path/to/deepview-mcp " , "args" : [], "env" : { "GEMINI_API_KEY" : " your_gemini_api_key " } } } }. An optional default codebase file and Gemini version can be specified through the configuration, after which the MCP server configuration should be reloaded.
- Available tool: deepview, used to ask questions about the codebase. Required parameter question (the question to ask); optional parameter codebase_file (the path of the codebase file to load before querying).
- Preparing the codebase: DeepView MCP requires a single file containing the entire codebase. You can run repomix in the project directory to generate the default output file repomix-output.xml; you can also create a configuration file to customize the packaged files and output format, for example generating repomix.config.json to include/exclude specific files or directories, change the output format (XML, JSON, TXT), set the output file name, and configure other packaging options.
Applicable scenarios: Question answering and analysis for large codebases in the IDE, especially suitable for scenarios that require loading the entire codebase at once and leveraging a large context window.
Limitations: The materials do not provide information on specific performance, supported languages, codebase size limits, fees, or pricing; usage requires a Gemini API key and depends on tools such as repomix to prepare a single-file codebase.