概要
What is Greptile?
A TypeScript-powered MCP server that provides AI-powered code search and querying through the Greptile API, enabling natural language queries, deep code analysis, and cross-repository insights. It is built with the official MCP SDK and designed for integration with AI tools like Claude Desktop and Continue.
How to use Greptile?
Run npx greptile-mcp-server --api-key=xxx --github-token=yyy for instant start, or set environment variables GREPTILE_API_KEY and GITHUB_TOKEN. Use tools like index_repository and query_repository from any MCP-compatible client. An interactive setup wizard is available with npx greptile-mcp-server init.
Key features of Greptile
- Zero-installation experience via NPX
- Natural language queries about codebases
- Deep code analysis and architecture understanding
- Cross-repository insights and comparisons
- Session continuity for progressive exploration
- Streaming support with Server-Sent Events
Use cases of Greptile
- Ask plain‑English questions about a codebase’s architecture and patterns.
- Index multiple repositories and compare implementation approaches.
- Build understanding of a large project incrementally through conversational sessions.
- Debug or explore private repositories by granting a GitHub token with repo permissions.
FAQ from Greptile
Do I need to install anything locally to use Greptile?
No; the server runs via NPX with zero installation. Just run npx greptile-mcp-server.
Can I use Greptile with any MCP-compatible client?
Yes; it implements the standard Model Context Protocol and works with Claude Desktop, MCP CLI tools, and any other MCP-compatible client.
How do I index private repositories?
Ensure your GitHub token has repo permissions for the private repositories you want to index.
How long does it take to index a repository?
Indexing time varies by size – small repos (<1000 files) typically take 1–2 minutes, larger ones 10–15 minutes. Use get_repository_info to check status.
Is my code data secure?
Your code is processed by Greptile’s API according to their security and privacy policies. See Greptile’s security page for details.