Skip to main content
Glama
GitKraken MCP
by gitkraken

GitKraken MCP Server

The GitKraken MCP Server turns your AI assistant into a context-aware development partner by connecting it to git history, branches, issues, pull requests, and multi-repo workflows through GitKraken. It works with all the providers you would expect from the GitKraken software suite such as GitHub, GitLab, Azure DevOps, Bitbucket, Jira and more. Built by the team behind GitLens, the Git tool that 48 million developers chose, from first-time contributors to enterprise teams at Netflix and Adobe.

The GitKraken MCP Server is available on macOS, Windows, and Linux systems and works in VS Code, Cursor, Windsurf, Claude Desktop, Kiro, JetBrains, and more.

If you want to read more about the MCP server, you can check out the introductory blog post.

Table of Contents

Related MCP server: GitPilot MCP

Tools

Tools are the primary purpose of the MCP server. They are a set of finely curated commands that AI can use to interact with GitKraken without exploding your context. Some of those tools include: issues_assigned_to_me, gitlens_commit_composer, and pull_request_create_review. A full list of tools can be found in the GitKraken Help Center's Tools Reference.

The repository also includes a Docker MCP Catalog-compatible tools.json. To refresh it from the GitKraken core version pinned in the Docker image, run:

npm run generate:tools

The generator builds the image before listing its tools, so Docker must be available. Set TOOLS_COMMAND to a JSON command array to use an existing image, or explicitly set GK_BIN to generate from a particular local executable. The generator intentionally excludes app-only tools that MCP agents must not call.

Prompts

Prompts are the secondary purpose of the MCP server. They are a set of carefully crafted instructions that AI can use to understand how to use the tools, when to use them, and what information to provide when using them. A full list of prompts can be found in the GitKraken Help Center's Prompts Reference.

Installation

There are a few ways of installing the MCP server. Regardless of which installation method you choose, you may still need to configure your AI tools to work with the MCP server. You can find a set of instructions on the Help Center's MCP Getting Started guide.

GitLens

GitLens is by far the easiest way of installing the MCP server. Simply download and install GitLens into a supported IDE (VS Code, Cursor, etc) and the MCP server will be installed alongside it. Once you have GitLens installed, you can start using the tools right away.

NPM

You can also install and use the MCP server via npm. You can find the package on the npm registry.

The installation process details may vary by AI tool, but the general gist is that you will replace the MCP server JSON config with something that looks like this:

{
  "mcpServers": {
    "GitKraken": {
      "args": ["@gitkraken/gk", "mcp"],
      "command": "npx",
      "type": "stdio"
    }
  }
}

Docker

This repository includes auth-independent Docker packaging for the local MCP server. The image can list tools and run local Git tools against explicitly mounted repositories. Cloud workspaces, issues, pull requests, and provider operations still require a supported non-interactive GitKraken authentication contract.

Build the image:

docker build -t gitkraken-mcp:local .

List the tools without authenticating:

docker run --rm gitkraken-mcp:local --list-tools

Check tools.json against the clean image:

npm install
TOOLS_COMMAND='["docker","run","--rm","gitkraken-mcp:local","--list-tools"]' npm run check:tools

The image starts gk mcp over stdio as the built-in non-root node user (UID/GID 1000:1000) by default. On native Linux, bind mounts preserve host ownership. If a mounted repository belongs to another UID, read operations may work while write operations fail with permission denied, unable to create '.git/index.lock', or a similar Git error.

For Docker MCP Toolkit, set the optional container_user configuration to your numeric host UID or UID:GID. Obtain those values with:

id -u
id -g

For example, use 1001 or 1001:1001. Leave container_user empty to retain the image default. Do not use root or broaden repository permissions as normal setup; select the numeric identity that already owns or can write the mounted repositories. One identity applies to the whole server, so every configured repository path must be accessible to that same UID and GID.

Only mount repository paths that the server should be allowed to read and modify. Linked Git worktrees also require access to the external Git directory referenced by their .git file. A draft registry entry is available in docker/catalog/server.yaml.template. Copy that template and tools.json into servers/gitkraken/ in a checkout of docker/mcp-registry when preparing the catalog pull request.

CLI

macOS

gk is available from Homebrew with the following command:

Homebrew:

brew install gitkraken-cli

Or download it from the releases page and add it to your binaries folder:

mv ~/Downloads/gk /usr/local/bin/gk

Linux / Ubuntu

Get it from the Snap Store

gk is available as a downloadable binary from the releases page. Once you have it, add it to your binaries folder:

mv ~/Downloads/gk /usr/local/bin/gk

Or create a new directory, move the binary and add it to $PATH:

mkdir "$HOME/cli"
mv ~/Downloads/gk "$HOME/cli"
export PATH="$HOME/gk:$PATH"

You can also [download][releases page] your corresponding package (.deb, .rpm) and install it with:

sudo apt install ./gk.deb

or

sudo rpm -i ./gk.rpm

Windows

gk is available from [Winget][winget] with the following command:

winget install gitkraken.cli

Troubleshooting

gk from Oh-My-Zsh

If you installed the gitkraken-cli and are using Oh-My-Zsh you can run into a small aliasing issue. Oh-My-Zsh has gitk aliased as gk by default and that can create some problems. To fix this, type in your terminal:

unalias gk

Support

If you run into any issues, double check if we have the problem covered in our Help Center.

You can give feedback and report bugs on GitHub by submitting an issue.

