Setup in Claude Code
Get Your Greptile API Key
Obtain your API key from app.greptile.com.
Add Greptile MCP Server
In your terminal, run the command to add the Greptile MCP server:Replace
YOUR_GREPTILE_API_KEY with your actual API key.Verify Server Installation
Check that the server was added successfully:You should see
greptile in the list of configured servers with ✓ Connected status.Alternative: Project-Level Configuration
For team-shared configuration, create a.mcp.json file in your project root:
Setup in Cursor
Get Your API Key
Get your Greptile API key from app.greptile.com.
Add New Server Configuration
Click “Add Server” and configure:
- Name:
greptile - Type: Select “HTTP”
- URL:
https://api.greptile.com/mcp - Headers: Add header with key
Authorizationand valueBearer YOUR_GREPTILE_API_KEY
Alternative: Project-Level Configuration
You can also configure MCP servers per-project by creating a.mcp.json file in your project root:
YOUR_GREPTILE_API_KEY with your actual Greptile API key, then restart Cursor.
Verification
Once configured, test the connection:Test Basic Functionality
Ask your IDE:
- “What custom context does my organization have?”
- “List recent merge requests”
- “Show me any security-related comments”
Troubleshooting
Connection Issues
Server shows as disconnected:- Verify API key is correct and hasn’t expired
- Check internet connection
- Ensure the endpoint URL is exactly
https://api.greptile.com/mcp
- Confirm API key has organization access
- Check that the bearer token format is correct
- Verify your account has access to the repositories you’re querying
- Restart your IDE after adding the server
- Check that the server shows as “Connected” in the status
- Verify the MCP client is properly configured
Common Fixes
Next Steps
Once configured, you can:- Resolve review comments automatically
- Access custom context for consistent coding patterns
- Explore advanced use cases for automation workflows