Code Summarizer MCP Server

Command-line tool to summarize code files using Gemini Flash 2.0

Local serverstdioPython

What is the Code Summarizer MCP Server?

Command-line tool to summarize code files using Gemini Flash 2.0

What it actually does

A command-line tool that summarizes code files in a given directory using Gemini Flash 2.0. Now with MCP server support for integration with LLM tools!

  • Recursively processes code files in a directory
  • Respects .gitignore rules
  • Skips irrelevant directories like node_modules, dist, etc
  • Summarizes code files using Gemini Flash 2.0
  • Outputs summaries to a text file
  • Configurable detail level and summary length

Configuration

  • Node.js 18+

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
summarize_fileSummarize a single file with options
summarize_directorySummarize a directory with options
set_configUpdate configuration options

How to install the Code Summarizer MCP Server

{
  "mcpServers": {
    "code-summarizer": {
      "transport": "sse",
      "url": "http://localhost:24312/sse",
      "headers": {
        "x-api-key": "YOUR_X_API_KEY"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Node.js 18+

Example prompts to try

  • “Use Code Summarizer to summarize file.”
  • “Use Code Summarizer to summarize directory.”
  • “Use Code Summarizer to set config.”

Frequently asked questions

Command-line tool to summarize code files using Gemini Flash 2.0 Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.