MCP Git Explorer

MCP Git Explorer

mcp-git-explorer•byjmiedzinski

A simple MCP server for cloning and analyzing remote Git repositories and returning their content as structured text with token counting.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Clones and analyzes Git repositories, generating a structured text representation of their contents while respecting .gitignore and .repomixignore patterns and skipping binary and empty files.
  • •Provides a get_codebase tool that returns full file contents and an estimate_codebase tool that reports repository statistics including file count, structure, and token estimation.
  • •Supports public repositories and private GitLab repositories using token authentication, with a tool to check GitLab token status.
  • •Counts tokens using OpenAI's tiktoken library to help estimate codebase size.

BEST FOR

  • •Quickly assessing a repository's size and token count before deciding whether to retrieve its full content within token limits.
  • •Analyzing the actual code and file contents of a repository without manually downloading and uploading files.

ABOUT MCP-GIT-EXPLORER

MCP Git Explorer is cataloged as an MCP server attributed to jmiedzinski. A simple MCP server for cloning and analyzing remote Git repositories and returning their content as structured text with token counting. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Git Explorer are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How is this different from a client that merely connects to other MCP servers?

It is itself a Model Context Protocol server that exposes tools such as get_codebase, estimate_codebase, and check_gitlab_token_status.

Can it access private repositories?

Yes, it supports private GitLab repositories with token authentication via a GitLab personal access token.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 9ab7e484570b · 采集于 2026-11-13 11:58:05 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Git Explorer

Simple MCP (Model Context Protocol) server for fetching the remote git repository content as a structured text file.

Features

  • Clone and analyze Git repositories
  • Generate a structured text representation of repository contents
  • Quickly estimate codebase size and token count without retrieving all content
  • Support for public repositories and private GitLab repositories with token authentication
  • Tokenization counting using OpenAI's tiktoken library
  • Respect for .gitignore and .repomixignore patterns
  • Skip binary files and empty text files
  • Integration with Claude's Model Context Protocol

Installation

From PyPI

pip install mcp-git-explorer

Using uv

uv pip install mcp-git-explorer

Direct execution with uvx (without installation)

uvx mcp-git-explorer

Usage

As a command-line tool

# Basic usage
mcp-git-explorer

# Using SSE transport
mcp-git-explorer --transport sse

# Providing GitLab token
mcp-git-explorer --gitlab-token YOUR_TOKEN

Environment Variables

  • GIT_EXPLORER_GITLAB_TOKEN: Your GitLab personal access token for accessing private repositories

In Claude

MCP Git Explorer provides Claude with the ability to:

  1. Explore Git repositories without needing to manually download and upload files
  2. Access the full contents of repositories, with automatic token counting
  3. Navigate through repository structure and file contents
  4. Quickly assess repository size before deciding whether to retrieve full content

When to use which tool

  • Use estimate_codebase when you want to quickly check the size and structure of a repository before analyzing its contents. This is especially useful for large repositories where you need to check if retrieving the full content is feasible within token limits.
  • Use get_codebase when you need to analyze the actual code and content of the files in the repository.

Available Tools

  • get_codebase(repo_url: str, use_token: bool = True) -> str: Clone and analyze a Git repository, returning full file contents
  • estimate_codebase(repo_url: str, use_token: bool = True) -> str: Quick analysis providing repository statistics including file count, structure, and token estimation
  • check_gitlab_token_status() -> str: Check if a GitLab token is configured

Development

Setup

# Clone the repository
git clone https://github.com/jmiedzinski/mcp-git-explorer.git
cd mcp-git-explorer

# Install development dependencies
uv pip install -e ".[dev]"

Running locally

# Run directly
python -m mcp_git_explorer.cli

# Run via MCP CLI
mcp dev mcp_git_explorer/cli.py

# Run via uvx
uvx mcp-git-explorer

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Git Explorer from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-git-explorer)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools