Greptile MCP Server
Published
At a glance
- Category
- Code & Git
- Hosted by the vendor
- https://www.greptile.com/docs/mcp/overview
- Watch out for
- It only returns data for repositories your organization has indexed in Greptile and your account can access, so empty results usually mean nothing is indexed yet.
Greptile publishes its own MCP server so a coding assistant can reach the review data Greptile produces on your pull requests. Greptile is an AI code review product for GitHub and GitLab, and the server exposes its comments, reviews, custom coding standards and repository knowledge bases as tools. The point is to stop bouncing between the editor, GitHub and the Greptile dashboard when you are working through review feedback.
It is a hosted, remote server at https://api.greptile.com/mcp, reached over HTTP. No local package is needed. You sign in with OAuth through your browser the first time a protected tool runs, and Greptile's docs say you do not need to register an OAuth client yourself.
The docs pair the server with an auto-fix workflow: the agent fetches unaddressed comments on a PR, applies the suggested changes, triggers a fresh review and checks what is still open. Greptile also ships agent skills and a Claude Code plugin built around the same loop.
How it connects
Your AI app
An assistant or agent that supports MCP
Greptile MCP Server
Runs as
- Remote (HTTP)
Gives the agent
- Account and repositories
- Pull request comments
- Code reviews
- Comment search
- Custom context
- Knowledge base
- Analytics
Greptile
The data or system the tools act on
What it can do
- Account and repositories
- get_me returns your user and organizations, and list_repositories gives the repository handles and ids the other tools take, along with each repository's review status.
- Pull request comments
- list_pull_requests, get_merge_request and list_merge_request_comments let the agent find a PR and read Greptile's feedback on it, including which comments are still unaddressed.
- Code reviews
- list_code_reviews and get_code_review read past reviews, and trigger_code_review starts a new review on a PR after changes are pushed.
- Comment search
- search_greptile_comments searches across all Greptile comments, which helps spot issues that keep coming back across reviews.
- Custom context
- list_custom_context, get_custom_context, search_custom_context and create_custom_context let the agent view and add the team coding patterns Greptile reviews against.
- Knowledge base
- list_knowledge_bases, list_knowledge_base_documents, get_knowledge_base_document and search_knowledge_base read the synthesized documentation Greptile generates for an enrolled repository.
- Analytics
- list_analytics_filter_options, get_analytics_overview and list_analytics_findings return review analytics for reports.
Setting it up
In Claude Code, run claude mcp add --transport http greptile https://api.greptile.com/mcp, then sign in with claude mcp login greptile (or open /mcp, pick greptile and choose Authenticate; on SSH or headless machines add --no-browser and paste the redirect URL back). To share the definition with a team, put a .mcp.json in the project root with "greptile": {"type": "http", "url": "https://api.greptile.com/mcp"} under mcpServers, and each developer signs in separately. In Cursor, add the same URL under mcpServers.greptile in .cursor/mcp.json or ~/.cursor/mcp.json. In VS Code, run MCP: Add Server, choose HTTP and enter the URL. For Codex, run codex mcp add greptile --url https://api.greptile.com/mcp and then codex mcp login greptile. To confirm it works, ask the assistant to list your Greptile custom context rules; a successful list_custom_context result means authentication went through.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Pull the unaddressed Greptile comments on the current PR, apply the suggested fixes, and trigger a new review.
- Check which review comments are resolved before merging a branch.
- Search past Greptile comments for a recurring issue and turn it into a custom context rule.
- Read a repository's Greptile knowledge base to get oriented in an unfamiliar subsystem.
- Pull an analytics overview of review findings for a team report.
Limitations and things to watch
- It only returns data for repositories your organization has indexed in Greptile and your account can access, so empty results usually mean nothing is indexed yet.
- Tool discovery can succeed before OAuth is finished, so tools may show up in the client but return unauthorized until you sign in.
- A static Authorization header left over from an earlier setup can stop the OAuth prompt from appearing until you remove it.
- Accounts in several Greptile organizations get a tenant_required error and must pass the organization handle or id on later calls.
- Knowledge base tools return an error on deployments without knowledge base storage configured, including self-hosted installs that have not set it up.
Sources
Written from the project's own documentation, checked November 2026.
- greptile.com /docs/mcp/overview
- greptile.com /docs/mcp/setup
- greptile.com /docs/mcp/tools
- greptile.com /llms.txt
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.