API Key Setup
1
Get API Key
Sign up or log in at app.greptile.com and copy your API key.
2
Test API Access
Verify your key works by testing with curl:You should receive a JSON-RPC response indicating the server is available.
MCP Client Configuration
Claude Desktop
Location:~/Library/Application Support/Claude/claude_desktop_config.json
(macOS)
Custom Applications
Direct HTTP Integration:Authentication Verification
1
Check MCP Connection
Run
claude mcp list
to confirm the server shows as connected:2
Test Tools
Ask Claude to use Greptile tools:
- “What custom context does my organization have?”
- “List recent merge requests”
- “Search for security-related comments”
3
Verify Data Access
Confirm the tools return your organization’s actual data, not errors.
Common Authentication Errors
Invalid API Key:Security Best Practices
- Store API keys in environment variables, not code
- Use separate API keys for different environments
- Rotate API keys regularly
- Monitor API key usage in Greptile dashboard
- Restrict API key permissions to minimum required scope