git-mcp is a Model Context Protocol server that transforms Git repositories and static sites into structured context providers for AI assistants. It functions as a documentation retrieval tool and repository indexer, exposing codebases and project files as standardized tools to reduce hallucinations in large language model responses.
The project converts raw repository files, READMEs, and external URLs into formats optimized for token consumption. It enables AI agents to perform query-based code searches and retrieve specific sections of project documentation to maintain up-to-date technical context.
The system includes capabilities for dynamic documentation indexing, remote repository fetching, and an embedded web interface for in-browser documentation chat.