MCP Hub
Back to servers

Gitopia MCP Server

Decentralized Git with on-chain governance, bounties, and DAOs. Tools for repos, issues, PRs, labels, releases, bounties, and DAO proposals. Auto-wallet on first use, trust tiers, and approval mode for human-in-the-loop.

glama
Updated
Apr 3, 2026

Gitopia MCP Server

MCP server for Gitopia — decentralized Git with on-chain governance, bounties, and DAO management. Works with Cursor, VS Code, Claude Code, Claude Desktop, Windsurf, and any MCP-compatible tool.

57 tools | 3 prompts | 4 resource templates

Zero-config start: a wallet is auto-generated on first use. No setup beyond pasting a config snippet.

Quick Start

Docker (Recommended)

docker pull ghcr.io/gitopia/gitopia-mcp-server:latest

Then add the config for your editor (see Editor Setup below).

Native Binary

Download from GitHub Releases, or:

go install github.com/gitopia/gitopia-mcp-server/cmd/server@latest

Requires Go 1.25+ and git-remote-gitopia (curl https://get.gitopia.com | bash).

Editor Setup

OpenAI Codex
codex mcp add gitopia -- docker run --rm -i --platform linux/amd64 \
  -v "${HOME}/.mcp/gitopia:/home/mcp/.mcp/gitopia" \
  -e MCP_WORKSPACE_PATH=/home/mcp/.mcp/gitopia/workspace \
  ghcr.io/gitopia/gitopia-mcp-server:latest stdio

Or add to ~/.codex/config.toml:

[mcp_servers.gitopia]
command = "docker"
args = [
  "run", "--rm", "-i", "--platform", "linux/amd64",
  "-v", "${HOME}/.mcp/gitopia:/home/mcp/.mcp/gitopia",
  "-e", "MCP_WORKSPACE_PATH=/home/mcp/.mcp/gitopia/workspace",
  "ghcr.io/gitopia/gitopia-mcp-server:latest", "stdio"
]

Full Codex guide

Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "gitopia": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i", "--platform", "linux/amd64",
        "-v", "${HOME}/.mcp/gitopia:/home/mcp/.mcp/gitopia",
        "-v", "${PWD}:/workspace", "-w", "/workspace",
        "-e", "MCP_WORKSPACE_PATH=/workspace",
        "ghcr.io/gitopia/gitopia-mcp-server:latest", "stdio"
      ],
      "env": {}
    }
  }
}

Full Claude Code guide

Cursor

Add to ~/.cursor/mcp.json (macOS) or %APPDATA%\Cursor\mcp.json (Windows):

{
  "mcpServers": {
    "gitopia": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i", "--platform", "linux/amd64",
        "-v", "${HOME}/.mcp/gitopia:/home/mcp/.mcp/gitopia",
        "-v", "${workspaceFolder}:/workspace", "-w", "/workspace",
        "-e", "MCP_WORKSPACE_PATH=/workspace",
        "ghcr.io/gitopia/gitopia-mcp-server:latest", "stdio"
      ],
      "env": {}
    }
  }
}

Full Cursor guide

VS Code

Full VS Code guide

Windsurf

Full Windsurf guide

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{
  "mcpServers": {
    "gitopia": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i", "--platform", "linux/amd64",
        "-v", "${HOME}/.mcp/gitopia:/home/mcp/.mcp/gitopia",
        "-e", "MCP_WORKSPACE_PATH=/home/mcp/.mcp/gitopia/workspace",
        "ghcr.io/gitopia/gitopia-mcp-server:latest", "stdio"
      ],
      "env": {}
    }
  }
}

Using an existing wallet? Set GITOPIA_MNEMONIC in your shell, then add "-e", "GITOPIA_MNEMONIC" to the Docker args. Never hardcode mnemonics in config files.

Tools (57)

Context Management (4)

ToolDescription
get_user_contextGet current identity, address, and available DAOs
set_active_daoSwitch operations to a DAO context
refresh_user_contextReload user info from chain
claim_fee_grantClaim fee grant from faucet

User Management (1)

ToolDescription
create_userCreate on-chain Gitopia user for wallet

Repository Management (7)

ToolDescription
list_reposList repositories for owner
create_repoCreate remote repository
get_repoGet repository details
list_branchesList branches
get_file_contentsRead file without cloning
fork_repositoryFork a repository
toggle_repository_forkingEnable/disable forking

Tags, Commits, Releases (4)

