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.
Install gk-cli
Built from the published package, never by AI.
claude mcp add gk-cli -- npx -y @gitkraken/gkRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"gk-cli": {
"args": [
"-y",
"@gitkraken/gk"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"gk-cli": {
"args": [
"-y",
"@gitkraken/gk"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"gk-cli": {
"args": [
"-y",
"@gitkraken/gk"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add gk-cli -- npx -y @gitkraken/gk{
"mcpServers": {
"gk-cli": {
"args": [
"-y",
"@gitkraken/gk"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add gk-cli npx -y @gitkraken/gkGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
