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.
claude mcp add gk-cli -- npx -y @gitkraken/gkWhat 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-cliand turn the changes in the current Work Item into a commit. - Use
gk-clito add./path/to/repoto 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/gkPlatform CLI
codex mcp add gk-cli -- npx -y @gitkraken/gkConfig file
{
"mcpServers": {
"gk-cli": {
"command": "npx",
"args": [
"-y",
"@gitkraken/gk"
]
}
}
}Config file
{
"servers": {
"gk-cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@gitkraken/gk"
]
}
}
}Platform CLI
gemini mcp add gk-cli npx -y @gitkraken/gkStep 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.