If you would like to reach out to Support directly, you can submit a ticket

Available Tools

28 tools
app_tool_boxA

Dispatch app-only helper actions for MCP apps. App-only; agents must not call this tool.

Inputs: action (required), directory, options.

app_update_user_preferencesA

Update GitKraken CLI user preferences for MCP apps. App-only; agents must not call this tool.

Inputs: git_graph_app_collapsed, git_status_app_collapsed.

git_add_or_commitA
Destructive

Add file contents to the index (git add ) OR record changes to the repository (git commit -m [files...]). Use the 'action' parameter to specify which action to perform.

Inputs: action (required), directory (required), files, message.

git_blameA
Read-only

Show what revision and author last modified each line of a file (git blame ).

Inputs: directory (required), file (required).

git_branchB
Destructive

List or create branches (git branch).

Inputs: action (required), directory (required), branch_name.

git_checkoutB
Destructive

Switch branches or restore working tree files (git checkout ).

Inputs: branch (required), directory (required).

git_fetchA
Destructive

Download objects and refs from another repository (git fetch).

Inputs: directory (required).

git_graphA
Read-only

Show the commit graph for a repository (git log --graph), will open a UI if client supports it.

Inputs: directory (required).

gitkraken_workspace_listA
Read-only

Lists all Gitkraken workspaces

gitlens_commit_composerA
Read-only

Gitlens Commit Composer. Organize your changes into well-formed commits with clear messages and descriptions. Useful for breaking large changes into smaller commits.

Inputs: directory (required), instructions.

gitlens_launchpadA
Read-only

Gitlens Launchpad. Gets your open pull requests prioritized by what needs attention: ready to merge, has conflicts, awaiting review, etc. Helpful for checking todos, outstanding tasks, or deciding what to work on next.

Inputs: directory (required).

gitlens_start_reviewB
Read-only

Gitlens Start Review. Creates a dedicated worktree and reviews your PR with an AI agent.

Inputs: directory (required), pr_url (required), instructions.

gitlens_start_workB
Read-only

Gitlens Start Work. Creates a work based on an issue. This tool will create a branch and link it with the issue, keeping context visible throughout your work.

Inputs: directory (required), issue_url (required), instructions.

git_log_or_diffA
Read-only

Show commit logs or changes between commits (git log --oneline or git diff).

Inputs: action (required), directory (required), authors, revision_range, +2 more.

git_pullB
Destructive

Fetch from and integrate with another repository or a local branch (git pull).

Inputs: directory (required).

git_pushA
Destructive

Update remote refs along with associated objects (git push).

Inputs: directory (required).

git_stashB
Destructive

Stash the changes in a dirty working directory (git stash).

Inputs: directory (required), include_untracked, name, staged_only.

git_statusA
Read-only

Show the working tree status (git status), will open a UI if client supports it.

Inputs: directory (required).

git_worktreeB
Destructive

List or add git worktrees (git worktree ).

Inputs: action (required), directory (required), branch, path.

issues_add_commentB
Destructive

Add a comment to an issue

Inputs: comment (required), issue_id (required), provider (required), azure_organization, +3 more.

issues_assigned_to_meA
Read-only

Fetch issues assigned to the user

Inputs: provider (required), azure_organization, azure_project, page.

issues_get_detailA
Read-only

Retrieve detailed information about a specific issue by its unique ID. For Jira Epics, the response includes a childIssues array containing all issues linked to the epic.

Inputs: issue_id (required), provider (required), azure_organization, azure_project, +2 more.

pull_request_assigned_to_meA
Read-only

Search pull requests where you are the author or assignee. Set reviewer to true to also include pull requests where you are a requested reviewer (github and gitlab only).

Inputs: provider (required), azure_project, is_closed, page, +3 more.

pull_request_createC
Destructive

Create a new pull request

Inputs: provider (required), repository_name (required), repository_organization (required), source_branch (required), +5 more.

pull_request_create_reviewB
Destructive

Create a review for a pull request

Inputs: provider (required), pull_request_id (required), repository_name (required), repository_organization (required), +3 more.

pull_request_get_commentsB
Read-only

Get all the comments in a pull requests

Inputs: provider (required), pull_request_id (required), repository_name (required), repository_organization (required), +1 more.

pull_request_get_detailB
Read-only

Get an specific pull request

Inputs: provider (required), pull_request_id (required), repository_name (required), repository_organization (required), +2 more.

repository_get_file_contentC
Read-only

Get file content from a repository

Inputs: file_path (required), provider (required), ref (required), repository_name (required), +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 28 tools

    Disambiguation4/5

    Most tools have distinct purposes, but git_add_or_commit and git_log_or_diff combine two actions into one tool, potentially causing confusion. The app-only tools are clearly marked, reducing ambiguity.

    Naming Consistency3/5

    Naming convention is mixed: git_ prefix for Git commands, gitkraken_ and gitlens_ for features, and issues_/pull_request_ for issue/PR tools. While each subgroup is consistent, the overall pattern is inconsistent.

    Tool Count3/5

    28 tools is on the high side for a single server, covering Git, GitKraken features, and issue/PR management. It may be slightly overwhelming but still within a reasonable range for the broad domain.

    Completeness4/5

    The tool set covers major Git operations, GitKraken workflows, and issue/PR management well. Minor gaps include lack of git branch delete, issue listing by criteria beyond assigned, and merged git operations could be separate.

    Related MCP Connectors

    Related MCP Servers