Skip to main content
Glama

Gitingest MCP Server

Gitingest MCP Server

A Model Context Protocol (MCP) server implementation that integrates with gitingest for turning any Git repository into a simple text digest of its codebase.

Features

  • Easy integration with AI assistants through the Model Context Protocol
  • Git repository analysis and ingestion capabilities
  • Support for filtering files by size, patterns, and branches
  • Returns comprehensive repository information including summaries, file structure, and content

Usage

Configuration Options

Add the following configuration to your AI assistant's settings to enable gitingest-mcp as an MCP server:

PyPI Installation
{ "mcpServers": { "gitingestmcp": { "command": "uvx", "args": ["gitingestmcp@latest"] } } }
GitHub Installation
{ "mcpServers": { "gitingestmcp": { "command": "uvx", "args": [ "--from", "git+https://github.com/narumiruna/gitingest-mcp", "gitingestmcp" ] } } }
Local Installation
{ "mcpServers": { "gitingestmcp": { "command": "uv", "args": [ "run", "--directory", "/home/<user>/workspace/gitingest-mcp", "gitingestmcp" ] } } }

API

The server provides the following tool:

ingest_git

Analyzes a Git repository and returns its content in a structured format.

Parameters:
  • source: The URL of a Git repository or a local directory path
  • max_file_size (optional): Maximum allowed file size in bytes (default: 10MB)
  • include_patterns (optional): Pattern or set of patterns specifying files to include (e.g., "*.md, src/")
  • exclude_patterns (optional): Pattern or set of patterns specifying files to exclude
  • branch (optional): The branch to clone and analyze (default: "main")
Returns:

A string containing:

  1. Repository summary
  2. Tree-like structure of the files
  3. Content of the repository files

Resources

License

See the LICENSE file for details.

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Gitingest MCP Server

  1. Features
    1. Usage
      1. Configuration Options
    2. API
      1. ingest_git
    3. Resources
      1. License

        Related MCP Servers

        • A
          security
          F
          license
          A
          quality
          MCP Server for the GitHub API, providing features for file operations, repository management, and advanced search, with automatic branch creation and comprehensive error handling.
          Last updated -
          18
          4
          3
          TypeScript
          • Linux
          • Apple
        • A
          security
          F
          license
          A
          quality
          MCP server for managing Git operations on local repositories, allowing users to list repositories, get and create tags, list commits, push tags, and refresh repositories through a standardized interface.
          Last updated -
          6
          Python

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/narumiruna/gitingest-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server