GT MCP is currently in beta. For the latest features, use the beta CLI.

GT MCP allows AI agents to run Graphite CLI commands, automatically breaking down large AI-generated changes into smaller, reviewable stacked pull requests.

Installation

GT MCP is built into the Graphite CLI. Install the beta CLI:

Terminal
# Install beta via Homebrew (recommended)
brew install withgraphite/tap/graphite-beta

# Or install beta via npm
npm install -g @withgraphite/graphite-cli@beta

Setup

Claude Code

Terminal
claude mcp add graphite gt mcp

Cursor IDE

Add an MCP integration in Cursor settings:

{
  "mcpServers": {
    "graphite": {
      "command": "gt",
      "args": ["mcp"]
    }
  }
}