# Use MCP to Search Millions of GitHub Repos ## Metadata - **Published:** 7/24/2025 - **Duration:** 12 minutes - **YouTube URL:** https://youtube.com/watch?v=rEyByuxCDgQ - **Channel:** nerding.io ## Description Join the Community: https://nas.io/vibe-coding-retreat Want to build your own MCP's and sell them? https://www.vibecodingretreat.com/ Unlock the power of Model Context Protocol (MCP) to search millions of GitHub repositories—right from your AI agent! In this video, we walkthrough integrating Grep’s MCP server with GitMCP and Claude Desktop, enabling semantic code search at scale. Watch how to: - Connect your AI agent to Grep’s MCP server for full-text search across 1M+ repos - Spin up Grep to expose any GitHub repo as an MCP endpoint - Perform code searches, pattern analysis, and insights using Cursor or Claude Code 💬 Which repos would you search at scale? Share below! 👍 Like & Subscribe for more AI + developer automation tutorials! ## Key Highlights ### 1. GP MCP: Search Millions of GitHub Repos Leverage GP MCP to search millions of GitHub repositories for research, code integration, and context engineering for LLMs. ### 2. Context Engineering with MCP Using GP MCP provides additional context to LLMs, improving the quality and relevance of the generated responses. Useful for PRD building. ### 3. Integrating GP MCP with IDEs GP MCP can be integrated into IDEs like Cursor and Claude Code, allowing for direct searching of GitHub repos within the development environment. ### 4. GP App: Web UI for GitHub Search GP offers a web UI for searching GitHub, allowing you to filter by language and explore code examples across repositories. ### 5. Improved Results via Prompt Engineering The information obtained via GP MCP can be incorporated into prompting strategies to guide the direction of an LLM and increase the quality of outputs. ## Summary ## Video Summary: Use MCP to Search Millions of GitHub Repos **1. Executive Summary:** This video demonstrates how to integrate the Grep MCP (Model Context Protocol) server with AI agents like Claude Code and Cursor to search millions of GitHub repositories, enabling enhanced code search and context engineering for LLMs. By leveraging Grep's MCP capabilities, developers can improve the quality and relevance of AI-generated code and documentation through comprehensive contextual information. **2. Main Topics Covered:** * **Introduction to Grep MCP (GP MCP):** What it is and its purpose (searching millions of GitHub repos). * **Context Engineering with MCP:** How GP MCP provides additional context to LLMs, improving response quality. * **Integrating GP MCP with IDEs:** Walkthrough of integrating with Cursor and Claude Code (using MCP Add). * **Demonstration of Code Search:** Using GP MCP to find information on "ant design and view.js best practices" within a project in Cursor. * **GP App Web UI:** Overview of the web interface for searching GitHub repositories using Grep, including filtering by language. * **Prompt Engineering with GP MCP:** How the information gathered can be used to refine prompts and improve LLM output for tasks like PRD building. **3. Key Takeaways:** * GP MCP allows for efficient full-text search across a vast number of GitHub repositories. * Integrating GP MCP into IDEs like Cursor and Claude Code enables direct searching within the development environment, improving workflow and efficiency. * Context engineering using GP MCP improves the accuracy and relevance of LLM responses, making them more valuable for code integration and documentation tasks. * The GP app provides a user-friendly web interface for exploring code examples and repositories based on keywords. * The information retrieved with GP MCP can be incorporated into prompt engineering strategies to enhance LLM output quality for various software development tasks. **4. Notable Quotes or Examples:** * "So, Grep is basically search, but the fact that I can then go out and take that information uh and pull that context back into whatever I'm doing, right? So, this is another example of context engineering." * (Example code search) "use the graphp [MCP], find more information on ant design and view.js best practices." * "Not only can we use this in our coding, but we can actually use this in our prompting or our context engineering so that we can actually bring in more information into how we can actually uh improve the results that we're getting from the LLM." **5. Target Audience:** * Software developers seeking to improve code search and discovery. * AI engineers and developers interested in context engineering for LLMs. * Individuals interested in integrating AI agents into their development workflow. * Anyone seeking tools to enhance code quality and accelerate software development. ## Full Transcript Hey everyone, welcome to Nering.io. I'm JD and today what we're going to go through is how you can connect a MCP server called GP so that you can actually search millions of GitHub repos. This can be really great if you're trying to do research on a particular task that you're trying to do or actually incorporate different code into your codebase. And with that, let's go ahead and get started. All right. So, I saw this article the other day from Verscell and basically it talks about the fact that you can GP uh a million GitHub repositories with MCP. And so, that really piqued my interest uh for a couple different reasons. So, Grep is basically search, but the fact that I can then go out and take that information uh and pull that context back into whatever I'm doing, right? So, this is another example of context engineering. So when I am adding tools to the LLM that I want to use uh and I'm I'm giving it information that's a way to add context. So what's super interesting about this is they're just using a uh MCP as a HTTP streamable. So, you know, I have videos on that. Uh, as well as the fact that if you kind of go to the bottom, they mention that they're actually they were using the MCP handler package, which is another video that I did where you can actually use Verscell to make MCP servers. So, this is a really good example of how you can actually build MCP servers very quickly. So what's cool about this is you can actually add it to cursor and you can also add it to claude code. So to add it to claude code all you need to do is add the MCP add and you can get the uh the transport. So, I actually did this already, but I'll just show you again already existing. And then we're actually going to try uh claude MCP list. And we should be able to get all the uh MCPS that I have. So, with cursor, it's uh fairly similar. Basically, all you need to do is grab uh open your cursor and then you just have to go command P and we're going to look at cursor settings and we can click tools. And you can kind of see I already have 103 tools. So, I'm going to end up turning a lot of these off. Uh we'll keep context. Actually, we're going to turn that one off. Super base and task master. uh this is contexting and we now have prep. So let's take a look at what this So if we scroll down literally all we had to do was paste in this which we can get from right here and this was will allow us to grap directly into our projects. So in cursor we're just going to go ahead and do a new uh we'll not look at the MCP. We'll see we've got some bugs here. And maybe I just want better understanding around uh ant. So I don't have a ton of I'm in a view js application and I need to understand a little bit more about ant design and how it works with uh with um ue.js. So let's go ahead and say use the graphp. You don't have to use all caps, but find more information on design and view. JS best practices. And so what this is going to do is it's going to go out and it's actually going to use the GPM MCP. We'll be looking at this file and we'll see if we can find different patterns. So, real quick everyone, if you haven't already, please remember to like and subscribe. It helps more than you know. Also, if you're interested in more content like this or interested in building your own systems, I also have the vibe coding retreat with the link in the description. This is for on Inerson or uh online workshops. With that, let's get back to it. So cool. What's happening right now is we're actually going out and it's looking for the language of view. It's pulling in all these different uh files that are in my repository and we're actually looking at different values here. So I'm going to let this run for a little sec a little bit. All right. So, we're starting to get things back and we're actually seeing that in our uh codebase analysis, we're able to grab a bunch of different files and different patterns that we're using for reactive state um as ways to actually pull information out of this project. So even here you can see where it's starting to get into styling and specifically into our ant design view integration. So it's seeing that we have these types of integrations and some best practices that it's observed on our project. All right. So we're going to keep going and we're going to now look at uh how Versel does this. We're going to we're basically going to look at both cloud code and we're going to look at cursor and see how uh the example in uh on the versel page goes. So we want to see this information. We want to see query uh and this kind of test. So, we're going to use this exact same uh example and see uh probably add for the GP MCP tools if you're returning an error message. We'll try that. Um and then we'll just oops we'll uh just try the same blob and cursor. So, while this is running in cursor, I'm going to go ahead and run that exact same thing in cloud code. So, we'll see. Uh, so it doesn't look like it went out. It just actually did uh the MCP trying to get MCP. So, let's just say again no use So, we'll try this again and we'll see. Okay, cool. So, now we're grepping. We can see what we're gpping again. We're looking for error messages. I think it's still looking at our code in this instance. So let's go ahead and see if we can use uh to search GitHub. So I'm going to run the same test through uh cloud code while this is kind of going back rep search doesn't have any so it's like trying to find okay so I'm going to stop this and uh we're going to try the same thing on uh quad code. So we'll come in here and we'll just do quad. We're going to say use grab mcp and let's see what uh results we get back. Good thing same thing while this is uh trying to cook. Okay, so right now it is actually using the grap search GitHub. So we're going to say yes to actually see what else it is doing before we just let it cook. So it's just kind of telling us uh that it's going to go out and grab and look for these JavaScript patterns. So, we're going to say yes. Uh, and I think I'm going to go back and grab the same message that I asked originally so that it's not uh not using the um we're not gruffing through the codebase. So, this is actually going out and finding the repo. So this looks like it is a much better method. Uh yeah, and it returned a bunch of common practices. Very cool. All right, so let's try this with use the grap MCP to find more information on it. Uh oh, I misspelled ant design view.js best practices. And then the last thing I kind of want to show you again while this is cooking is uh we'll go back and look at gp.app. So they actually made a website for this. So you can actually do like ant design and it'll pull back a bunch of different repositories and different code paths uh different languages that are all mentioning ant design and how you can actually use it. So if we wanted to go down into TypeScript, we can kind of see where uh some of these things are being used and at least the phrase. So we could also go and look at MCP. We're seeing a lot of MCP servers. So this is a really cool like web UI that you can actually leverage. So let's take a look. Oh, we're still going crazy over there. So definitely pulling back more more information. So I'm going to let this Oh. So So now we have our more results. Uh I'm going to let this run. All right. So that ran for like another minute. Um but look at this. We uh found a ton of different examples. That's the MCP part. So here's our new latest query and basically we found uh a bunch of different patterns using about 58,000 tokens and put together a list of important strategies. So different things that you can then take and pull into your code. So what's kind of interesting about this is we could actually use this to build out uh our PRD for what is uh the product that we're actually trying to make and any kind of best practices that we would want. So we could use this for more instructions later on. So, not only can we use this in our coding, but we can actually use this in our prompting or our context engineering so that we can actually bring in more information into how we can actually uh improve the results that we're getting from the LL. All right, that's it for us today everyone. So, what we went through was the GPM MCP, how we can actually look at different GitHub repos, how we can actually pull that into our codebase. With that, happy nerding. --- *Generated for LLM consumption from nerding.io video library*