AI Gateway and AI SDK Integration
Grep a million GitHub repositories via MCP

Grep a million GitHub repositories via MCP

7/17/2025

What this post added

This post introduces Grep's support for the Model Context Protocol (MCP), enabling AI applications to query a million public GitHub repositories via a standard HTTP interface. It details how Grep's MCP server allows AI agents to search for code snippets, filtered by language, repository, and file path, with results typically returning in under a second. Configuration examples for AI clients like Cursor and Claude Code are provided, along with a practical example of an AI agent using Grep's MCP server to find code related to error handling in MCP tools. The post also highlights the ease of building an MCP server using Vercel's `mcp-handler` package.

Read the original post ↗