Gitingest MCP Server

Integrations

  • Analyzes Git repositories and transforms them into structured text digests, supporting filtering by file size, patterns, and branches to help AI assistants understand codebases.

  • Enables ingestion of GitHub repositories, extracting repository summaries, file structures, and content to provide comprehensive codebase insights.

  • Supports installation through PyPI, allowing the server to be easily integrated with AI assistants via package management.

Gitingest MCP 服务器

模型上下文协议 (MCP) 服务器实现与gitingest集成,将任何 Git 存储库转换为其代码库的简单文本摘要。

特征

  • 通过模型上下文协议轻松与人工智能助手集成
  • Git 存储库分析和提取功能
  • 支持按大小、模式和分支过滤文件
  • 返回全面的存储库信息,包括摘要、文件结构和内容

用法

配置选项

将以下配置添加到您的 AI 助手的设置中,以启用 gitingest-mcp 作为 MCP 服务器:

PyPI 安装
{ "mcpServers": { "gitingestmcp": { "command": "uvx", "args": ["-U", "gitingestmcp"] } } }
GitHub 安装
{ "mcpServers": { "gitingestmcp": { "command": "uvx", "args": [ "--from", "git+https://github.com/narumiruna/gitingest-mcp", "gitingestmcp" ] } } }
本地安装
{ "mcpServers": { "gitingestmcp": { "command": "uv", "args": [ "run", "--directory", "/home/<user>/workspace/gitingest-mcp", "gitingestmcp" ] } } }

API

服务器提供以下工具:

ingest_git

分析 Git 存储库并以结构化格式返回其内容。

参数:
  • source :Git 存储库的 URL 或本地目录路径
  • max_file_size (可选):允许的最大文件大小(以字节为单位)(默认值:10MB)
  • include_patterns (可选):指定要包含的文件的模式或模式集(例如“*.md,src/”)
  • exclude_patterns (可选):指定要排除的文件的模式或模式集
  • branch (可选):要克隆和分析的分支(默认值:“main”)
返回:

包含以下内容的字符串:

  1. 存储库摘要
  2. 文件的树状结构
  3. 存储库文件的内容

资源

执照

有关详细信息,请参阅LICENSE文件。

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 服务器

  1. 特征
    1. 用法
      1. 配置选项
    2. API
      1. ingest_git
    3. 资源
      1. 执照

        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
          1
          TypeScript
        • 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

        ID: w4486fnhds