ToolDescription
list_tagsList version tags
list_commitsBrowse commit history for a branch
list_releasesList published releases
create_releasePublish a new release

Issue Management (5)

ToolDescription
list_issuesList issues
get_issueGet full issue details
create_issueCreate issue (on-chain)
comment_on_issueComment on issue (on-chain)
update_issueUpdate state, labels, assignees

Pull Request Management (6)

ToolDescription
list_pull_requestsList PRs
get_pull_requestGet full PR details
get_pull_request_diffGet unified diff for a PR
create_pull_requestCreate PR (on-chain)
comment_on_pull_requestComment on PR (general or inline)
merge_pull_requestMerge PR (on-chain)

Git Operations (5)

ToolDescription
git_cloneClone repository to workspace
git_pushPush commits to remote
create_feature_branchCreate and checkout new branch
sync_with_remoteFetch and merge/rebase
commit_and_push_changesStage + commit + push in one step

Workflow Orchestration (3)

ToolDescription
bootstrap_repoCreate remote + local init + files + push
create_feature_branch_prBranch + changes + commit + push + PR
update_feature_branchAdd commits to existing branch/PR

Label Management (3)

ToolDescription
list_labelsList repository labels
create_labelCreate label (on-chain)
delete_labelDelete label (on-chain)

DAO & Governance (9)

ToolDescription
get_daoGet DAO details including group_id and group_policy_address
create_daoCreate DAO with members and voting
dao_list_membersList DAO members and weights
dao_list_proposalsList governance proposals
dao_get_proposalGet proposal details with tally
dao_update_membersAdd/remove/change member weights
dao_submit_proposalCreate governance proposal
dao_voteVote on proposal
dao_execExecute passed proposal

Bounty Management (6)

ToolDescription
list_bountiesDiscover bounties
get_bountyGet bounty details
create_bountyAttach crypto reward to issue
update_bountyModify bounty expiry
close_bountyDeactivate bounty
delete_bountyPermanently remove bounty

Batch & Approval (4)

ToolDescription
batch_executeExecute up to 10 ops in one transaction
confirm_transactionBroadcast pending transaction
reject_transactionCancel pending transaction
list_pending_transactionsList pending transactions

Prompts

PromptDescription
fix-issueComplete workflow: clone, branch, fix, test, PR
review-prReview a pull request: inspect, comment, approve
hunt-bountyDiscover bounties, evaluate, claim, fix, submit

Security

  • Trust tiers gate tool access: readonly < localwrite < chainwrite
  • Rate limiting on chain-write operations (default 10/min, 100/hr)
  • Message allowlist only signs /gitopia.gitopia.gitopia.* and /cosmos.group.v1.*
  • Workspace isolation blocks path traversal attacks
  • Approval mode holds transactions for explicit confirmation before broadcast
  • Non-root Docker containers run as unprivileged user

See SECURITY.md for vulnerability reporting.

Configuration

VariableDefaultDescription
GITOPIA_MNEMONICauto-generatedBIP-39 wallet mnemonic
GITOPIA_GRPC_ENDPOINTSgitopia-grpc.polkachu.com:11390gRPC endpoints
TRUST_LEVELchainwritereadonly, localwrite, chainwrite
TOOLSETSallComma-separated toolsets to enable (see below)
DRY_RUNfalsePreview transactions without broadcasting
APPROVAL_MODEfalseRequire confirmation before chain writes
MCP_WORKSPACE_PATH~/.mcp/gitopia/workspaceWorkspace root
MCP_LOG_LEVELinfoLog level
TRANSPORTstdiostdio or http
PORT8080HTTP listen port (when TRANSPORT=http)

See env.example for the full list.

Toolsets

Control which tools are exposed to the MCP client. Useful for reducing context window usage in AI assistants.

ToolsetToolsDescription
core52All tools except workflow orchestrators (always included)
workflow5bootstrap_repo, create_feature_branch, create_feature_branch_pr, update_feature_branch, commit_and_push_changes
  • TOOLSETS=all (default): All 57 tools
  • TOOLSETS=core: 52 tools (hides workflow orchestrators)
  • TOOLSETS=core,workflow: Same as all

For Claude Code users, TOOLSETS=core is recommended since Claude can orchestrate git operations natively.

Development

go build ./cmd/server          # build
go test ./...                  # test
go vet ./...                   # lint
docker build -t gitopia-mcp-server:latest .  # docker

See CONTRIBUTING.md for development guidelines.

License

MIT

Reviews

No reviews yet

Sign in to write a review