MCP Documentation

Getting Started with the GitKraken MCP Server

Last updated: October 2025

You can install the GitKraken MCP Server through GitLens or the GitKraken CLI. This guide walks you through installation in supported IDEs.

Install via GitLens

The GitKraken MCP Server is bundled with GitLens for VS Code version 1.101.0 and later. No manual setup is required.

If you’re using an older version of VS Code (prior to 1.101.0), install the MCP Server from the command palette in VS Code, Cursor, Windsurf, or other VS Code–based IDEs.

Install the MCP Server from the command palette in GitLens.
Open the command palette to install the GitKraken MCP Server.

You can also install the MCP Server directly using the following deeplinks:

Each link handles all required configuration automatically.

Verify installation

  1. Ensure you are in Agent Mode.
  2. Click the gear icon in the lower-right corner of the Copilot side panel.
Copilot gear icon in VS Code for MCP configuration.
Access MCP settings from the Copilot panel gear icon.
  1. Scroll through the list of available MCP servers.
  2. Locate MCP Server: GitKraken (bundled with GitLens).
MCP Server: GitKraken listed in bundled GitLens tools.
The GitKraken MCP Server appears in the bundled tools list.

GitKraken CLI

You can also install the GitKraken MCP Server using the GitKraken CLI. Follow these steps to set up the MCP Server across different IDEs.

After installation, run the following command in your terminal to authenticate with your GitKraken account:

gk auth login

Once authenticated, add the MCP server to your preferred agent.


VS Code

To install the MCP server in VS Code, use the command palette:

  1. Open the command palette and select MCP: Add server…
Command palette showing MCP: Add server option in VS Code.
Use the VS Code command palette to add a new MCP server.
  1. When prompted, select stdio as the server type.
VS Code dialog for selecting MCP server type as stdio.
Select stdio as the server type.
  1. In the next prompt, enter the following command:
gk mcp
VS Code prompt showing gk mcp command entry.
Enter gk mcp as the server command.
  1. Provide a name for the server and press Enter.
VS Code dialog for naming the MCP server.
Assign a name to the GitKraken MCP Server.
  1. To verify, make sure you are in Agent Mode, then click the gear icon in the lower-right corner of the Copilot side panel.
Copilot side panel gear icon for MCP settings in VS Code.
Access the list of installed MCP servers from the Copilot panel.

Note: MCP Tools must be enabled in VS Code settings for the server to function.


Cursor

To install the MCP server in Cursor:

  1. Open the command palette and select View: Open MCP Settings.
Cursor IDE command palette showing View: Open MCP Settings.
Access MCP settings from the command palette in Cursor.
  1. If no servers are installed, click Add Custom MCP to begin setup.
Cursor MCP settings screen showing Add Custom MCP button.
Add a new custom MCP server in Cursor.
  1. Add the GitKraken MCP server configuration to the JSON file:
{
  "mcpServers": {
    "gitkraken": {
      "command": "gk",
      "args": ["mcp"]
    }
  }
}

Note: Windows users must have the latest Microsoft Visual C++ Redistributable installed.


Claude Desktop

To configure the MCP server in Claude Desktop:

  1. From the app toolbar, open Settings, then navigate to the Developer tab.
Claude Desktop settings window showing Developer tab.
Open the Developer tab in Claude Desktop settings.
  1. Click Edit Config to open the claude_desktop_config.json directory.
  2. Edit the file and paste in the following JSON:
{
  "mcpServers": {
    "gitkraken": {
      "command": "gk",
      "args": ["mcp"]
    }
  }
}
  1. Save the file and restart Claude Desktop.

JetBrains IntelliJ

To add the GitKraken MCP Server to JetBrains IntelliJ:

JetBrains AI Assistant is required.

  1. Navigate to Settings > Tools > AI Assistant > Model Context Protocol (MCP).
  2. Click Add to create a new MCP server configuration.
  3. In the dialog, select As JSON from the dropdown.
  4. Paste the following configuration:
{
  "mcpServers": {
    "gitkraken": {
      "command": "gk",
      "args": ["mcp"]
    }
  }
}

Next Steps

After completing installation, visit our Example Workflows to explore how the GitKraken MCP Server can simplify your daily development tasks.

Have feedback about this article? Did we miss something? Let us know!
On this page