GitCode MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitCode MCP Serverlist open issues for user/project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitCode MCP Server
LLM Install Prompt — paste this into Claude Code, Gemini CLI, Codex, or OpenCode:
Clone https://github.com/ZoroPoskai/gitcode-mcp-server.git, create a Python venv inside it, pip install -r requirements.txt, then add it to my MCP config with command pointing to .venv/bin/python and args pointing to server.py. Set env GITCODE_TOKEN to <my-token> and GITCODE_TOOLSETS to core.
MCP server for the GitCode API, enabling Claude and other AI assistants to interact with GitCode repositories, issues, pull requests, and more.
Features
152 tools covering GitCode API v5 & v8
3 toolset levels to control context usage:
core(22 tools, ~2K tokens) — essential dev workflowextended(106 tools, ~10K tokens) — full CRUD operationsall(152 tools, ~15K tokens) — every available endpoint
Bearer token authentication
Async HTTP with connection pooling
Quick Start
Prerequisites
Python 3.10+
GitCode personal access token (get one here)
Install
git clone https://github.com/ZoroPoskai/gitcode-mcp-server.git
cd gitcode-mcp-server
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtConfigure Claude Code
Add to your ~/.claude.json:
{
"mcpServers": {
"gitcode": {
"type": "stdio",
"command": "/path/to/gitcode-mcp-server/.venv/bin/python",
"args": ["/path/to/gitcode-mcp-server/server.py"],
"env": {
"GITCODE_TOKEN": "your-token-here",
"GITCODE_TOOLSETS": "core"
}
}
}
}Configure Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"gitcode": {
"command": "/path/to/gitcode-mcp-server/.venv/bin/python",
"args": ["/path/to/gitcode-mcp-server/server.py"],
"env": {
"GITCODE_TOKEN": "your-token-here",
"GITCODE_TOOLSETS": "core"
}
}
}
}Toolsets
Level | Tools | ~Tokens | Description |
| 22 | ~2K | Repos, files, branches, commits, issues, PRs, search |
| 106 | ~10K | + labels, milestones, tags, releases, webhooks, orgs, members |
| 152 | ~15K | + enterprise, protected branches/tags, PR reviewers/testers |
Set via the GITCODE_TOOLSETS environment variable. Default: core.
You can also mix toolsets and individual tools by comma-separating them:
GITCODE_TOOLSETS=core,gitcode_list_releases,gitcode_list_tagsCore Tools (default)
Tool | Description |
| Get authenticated user profile |
| Get repository details |
| Search repositories |
| Get file or directory contents |
| Get raw file content |
| Create a new file |
| Update an existing file |
| List repository branches |
| Get branch details |
| List repository commits |
| Get a specific commit |
| List repository issues |
| Get a specific issue |
| Create a new issue |
| Comment on an issue |
| List pull requests |
| Get a specific pull request |
| Create a pull request |
| Merge a pull request |
| Comment on a pull request |
| List files changed in a PR |
| Search issues |
All Available Tools
Full reference of all 152 tools organized by category.
Repositories (11 tools)
Tool | Description |
| Get a repository |
| Delete a repository |
| Update repository settings |
| Get the README of a repository |
| List programming languages used |
| List contributors |
| List users who starred a repo |
| List users watching a repo |
| List forks |
| Fork a repository |
| Search repositories |
Events & Notifications (3 tools)
Tool | Description |
| List events for a repository |
| List notifications for a repository |
| Mark all notifications as read |
Files & Contents (8 tools)
Tool | Description |
| Get file or directory contents |
| Get a flat file list |
| Get raw file content |
| Get a git blob by SHA |
| Get a git tree by SHA |
| Create a new file |
| Update an existing file |
| Delete a file |
Branches (8 tools)
Tool | Description |
| List all branches |
| Get a single branch |
| Create a new branch |
| Delete a branch |
| List protected branches |
| Create branch protection rule |
| Update branch protection rule |
| Delete branch protection rule |
Commits (11 tools)
Tool | Description |
| List commits |
| Get a single commit |
| Compare two commits or branches |
| Get the diff for a commit |
| Get the patch for a commit |
| List comments on a commit |
| Comment on a commit |
| List all commit comments |
| Get a single commit comment |
| Update a commit comment |
| Delete a commit comment |
Issues (18 tools)
Tool | Description |
| List issues |
| Get a single issue |
| Create a new issue |
| Update an issue |
| List comments on an issue |
| Comment on an issue |
| Update an issue comment |
| Delete an issue comment |
| List all issue comments for a repo |
| Get a single issue comment |
| Add labels to an issue |
| Remove a label from an issue |
| Remove all labels from an issue |
| Replace all labels on an issue |
| Get branches related to an issue |
| List issues assigned to you |
| List issues for an organization |
| Search issues |
Pull Requests (31 tools)
Tool | Description |
| List pull requests |
| Get a single pull request |
| Create a pull request |
| Update a pull request |
| List files changed in a PR |
| List commits on a PR |
| List review comments on a PR |
| Comment on a pull request |
| Get a single review comment |
| Update a review comment |
| Delete a review comment |
| Check if a PR has been merged |
| Merge a pull request |
| List labels on a PR |
| Add labels to a PR |
| Replace all labels on a PR |
| Remove a label from a PR |
| Assign reviewers to a PR |
| Reset review status |
| Remove reviewers from a PR |
| Assign testers to a PR |
| Reset test status |
| Remove testers from a PR |
| Submit a review |
| Submit a test result |
| Link issues to a PR |
| Unlink issues from a PR |
| List issues linked to a PR |
| Get PR settings for a repo |
| List your pull requests |
| List PRs for an organization |
Labels (4 tools)
Tool | Description |
| List labels |
| Create a label |
| Update a label |
| Delete a label |
Milestones (5 tools)
Tool | Description |
| List milestones |
| Get a single milestone |
| Create a milestone |
| Update a milestone |
| Delete a milestone |
Tags (8 tools)
Tool | Description |
| List tags |
| Create a tag |
| Delete a tag |
| List protected tags |
| Get a protected tag |
| Create a protected tag |
| Update a protected tag |
| Delete a protected tag |
Releases (6 tools)
Tool | Description |
| List releases |
| Get the latest release |
| Get a release by tag name |
| Get a release by tag (explicit lookup) |
| Create a release |
| Update a release |
Webhooks (6 tools)
Tool | Description |
| List webhooks |
| Get a single webhook |
| Create a webhook |
| Update a webhook |
| Delete a webhook |
| Trigger a test delivery |
Collaborators & Members (9 tools)
Tool | Description |
| List collaborators |
| Check if a user is a collaborator |
| Get collaborator's permission level |
| Add a collaborator |
| Remove a collaborator |
| List organization members |
| Get an organization member |
| Invite a user to an organization |
| Remove an organization member |
Organizations (6 tools)
Tool | Description |
| Get an organization |
| Update an organization |
| List organization repositories |
| Create an organization repository |
| List your organizations |
| List organizations for a user |
Users (13 tools)
Tool | Description |
| Get authenticated user |
| Update your profile |
| Get a user by username |
| List repos for a user |
| List events performed by a user |
| List your repositories |
| List your starred repos |
| List your watched repos |
| List your SSH keys |
| Get a single SSH key |
| Add an SSH key |
| Delete an SSH key |
| List your email addresses |
Search (1 tool)
Tool | Description |
| Search users |
Enterprise (4 tools)
Tool | Description |
| List enterprise members |
| List enterprise issues |
| Get a single enterprise issue |
| List enterprise pull requests |
Environment Variables
Variable | Required | Default | Description |
| Yes | — | GitCode personal access token |
| No |
| Toolset level: |
You can also place these in a .env file in the project directory.
License
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZoroPoskai/gitcode-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server