GitKraken MCP
OfficialThis server connects AI assistants to GitKraken workflows, enabling git operations, issue tracking, and pull request management across multiple providers.
Git repository operations: run git commands like add, commit, checkout, push, pull, fetch, stash, and create/list/delete branches.
Pull request management: create pull requests, create reviews (with approval), fetch assigned PRs, get PR details and files, and retrieve comments.
Issue tracking: fetch issues assigned to you, get detailed issue information (including Jira epic children), and add comments to issues.
Provider support: works with GitHub, GitLab, Bitbucket, Azure DevOps, Jira, and Linear; includes provider-specific parameters like Azure project/organization.
GitKraken-specific tools: use GitLens commit composer to organize changes into well-formed commits; get prioritized open pull requests via Launchpad; start work by creating and linking a branch to an issue.
Workspace and preferences: list GitKraken workspaces and update user preferences such as default collapsed state of the Git Graph overview.
Context-aware assistance: can include review focus or implementation context only when explicitly provided by the user.
Enables interaction with Bitbucket repositories, issues, pull requests, and workflows.
Enables interaction with GitHub repositories, issues, pull requests, and workflows.
Enables interaction with GitLab repositories, issues, merge requests, and workflows.
Enables interaction with Jira issues and projects.
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:toolsThe 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-toolsCheck tools.json against the clean image:
npm install
TOOLS_COMMAND='["docker","run","--rm","gitkraken-mcp:local","--list-tools"]' npm run check:toolsThe 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 -gFor 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-cliOr download it from the releases page and add it to your binaries folder:
mv ~/Downloads/gk /usr/local/bin/gkLinux / Ubuntu
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/gkOr 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.debor
sudo rpm -i ./gk.rpmWindows
gk is available from [Winget][winget] with the following command:
winget install gitkraken.cliTroubleshooting
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 gkSupport
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 toolsapp_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_commitADestructive
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_blameARead-only
Show what revision and author last modified each line of a file (git blame ).
Inputs: directory (required), file (required).
git_branchBDestructive
List or create branches (git branch).
Inputs: action (required), directory (required), branch_name.
git_checkoutBDestructive
Switch branches or restore working tree files (git checkout ).
Inputs: branch (required), directory (required).
git_fetchADestructive
Download objects and refs from another repository (git fetch).
Inputs: directory (required).
git_graphARead-only
Show the commit graph for a repository (git log --graph), will open a UI if client supports it.
Inputs: directory (required).
gitkraken_workspace_listARead-only
Lists all Gitkraken workspaces
gitlens_commit_composerARead-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_launchpadARead-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_reviewBRead-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_workBRead-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_diffARead-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_pullBDestructive
Fetch from and integrate with another repository or a local branch (git pull).
Inputs: directory (required).
git_pushADestructive
Update remote refs along with associated objects (git push).
Inputs: directory (required).
git_stashBDestructive
Stash the changes in a dirty working directory (git stash).
Inputs: directory (required), include_untracked, name, staged_only.
git_statusARead-only
Show the working tree status (git status), will open a UI if client supports it.
Inputs: directory (required).
git_worktreeBDestructive
List or add git worktrees (git worktree ).
Inputs: action (required), directory (required), branch, path.
issues_add_commentBDestructive
Add a comment to an issue
Inputs: comment (required), issue_id (required), provider (required), azure_organization, +3 more.
issues_assigned_to_meARead-only
Fetch issues assigned to the user
Inputs: provider (required), azure_organization, azure_project, page.
issues_get_detailARead-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_meARead-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_createCDestructive
Create a new pull request
Inputs: provider (required), repository_name (required), repository_organization (required), source_branch (required), +5 more.
pull_request_create_reviewBDestructive
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_commentsBRead-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_detailBRead-only
Get an specific pull request
Inputs: provider (required), pull_request_id (required), repository_name (required), repository_organization (required), +2 more.
repository_get_file_contentCRead-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
Scored across 28 tools
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 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.
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.
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
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
The OpenRouter MCP server plugs OpenRouter into the AI tools you already use. Once connected, your assistant can pull live OpenRouter data (models, prices, your credits, rankings, and docs) and send quick test messages, all without leaving your editor.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
Related MCP Servers
- FlicenseBqualityDmaintenanceThe Git MCP Server allows AI assistants to perform enhanced Git operations via the Model Context Protocol, supporting core Git functions, branch and tag management, GitHub integration, and more.216-
- AlicenseNot gradedqualityNot gradedmaintenanceA lightweight MCP server that enables AI assistants to manage local Git repositories by executing commands like status, add, and commit. It streamlines development workflows by providing repository context and diffs directly to the assistant.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA modular MCP server integrating Jira and GitHub to automate developer workflows, enabling AI agents to manage issues, branches, commits, and pull requests directly from the IDE.MIT
- AlicenseNot gradedqualityCmaintenanceMCP server enabling AI agents to interact with workplace tools like GitHub, GitLab, Jira, Notion, and more via the Model Context Protocol.1MIT