Skip to main content
Greptile MCP uses OAuth for authentication.

OAuth setup

OAuth signs you in through your browser. You do not need to register an OAuth client.
1

Open MCP settings

Open Customize and select MCPs.
2

Add Greptile

Add this configuration to project-level .cursor/mcp.json or user-level ~/.cursor/mcp.json:
3

Sign in

Ask Cursor:
On the first protected tool call, follow the browser prompt to sign in.
4

Verify the connection

Run the same prompt again. A successful list_custom_context result confirms authentication. Seeing Greptile’s tools in settings confirms discovery, but not authentication.

Troubleshooting

MCP discovery can succeed before authentication is complete. Run claude mcp login greptile or codex mcp login greptile. In Cursor or VS Code, invoke a protected tool such as list_custom_context, then finish the OAuth prompt.
A static Authorization header or bearer-token setting from an earlier setup can prevent OAuth sign-in. Remove it from the Greptile server entry, restart the client, then invoke a protected tool such as list_custom_context to start the OAuth prompt.
Claude Code users can run claude mcp login greptile --no-browser and open the printed URL manually. In Cursor or VS Code, invoke a protected tool such as list_custom_context to trigger authentication.
Your account belongs to multiple Greptile organizations. Ask your agent to call get_me to list them, then pass the organization’s handle or id as the organization argument on subsequent tool calls.
Restart the client, confirm Greptile is enabled, and check that the server URL is exactly https://api.greptile.com/mcp.
Confirm that your organization has repositories indexed in Greptile and that your user account can access them.

Configuration file locations

Next steps

Auto-Fix Workflow

Resolve Greptile comments from your IDE.

Tools Reference

Read the tools reference.