Provides Gitee repository, issue, and pull request automation through MCP with token-based authentication.
Configuration
View docs{
"mcpServers": {
"gitee": {
"command": "npx",
"args": [
"-y",
"gitee-mcp-server"
],
"env": {
"GITEE_API_BASE_URL": "https://gitee.com/api/v5",
"GITEE_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>",
"DEBUG": "true"
}
}
}
}You can run a Gitee MCP Server to let AI operate Gitee repositories, issues, and pull requests. It exposes a range of end-to-end actions you can trigger from your MCP client, enabling automated repository management and collaboration workflows.
You interact with the Gitee MCP Server through an MCP client. You expose your Gitee credentials securely, then issue high-level actions like creating repositories, managing branches, reading or updating files, handling issues and pull requests, and querying user data. Each action maps to a specific tool you can call from your client, and the server returns structured results you can use in your automation pipelines.
Prerequisites: make sure you have Node.js installed if you plan to run the server locally via npx, and Docker if you prefer containerized usage.
npx -y @smithery/cli install @normal-coder/gitee-mcp-server --client claudeTo run the MCP server directly with npx, use the runtime configuration shown below. You must provide your Gitee personal access token.
{
"mcpServers": {
"Gitee": {
"command": "npx",
"args": [
"-y",
"gitee-mcp-server"
],
"env": {
"GITEE_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}You can also deploy the MCP server in a Docker container. Use the official image and pass your access token as an environment variable.
{
"mcpServers": {
"Gitee": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITEE_PERSONAL_ACCESS_TOKEN",
"normalcoder/gitee-mcp-server"
],
"env": {
"GITEE_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}Optional base URL and token handling help tailor the server to your Gitee setup. The Gitee API base URL can be customized, and you must provide a valid personal access token from your Gitee account. Debug logging can be enabled by setting DEBUG to true.
Keep your Gitee PAT secure. Do not expose it in client-side code or logs. Prefer running the server in a secured environment and restrict access to trusted MCP clients.
If you encounter authentication errors, verify that the GITEE_PERSONAL_ACCESS_TOKEN is correct and has the necessary scopes for repository, issues, and pull request operations. Check that the Gitee API base URL matches your region and usage. When debugging, enable DEBUG to gain more verbose logs.
Create a new Gitee repository with specified settings.
Fork an existing Gitee repository into your account.
Create a new branch in a specified Gitee repository.
List all branches in a repository.
Retrieve details about a specific branch.
Get contents of a file or directory in a repository.
Create a new file or update an existing one in a repository.
Push multiple files to a repository in a single operation.
Create a new issue in a repository.
List issues in a repository.
Get details of a specific issue.
Update an existing issue.
Add a comment to an issue.
Create a pull request in a repository.
List pull requests in a repository.
Get details of a specific pull request.
Update an existing pull request.
Merge a pull request.
Get information about a Gitee user.
Get information about the authenticated user.