Skip to main content
Glama
CainDez
by CainDez
README.md
# mcp-gitee

Full-featured [Gitee](https://gitee.com) MCP server exposing 200+ Gitee API v5 endpoints as [Model Context Protocol](https://modelcontextprotocol.io) tools.

## Installation

```bash
npm install -g mcp-gitee
```

Or run directly without installing:

```bash
npx mcp-gitee
```

## Requirements

Set the `GITEE_ACCESS_TOKEN` environment variable to your Gitee personal access token.

```bash
export GITEE_ACCESS_TOKEN=your_token_here
```

Optionally override the API base URL (defaults to `https://gitee.com/api/v5`):

```bash
export GITEE_API_URL=https://gitee.com/api/v5
```

## Gitee API Compatibility

Tool coverage is checked against the official Gitee API v5 documentation:

- Swagger UI: https://gitee.com/api/v5/swagger
- Machine-readable spec: https://gitee.com/api/v5/doc_json
- Last checked documentation version: `5.4.92`

## MCP Client Configuration

### Claude Desktop

Add to `claude_desktop_config.json`:

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

## Available Tools

Covers all major Gitee API v5 domains:

- **Repositories** - create, update, delete, list, file operations, branches, tags, commits
- **Issues** - create, update, comment, labels, milestones
- **Pull Requests** - create, merge, review, test, labels
- **Users & Organizations** - profile, followers, SSH keys, memberships
- **Enterprises** - members, repos, issues
- **Gists** - create, fork, star, comment
- **Activity** - notifications, starring, watching
- **Search** - repos, users, issues
- **Git Data** - blobs, trees, commits, refs
- **Webhooks**, **Labels**, **Milestones**, **Checks**, and more

## License

MIT

TDQS

B3/5.0

Scored across 267 tools

Disambiguation5/5

The 267 tools are clearly delineated by action and resource (e.g., gitee_create_issue, gitee_list_issues, gitee_update_issue). Each tool's description provides a distinct purpose, and there is no ambiguity between tools handling different resources or operations.

Naming Consistency5/5

All tool names follow a uniform 'gitee_verb_noun' pattern in snake_case, such as 'gitee_add_collaborator', 'gitee_delete_issue_comment'. No mixed conventions or irregularities are present.

Tool Count2/5

With 267 tools, the surface is overly large. Many tools list subtypes (e.g., 5 different list tools for issues) that could be consolidated with parameters. This number risks overwhelming agents and hindering quick selection.

Completeness5/5

The tool set covers a comprehensive range of GitEE features: full CRUD for issues, pull requests, releases, gists, organizations, enterprises, and more. Essential operations like branch protection, webhooks, and notifications are all present.

Maintenance

ActivityInactive
ResponsivenessNo issues