Skip to main content
MCP server CX Codex

gk-cli — Claude Code MCP server: what it does, how to install

A local MCP server for working with Git, GitHub, GitLab, Bitbucket and Jira through an AI agent. It also supports workflows across multiple repositories.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add gk-cli -- npx -y @gitkraken/gk
Open on GitHub

What gk-cli does

gk-cli connects an agent to GitKraken CLI and exposes actions for Git, GitHub, Jira and other code-hosting services. Its Work Items can group several repositories under one task, after which AI features can create commit messages and Pull Requests.

The server runs locally through npx. The CLI includes commands for authentication, issues, work items and workspaces, plus a passthrough for regular Git commands through gk. Claude Code can add the server with the command shown below.

A Nerd Font is needed for terminal icons. Safari and Brave do not respond to the localhost redirect on port 1314, so browser authentication can hang there; use another browser for that step.

What it helps with

  • group several repositories under one work item
  • generate an AI commit after code changes
  • open a Pull Request from a work item
  • manage issues through an MCP server
  • pass Git commands to an agent

Example prompts for the agent

  • Connect gk-cli and turn the changes in the current Work Item into a commit.
  • Use gk-cli to add ./path/to/repo to the current work item.
  • Create a Pull Request for the current Work Item with AI through gk-cli.

How to install gk-cli

Platform CLI

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

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about gk-cli

How do I install gk-cli in Claude Code?

Run claude mcp add gk-cli -- npx -y @gitkraken/gk. This adds the local MCP server to Claude Code.

What does gk-cli do?

gk-cli connects an AI agent to Git, GitHub, GitLab, Bitbucket, Jira and GitKraken capabilities. It supports multi-repository work items, issues, commits and Pull Requests.

Why can gk-cli authentication hang in the browser?

Safari and Brave do not respond to the localhost redirect on port 1314. Use another browser for authentication.

Similar MCP servers

Everything for Git and GitHub →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor