Provides Git operations including cloning repositories, pushing commits, creating feature branches, syncing with remotes, and committing changes, enabling comprehensive local repository workflow management alongside Gitopia's decentralized remote features.
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:latestThen 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@latestRequires Go 1.25+ and git-remote-gitopia (curl https://get.gitopia.com | bash).
Editor Setup
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 stdioOr 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"
]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": {}
}
}
}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": {}
}
}
}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)
Tool | Description |
| Get current identity, address, and available DAOs |
| Switch operations to a DAO context |
| Reload user info from chain |
| Claim fee grant from faucet |
User Management (1)
Tool | Description |
| Create on-chain Gitopia user for wallet |
Repository Management (7)
Tool | Description |
| List repositories for owner |
| Create remote repository |
| Get repository details |
| List branches |
| Read file without cloning |
| Fork a repository |
| Enable/disable forking |
Tags, Commits, Releases (4)
Tool | Description |
| List version tags |
| Browse commit history for a branch |
| List published releases |
| Publish a new release |
Issue Management (5)
Tool | Description |
| List issues |
| Get full issue details |
| Create issue (on-chain) |
| Comment on issue (on-chain) |
| Update state, labels, assignees |
Pull Request Management (6)
Tool | Description |
| List PRs |
| Get full PR details |
| Get unified diff for a PR |
| Create PR (on-chain) |
| Comment on PR (general or inline) |
| Merge PR (on-chain) |
Git Operations (5)
Tool | Description |
| Clone repository to workspace |
| Push commits to remote |
| Create and checkout new branch |
| Fetch and merge/rebase |
| Stage + commit + push in one step |
Workflow Orchestration (3)
Tool | Description |
| Create remote + local init + files + push |
| Branch + changes + commit + push + PR |
| Add commits to existing branch/PR |
Label Management (3)
Tool | Description |
| List repository labels |
| Create label (on-chain) |
| Delete label (on-chain) |
DAO & Governance (9)
Tool | Description |
| Get DAO details including group_id and group_policy_address |
| Create DAO with members and voting |
| List DAO members and weights |
| List governance proposals |
| Get proposal details with tally |
| Add/remove/change member weights |
| Create governance proposal |
| Vote on proposal |
| Execute passed proposal |
Bounty Management (6)
Tool | Description |
| Discover bounties |
| Get bounty details |
| Attach crypto reward to issue |
| Modify bounty expiry |
| Deactivate bounty |
| Permanently remove bounty |
Batch & Approval (4)
Tool | Description |
| Execute up to 10 ops in one transaction |
| Broadcast pending transaction |
| Cancel pending transaction |
| List pending transactions |
Prompts
Prompt | Description |
| Complete workflow: clone, branch, fix, test, PR |
| Review a pull request: inspect, comment, approve |
| Discover bounties, evaluate, claim, fix, submit |
Security
Trust tiers gate tool access:
readonly<localwrite<chainwriteRate 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
Variable | Default | Description |
| auto-generated | BIP-39 wallet mnemonic |
|
| gRPC endpoints |
|
|
|
|
| Comma-separated toolsets to enable (see below) |
|
| Preview transactions without broadcasting |
|
| Require confirmation before chain writes |
|
| Workspace root |
|
| Log level |
|
|
|
|
| HTTP 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.
Toolset | Tools | Description |
| 52 | All tools except workflow orchestrators (always included) |
| 5 |
|
TOOLSETS=all(default): All 57 toolsTOOLSETS=core: 52 tools (hides workflow orchestrators)TOOLSETS=core,workflow: Same asall
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 . # dockerSee CONTRIBUTING.md for development guidelines.