GitKraken MCP Server

Local git, pull request and issue tools from GitKraken's gk command-line program

Official · GitKraken Local · stdio Git and code hostingProductivity

83 popularity score ★ 463 ↓ 87k/wk

Connect your client

Local (npm)

Add in one click

Opens the app, which asks before it adds the server.

Or add it by command or config

FirstTerminal
npm i -g @gitkraken/gk
gk auth login
Claude CodeTerminal
claude mcp add gitkraken -- gk mcp
Claude Desktopclaude_desktop_config.json
{
  "mcpServers": {
    "gitkraken": {
      "command": "gk",
      "args": [
        "mcp"
      ]
    }
  }
}
Cursor~/.cursor/mcp.json
{
  "mcpServers": {
    "gitkraken": {
      "command": "gk",
      "args": [
        "mcp"
      ]
    }
  }
}
VS Code.vscode/mcp.json
{
  "servers": {
    "gitkraken": {
      "type": "stdio",
      "command": "gk",
      "args": [
        "mcp"
      ]
    }
  }
}
Codex~/.codex/config.toml
[mcp_servers.gitkraken]
command = "gk"
args = ["mcp"]
Gemini CLITerminal
gemini mcp add --scope user gitkraken gk -- mcp

What it does

The GitKraken MCP Server is the `mcp` subcommand of `gk`, GitKraken's command-line program. Once `gk` is installed and signed in to a GitKraken account, an editor or agent starts it as `gk mcp` over stdio, and it runs on your own machine.

Its tools fall into four groups. Git tools work on the local repository: status, staging and committing, blame, branches, checkout, log and diff, stash, worktrees and push. Pull request and issue tools go through the integrations connected to your GitKraken account (GitHub, GitLab, Bitbucket, Jira and Azure DevOps are named in its docs) to list work assigned to you, read details and comments, post reviews and comments, and create issues and pull requests. A further tool lists GitKraken workspaces, and four GitLens tools open GitLens views such as Launchpad, the commit composer or a review worktree inside a VS Code-based editor.

The same server ships bundled with the GitLens extension (version 17.5 and later), which sets it up automatically in VS Code, Cursor, Windsurf and Trae; for other clients such as Claude Desktop, Claude Code, Gemini CLI or JetBrains AI Assistant you install the CLI and add `gk mcp` by hand, or run `gk mcp install <PLATFORM>`.

What it needs

RuntimeNode.js

The `gk` CLI installed (Homebrew, Winget, Snap, .deb/.rpm, release binary, or `npm i -g @gitkraken/gk`) on macOS, Windows or Linux, and signed in with `gk auth login` to a GitKraken account. Issue, pull request and private-repository tools need a GitKraken Pro plan or higher; Jira Data Center and Azure DevOps Server need Advanced or higher; the GitLens tools need GitLens and a GitLens plan. On Windows, Cursor users need the current Visual C++ Redistributable.

Limits

Hosted pull request, issue and private-repository tools are behind paid GitKraken plans; on the free plan the git tools and public-repo file reads remain. The GitLens tools only work inside a VS Code-based editor with GitLens. Assigning a new pull request to yourself works on GitHub and GitLab only; Azure DevOps and Bitbucket return a warning. GitKraken says the tool list changes over time as tools are added and merged, and its npm README and help pages list slightly different tool names. Browser sign-in can hang in Safari and Brave, which block the localhost callback on port 1314.

Who it suits

Suits developers who already use GitKraken or GitLens and want one local server that covers local git plus pull requests and issues across several hosts and Jira, with sign-in handled once through their GitKraken account. Less suited to someone without a GitKraken account or a paid plan, since the hosted PR and issue tools need Pro or higher, or to anyone who wants a server talking directly to a single code host with its own token and no third-party account in between.

Tools 24

git_add_or_commit
Stage files or record a commit with a message, chosen by an action parameter
git_blame
Show which commit and author last changed each line of a file
git_branch
List branches or create a new one
git_checkout
Switch to a branch or restore files in the working tree
git_log_or_diff
Show the commit history or the differences between commits
git_push
Push local commits to a remote
git_stash
Set aside uncommitted changes in a stash
git_status
Report the state of the working tree
git_worktree
List existing worktrees or add a new one
gitkraken_workspace_list
List the GitKraken workspaces on your account
gitlens_commit_composer
Open the GitLens commit composer
gitlens_launchpad
Open GitLens Launchpad
gitlens_start_review
Fetch a pull request, open it in a new worktree and window with its diff, and start an agent reviewing it
gitlens_start_work
Fetch an issue, open a new worktree and window for it, and start an agent working on it
issues_add_comment
Post a comment on an issue
issues_assigned_to_me
List the issues assigned to the signed-in user
issues_create
Open a new issue
issues_get_detail
Fetch full details of one issue by its ID
pull_request_assigned_to_me
Find pull requests you authored, are assigned to or are asked to review
pull_request_create
Open a new pull request, optionally assigned to yourself
pull_request_create_review
Submit a review on a pull request
pull_request_get_comments
Fetch every comment on a pull request
pull_request_get_detail
Fetch the details of one pull request
repository_get_file_content
Read a file's contents from a hosted repository

Similar servers