Skip to main content
Configure the Greptile MCP server in your IDE to access code review tools and custom context.
Prerequisite: Get your API key from app.greptile.com/settings/api

Setup by IDE

1

Open Settings

Click the ‘Settings’ icon or press Ctrl + Shift + J (Windows/Linux) or Cmd + Shift + J (macOS).
2

Go to Tools & MCP

Click Tools & MCP in the left sidebar.
Cursor Tools and MCP settings
3

Add Custom MCP

Click Add Custom MCP.
Add custom MCP button
4

Configure mcp.json

Add the following configuration:
{
  "mcpServers": {
    "greptile": {
      "type": "http",
      "url": "https://api.greptile.com/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_GREPTILE_API_KEY"
      }
    }
  }
}
Replace YOUR_GREPTILE_API_KEY with your actual API key. Save the file.
5

Verify Connection

Return to Tools & MCP. You should see Greptile with all 11 tools enabled.
Greptile MCP enabled in Cursor

Verify Connection

Test your setup with curl:
curl -H "Authorization: Bearer YOUR_GREPTILE_API_KEY" https://api.greptile.com/mcp
Expected response:
{
  "jsonrpc": "2.0",
  "id": null,
  "result": {
    "protocolVersion": "2025-03-26",
    "capabilities": {"tools": {}},
    "serverInfo": {"name": "Greptile MCP Server", "version": "1.0.0"}
  }
}

Troubleshooting

Check:
  • API key is correct and hasn’t expired
  • URL is exactly https://api.greptile.com/mcp
  • Authorization header format: Bearer YOUR_API_KEY (with Bearer prefix)
Fix: Restart your IDE after making configuration changes.
Verify:
  • API key was copied without extra spaces
  • Your account has access to the repositories you’re querying
  • API key hasn’t been revoked
Test: Use the curl command above to verify your API key works.
Solutions:
  1. Restart your IDE completely
  2. Check server shows “Connected” or “Running” status
  3. Verify MCP is enabled in IDE settings
Check:
  • You have repositories indexed with Greptile
  • Your API key has access to those repositories
  • There are actual Greptile comments on your PRs

Configuration File Locations

IDEConfig File
Claude Code~/.mcp.json or project .mcp.json
Cursor~/.cursor/mcp.json
VS Code~/.config/Code/User/mcp.json (Linux)
~/Library/Application Support/Code/User/mcp.json (macOS)

Next Steps