Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

gk-cli

MCP server by gitkraken Verified · gitkraken.com

Gk-cli is the GitKraken command line tool with a local MCP server for git, Pull Requests and issues. It is for developers who work across multiple repos and git hosting providers.

  • Score 94
  • 472 stars
  • 128k a week
  • NOASSERTION
  • Updated

Install gk-cli

Built from the published package, never by AI.

claude mcp add gk-cli -- npx -y @gitkraken/gk

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install gk-cli in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the gk-cli block.

About

gk is the GitKraken command line interface. Its core feature is Work Items, which group the feature or issue you are working on. A Work Item can include several repos, so you can work across them as if they were a monorepo. The CLI also generates commit messages and Pull Requests with AI.

The project includes a local MCP server that wraps git, GitHub and Jira MCP actions. It gives AI assistants tools that work with GitKraken APIs and functionality. The source says the server helps streamline work with git and issue and git hosting providers. The CLI is available on macOS, Windows and Unix systems, and it passes any git command through to git. The source describes it for developers who manage code, issues and Pull Requests from the terminal or an AI application.

Written from the project's README and checked against it.

What you need

  • macOS, Windows or Unix system
  • GitKraken platform authentication via gk auth login
  • Provider tokens for git hosting services via gk provider

Try asking

  • Commit my staged changes with an AI generated message
  • Create a Pull Request for my current work item using AI
  • Add the repo at ../api-service to my current work item

Good to know

  • Safari and Brave do not respond to localhost port 1314, which can freeze gk login
  • Oh-My-Zsh aliases gk to gitk, so the alias must be removed
  • Manual macOS installs may trigger a security error that needs manual allowance

Security check

C
  • Asks for administrator rights (sudo)In README.md: sudo

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

What you can do with it

  • Generate commit messages with AI
  • Manage Work Items across several repos
  • Create Pull Requests from the terminal

Alternatives to gk-cli

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

gk-cli: common questions

Does gk-cli work with multiple repositories?

Yes. A Work Item can include several repos, and you can add more repos to it later. The source says this gives the same experience as working in a monorepo.

Can gk generate commit messages and Pull Requests with AI?

The source says gk provides AI-powered commit messages and Pull Request generation. It shows the commands gk work commit --ai and gk work pr create --ai.

Which operating systems does gk support?

The source says GitKraken CLI is available on macOS, Windows and Unix systems. Install instructions for each are in the README.

How do I install gk-cli?

In Claude Code run claude mcp add gk-cli -- npx -y @gitkraken/gk. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is gk-cli the official server?

gk-cli is published by gitkraken.com from its verified domain in the official MCP Registry.

Is gk-cli free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is gk-cli safe to use?

It scores 94 of 100. Grades: maintenance A, licence F, quality B. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.

What are alternatives to gk-cli?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does gk-cli work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

gk-cli Install

Add to stack

Loading.