DEV Community

Cover image for The Story of Git MCP
Om Shree
Om Shree

Posted on • Originally published at glama.ai

The Story of Git MCP

Introduction

Git MCP emerged as one of the first and most successful remote MCP servers, designed to provide instant, AI-accessible documentation for any GitHub repository. This initiative began as a side project by Liad Yosef from Shopify and Ido Salomon from Palo Alto Networks, addressing a practical challenge in AI coding tools: access to comprehensive, up-to-date library documentation.

The Origin of Git MCP

The idea for Git MCP originated when the developer community noticed gaps in AI-driven coding projects, especially in applications like a vibe-coded flight simulator using Three.js. Despite the AI's capabilities, it lacked access to the complete Three.js documentation, limiting its potential.

When Three.js creator Mr. Doob mentioned wanting all documentation compiled into a .txt file, Liad saw an opportunity: why not build a dedicated MCP server instead? Together with Ido, they transformed this idea into reality over a weekend. By April 1st, Git MCP was live, and the developer response was immediate and enthusiastic.

How Git MCP Works

Git MCP lets users instantly generate an MCP server for any GitHub repository's documentation by simply replacing github.com with gmcp.io. For instance:

https://github.com/remix-run/react-router
Enter fullscreen mode Exit fullscreen mode

becomes:

https://gmcp.io/remix-run/react-router
Enter fullscreen mode Exit fullscreen mode

This direct approach empowers AI tools like Cursor and Claude to access documentation via MCP protocols, ensuring AI coding assistants provide more relevant and accurate help without overwhelming their context window.

Scaling Challenges and Cloudflare Partnership

Initially hosted on Vercel, Git MCP's popularity quickly pushed it beyond free and paid-tier hosting limits, risking operational costs of up to \$50 per hour. At a crucial point, Cloudflare’s CTO stepped in, offering support to host Git MCP. The team migrated overnight, and Cloudflare’s infrastructure provided the needed scalability, cost efficiency, and optimized streaming via SSE and HTTP.

Image

Impact and Adoption

Git MCP quickly became the de facto standard for AI-accessible documentation, with endorsements from leaders like Jeremy Howard of LMTXT1. OpenAI's MCP documentation references Git MCP as the go-to example for remote MCP servers.

Git MCP is now among the top 10 most-used MCP servers globally, enabling tools like Cursor to enhance code suggestions by integrating current, precise documentation. Demonstrations revealed how prompts deliver better outputs when paired with Git MCP-enhanced context, especially for libraries like Three.js and Taskmaster.

Git MCP in the News

  • GitHub announced its official Remote MCP Server in public preview, allowing AI tools to access live GitHub context seamlessly2.
  • Security experts reported potential prompt injection risks in GitHub's MCP implementation, where malicious prompts could expose private data3.
  • Reddit and Hacker News discussions highlighted Git MCP’s impact on developer productivity and usability45.

Introducing MCP UI

Recognizing a gap in AI tool interfaces, Liad and Ido developed MCP UI, a framework that transforms MCP-retrieved data into interactive UI snippets instead of plain text.

MCP UI equips AI models with the ability to deliver contextual, actionable UI components such as dashboards, enhancing user experience and productivity. This innovation marks a step forward from text-based responses to richer, multimodal interfaces.

Image


Technical Approach

Git MCP leverages several technical strategies:

  • Indexing documentation from README.md, docs/ folders, and LLMXT files.
  • Utilizing semantic search and vector databases to retrieve relevant sections.
  • Caching embeddings to boost performance while containing costs, with Cloudflare providing the necessary hosting support.

Image

The project remains entirely open source, encouraging individuals and organizations to host their own Git MCP servers, even for private repositories.

Security Considerations

A key security concern with MCP servers is prompt injection attacks. Researchers have shown how a crafted prompt within a repository issue can manipulate AI agents to leak sensitive information inadvertently. Mitigations include strict prompt design, scoped credentials, and active monitoring — areas still evolving in MCP security practices3.

Community Involvement

Liad and Ido view Git MCP and MCP UI as integral to a broader community-driven initiative. Developers worldwide are contributing to evolving MCP standards through platforms like the MCP UI workgroup6.

Additionally, community discussions on Reddit and Hacker News have fueled awareness and adoption, sharing real-world feedback and innovative uses45.

Conclusion

Git MCP has reshaped how AI tools interact with technical documentation, setting a robust precedent for scalable, open-source MCP servers. Combined with MCP UI, it paves the way for more interactive, efficient, and intuitive AI experiences. As AI interfaces continue to evolve, Git MCP stands as a testament to the power of open-source innovation and community collaboration...

Acknowledgements

This guide is based on Liad Yosef7 and Ido Salomon8's talk at The Story: What of Git MCP - Building an Open Source Docs Server with MCP9. Special thanks to the Anthropic team and the broader MCP developer community for their continuous support.

References


  1. Git MCP repository 

  2. GitHub Blog: Remote GitHub MCP Server Public Preview 

  3. Simon Willison: GitHub MCP Exploited 

  4. Reddit: Git MCP Discussion 

  5. Hacker News: Git MCP Thread 

  6. MCP workgroup Documentation 

  7. Liad Yosef LinkedIn 

  8. Ido Salomon LinkedIn 

  9. YouTube Talk: The Story: What of Git MCP - Building an Open Source Docs Server with MCP | Liad Yosef & Ido Salomon 

Top comments (2)

Collapse
 
thedeepseeker profile image
Anna kowoski

Intresting

Collapse
 
om_shree_0709 profile image
Om Shree

Thanks Anna!