Gitee
The Gitee MCP Server allows AI to perform various automated operations on Gitee repositories through the Model Context Protocol:
Repository Operations: Create or fork repositories
Branch Operations: Create, list, and retrieve branch details
File Operations: Read, create, update, and push multiple files
Issue Operations: Create, list, retrieve, update, and comment on issues
Pull Request Operations: Create, list, retrieve, update, and merge pull requests
User Operations: Fetch information about Gitee users, including authenticated user details
Enables AI to interact with Gitee repositories, including creating/managing repositories, branches, files, issues, and pull requests. Supports operations like pushing code, creating issues, managing PRs, and performing user-related actions on Gitee's platform.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Giteecreate a new branch called feature-auth from main in my-api-repo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Gitee MCP Server
Let AI operate Gitee repositories/Issues/Pull Requests for you through MCP
Supported AI Operations
Category | MCP Tool | Description |
Repository Operations |
| Create a Gitee repository |
| Fork a Gitee repository | |
Branch Operations |
| Create a new branch in a Gitee repository |
| List branches in a Gitee repository | |
| Get details of a specific branch in a Gitee repository | |
File Operations |
| Get contents of a file or directory in a Gitee repository |
| Create or update a file in a Gitee repository | |
| Push multiple files to a Gitee repository | |
Issue Operations |
| Create an Issue in a Gitee repository |
| List Issues in a Gitee repository | |
| Get details of a specific Issue in a Gitee repository | |
| Update an Issue in a Gitee repository | |
| Add a comment to an Issue in a Gitee repository | |
Pull Request Operations |
| Create a Pull Request in a Gitee repository |
| List Pull Requests in a Gitee repository | |
| Get details of a specific Pull Request in a Gitee repository | |
| Update a Pull Request in a Gitee repository | |
| Merge a Pull Request in a Gitee repository | |
User Operations |
| Get Gitee user information |
| Get authenticated Gitee user information |
Related MCP server: mcp-gitee
Usage
Installing via Smithery
To install Gitee MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @normal-coder/gitee-mcp-server --client claudeConfiguration
GITEE_API_BASE_URL: Optional, Gitee OpenAPI Endpoint, default ishttps://gitee.com/api/v5GITEE_PERSONAL_ACCESS_TOKEN: Required, Gitee account personal access token (PAT), can be obtained from Gitee account settings Personal Access TokensDEBUG: Optional, set totrueto enable debug logging, default is disabled
Run MCP Server via NPX
{
"mcpServers": {
"Gitee": {
"command": "npx",
"args": [
"-y",
"gitee-mcp-server"
],
"env": {
"GITEE_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}Run MCP Server via Docker Container
Get Docker Image
# Get from DockerHub
docker pull normalcoder/gitee-mcp-server
# Build locally
docker build -t normalcoder/gitee-mcp-server .Configure 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>"
}
}
}
}Development Guide
Install Dependencies
npm installBuild
npm run buildAfter successful build, /dist will contain the runnable MCP server.
Run Server
npm startThe MCP server will run on stdio, allowing it to be used as a subprocess by MCP clients.
Build Docker Image
You can also run the server using Docker:
docker build -t normalcoder/gitee-mcp-server .Run MCP Server with Docker:
docker run -e GITEE_PERSONAL_ACCESS_TOKEN=<YOUR_TOKEN> normalcoder/gitee-mcp-serverDebug MCP Server
You can use @modelcontextprotocol/inspector for debugging:
Create a .env file in the root directory for environment variables:
GITEE_API_BASE_URL=https://gitee.com/api/v5
GITEE_PERSONAL_ACCESS_TOKEN=<YOUR_TOKEN>Run the debug tool to start the service and web debug interface:
npx @modelcontextprotocol/inspector npm run start --env-file=.envThe project includes a debug() function for printing debug information, usage:
import { debug } from './common/utils.js';
debug('Message to log');
debug('Message with data:', { key: 'value' });Debug logs are only printed when the DEBUG environment variable is set to true.
Dependencies
@modelcontextprotocol/sdk: MCP SDK for server implementationuniversal-user-agent: For generating user agent stringszod: For schema validationzod-to-json-schema: For converting Zod schemas to JSON schemas
License
Licensed under MIT License. You are free to use, modify and distribute the software, subject to the terms and conditions of the MIT License. For more details, see the LICENSE file in the project repository.
Related Links
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server for managing your repositories on Forgejo/Gitea server.Last updated64Mozilla Public 2.0
- AlicenseBqualityCmaintenanceFull-featured MCP server exposing 200+ Gitee API v5 endpoints for repository, issue, pull request, user, enterprise, gist, and search management.Last updated10033MIT
- Alicense-qualityDmaintenanceMCP server for the GitCode API, enabling AI assistants to interact with GitCode repositories, issues, pull requests, and more.Last updated1MIT
- AlicenseBqualityDmaintenanceMCP server for interacting with Gitea, enabling issue and PR management, repository browsing, file reading, and safe git command execution.Last updated111501MIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for Appcircle mobile CI/CD platform.
The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/normal-coder/gitee-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server