Setup in Claude Code
1
Get Your Greptile API Key
Obtain your API key from app.greptile.com.
2
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.3
Verify Server Installation
Check that the server was added successfully:You should see
greptile
in the list of configured servers with â Connected status.4
Start Claude Code Session
Open Claude Code and start a new session. The Greptile MCP server tools will be available automatically.
Alternative: Project-Level Configuration
For team-shared configuration, create a.mcp.json
file in your project root:
Setup in Cursor
1
Get Your API Key
Get your Greptile API key from app.greptile.com.
2
Open Cursor Settings
Go to Settings â Features â Model Context Protocol.
3
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
Authorization
and valueBearer YOUR_GREPTILE_API_KEY
4
Replace API Key
Replace
YOUR_GREPTILE_API_KEY
with your actual Greptile API key from step 1.5
Save and Restart
Click âSaveâ and restart Cursor to activate the MCP server connection.
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:1
Check Connection Status
In Claude Code, run
claude mcp list
to confirm:2
Test Basic Functionality
Ask your IDE:
- âWhat custom context does my organization have?â
- âList recent merge requestsâ
- âShow me any security-related commentsâ
3
Verify Data Access
Confirm the tools return your organizationâs actual data, not authentication errors.
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
1
Restart IDE
Close and reopen Claude Code or Cursor after configuration changes.
2
Check API Key
Test your API key with curl:
3
Verify Configuration
Double-check server URLs and authentication headers in your configuration.
Next Steps
Once configured, you can:- Resolve review comments automatically
- Access custom context for consistent coding patterns
- Explore advanced use cases for automation workflows