The Gitee MCP Server allows AI assistants to perform operations on Gitee repositories, issues, and pull requests through the Model Context Protocol (MCP). It acts as a bridge between AI systems and Gitee's API, enabling automated interactions with your Gitee projects.
The easiest way to run the Gitee MCP Server is using NPX:
{
"mcpServers": {
"Gitee": {
"command": "npx",
"args": [
"-y",
"gitee-mcp-server"
],
"env": {
"GITEE_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
For Claude Desktop users, you can install the server automatically via Smithery:
npx -y @smithery/cli install @normal-coder/gitee-mcp-server --client claude
You can also run the server as a Docker container:
docker pull normalcoder/gitee-mcp-server
{
"mcpServers": {
"Gitee": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITEE_PERSONAL_ACCESS_TOKEN",
"normalcoder/gitee-mcp-server"
],
"env": {
"GITEE_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}
The server requires the following configuration:
https://gitee.com/api/v5
true
to enable debug loggingIf you encounter issues with the server, you can enable debug logging by setting the DEBUG
environment variable to true
. This will provide more detailed logs about the server's operations.
For a more interactive debugging experience, you can use the MCP inspector:
npx @modelcontextprotocol/inspector npm run start --env-file=.env
Create a .env
file with your configuration:
GITEE_API_BASE_URL=https://gitee.com/api/v5
GITEE_PERSONAL_ACCESS_TOKEN=<YOUR_TOKEN>
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.