# Gitee MCP Server [Health: Active]

**Category:** 🔄 Version Control  
**Repository:** https://github.com/PaulSeth/gitee-mcp-server  
**GitHub Stars:** 0  
**npm Downloads (last month):** 238  
**Views:** 16  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gitee-mcp-server

## Description
让 AI 用自然语言管理 Gitee 仓库：查 star、管 Issue、基于 commit 生成中文 CHANGELOG（原生无此 API）

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "gitee-mcp-server": {
    "command": "npx",
    "args": ["-y","gitee-mcp"],
    "env": {
      "GITEE_ACCESS_TOKEN": "",
      "GITEE_MODE": ""
    }
  }
}
```

**Requires environment variables:** `GITEE_ACCESS_TOKEN`, `GITEE_MODE` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Gitee MCP Server MCP server does

Gitee MCP Server MCP server gives an AI client a focused interface for common Gitee repository operations. It can retrieve counts for stars, forks, watchers, and open issues; list users who starred a repository; read issues with status or label filters; create issues; and update issue state or labels. The server also provides a `generate_changelog` tool that turns commit data into a Chinese CHANGELOG, covering a result that Gitee does not expose as a native API.

A repository resource is available at `gitee://repo/{owner}/{repo}`. Reading it returns repository statistics together with a snapshot of the five most recent commits. This gives an agent both tool calls for actions and a resource for compact repository context.

## How it works

The process communicates with an AI client over MCP STDIO. Internally, a service layer selects either a local mock implementation or the Gitee API v5 implementation. Mock mode uses local snapshots, so the package can be started and demonstrated without a credential. Real mode sends requests to Gitee after a token is configured.

The changelog feature combines commit information rather than calling a dedicated Gitee changelog endpoint. Issue updates can change status and labels, including closing an issue or applying labels through the exposed update operation. Listing issues supports filtering by state and label.

## Setup and configuration

The quickest installation is to run:

```bash
npx -y gitee-mcp
```

For a local build, clone the repository, run `npm install`, then `npm run build` and `npm start`. The default startup mode is mock, which is suitable for testing the MCP connection and demonstrating the tools.

For live Gitee data, copy `.env.example` to `.env` in the project root and set `GITEE_ACCESS_TOKEN`. The token should include the `projects` permission. The server reads this root-level file without requiring the client to set its working directory. `GITEE_MODE` may be left empty for automatic selection, set to `mock` to force mock behavior, or set to `real` to request API access. If real mode lacks a token, the server falls back to mock mode and emits a warning.

An MCP client configuration can launch the npm package with `command: "npx"` and arguments `[-y, "gitee-mcp"]`. A locally built installation can instead use an absolute Node.js path and the built `build/index.js` file.

## Tools and capabilities

Gitee MCP Server MCP server currently exposes these capabilities:

- `get_repo_stats`: returns star, fork, watch, and open-issue counts.
- `list_stargazers`: lists users who starred a repository; this requires a personal access token.
- `list_issues`: retrieves issues with state and label filters.
- `create_issue`: creates a new issue for a request or task.
- `update_issue`: changes issue status or labels, including automatic labeling and closing.
- `generate_changelog`: creates a Chinese CHANGELOG from repository commits.

## Limitations and notes

The documented version is v1. Stargazer and subscriber-related Gitee interfaces require authentication, and `list_stargazers` therefore cannot operate anonymously against the live service. Without a token, mock data remains available for demonstrations. Planned items such as pull-request management, comments, webhooks, releases, and Gitee-to-GitHub mirroring are roadmap entries rather than current capabilities.

_Full upstream README: https://allmcps.com/mcp/gitee-mcp-server/readme_

