Configure the Greptile MCP server in your IDE to access code analysis tools and review data.Documentation Index
Fetch the complete documentation index at: https://www.greptile.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Setup in Claude Code
Get Your Greptile API Key
Obtain your API key from app.greptile.com/settings/organization/api (Settings > Organization > API Keys).
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/settings/organization/api (Settings > Organization > API Keys).
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.
Setup in Codex CLI
Get Your API Key
Get your Greptile API key from app.greptile.com/settings/organization/api (Settings > Organization > API Keys).
Verify Server Installation
Check that the server was added:You should see
greptile in the list of configured servers.Alternative: Project-Level Configuration
For team-shared configuration, create a.codex/config.toml file in your project root:
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