Get repository information by owner and repo name
Get issues from a repository
Get a specific issue from a repository
Create a new issue in a repository
Update an existing issue in a repository
Create a comment on an issue
Get pull requests from a repository
Get a specific pull request from a repository
Create a new pull request in a repository
Gitee MCP Server provides a comprehensive set of tools for interacting with Gitee's API, enabling AI assistants to manage repositories, issues, pull requests, and other Gitee features. It supports operations for personal accounts, organizations, and enterprises with configurable API endpoints and dynamic toolset management.
Gitee MCP Server enables AI assistants to interact with Gitee repositories, providing a seamless way to manage code, issues, pull requests, and more through the Gitee API. This integration allows for efficient repository management and collaboration directly from your AI assistant.
You can install and run the Gitee MCP Server in several ways:
The easiest way to use Gitee MCP Server is through npx, which doesn't require any installation:
{
"mcpServers": {
"gitee": {
"command": "npx",
"args": [
"-y",
"@gitee/mcp-gitee@latest"
],
"env": {
"GITEE_API_BASE": "https://gitee.com/api/v5",
"GITEE_ACCESS_TOKEN": "your-personal-access-token"
}
}
}
}
If you prefer to install it using Go:
go install gitee.com/oschina/mcp-gitee@latest
Then configure your MCP client:
{
"mcpServers": {
"gitee": {
"command": "mcp-gitee",
"env": {
"GITEE_API_BASE": "https://gitee.com/api/v5",
"GITEE_ACCESS_TOKEN": "your-personal-access-token"
}
}
}
}
For the latest features or custom modifications:
git clone https://gitee.com/oschina/mcp-gitee.git
cd mcp-gitee
make build
GITEE_ACCESS_TOKEN
: Your personal access token from Gitee. You can generate one at https://gitee.com/profile/personal_access_tokensGITEE_API_BASE
: API base URL (default: https://gitee.com/api/v5)ENABLED_TOOLSETS
: Comma-separated list of toolsets to enableDISABLED_TOOLSETS
: Comma-separated list of toolsets to disableThe server also supports various command-line flags for configuration:
--api-base
: Set the Gitee API base URL--access-token
: Set your Gitee access token--enabled-toolsets
: Specify which toolsets to enable--disabled-toolsets
: Specify which toolsets to disable--version
: Display the current versionThe Gitee MCP Server works with various MCP clients including Claude, Cursor, Trae, Cline, and Windsurf. Detailed configuration instructions for each client are available in the documentation.
Once configured, you can use your AI assistant to:
Simply ask your AI assistant to perform these tasks, and it will use the Gitee MCP Server to interact with your Gitee repositories.