MCP server
gitea-mcp
Model Context Protocol server for Gitea (and Forgejo, Codeberg).
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.5.1
- Listing updated
- 5 days ago
About gitea-mcp
gitea-mcp is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add gitea-mcp --env GITEA_URL='<GITEA_URL>' --env GITEA_TOKEN='<GITEA_TOKEN>' -- uvx gitea-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"gitea-mcp": {
"command": "uvx",
"args": [
"gitea-mcp"
],
"env": {
"GITEA_URL": "<GITEA_URL>",
"GITEA_TOKEN": "<GITEA_TOKEN>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"gitea-mcp": {
"command": "uvx",
"args": [
"gitea-mcp"
],
"env": {
"GITEA_URL": "<GITEA_URL>",
"GITEA_TOKEN": "<GITEA_TOKEN>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"gitea-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"gitea-mcp"
],
"env": {
"GITEA_URL": "<GITEA_URL>",
"GITEA_TOKEN": "<GITEA_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"gitea-mcp": {
"command": "uvx",
"args": [
"gitea-mcp"
],
"env": {
"GITEA_URL": "<GITEA_URL>",
"GITEA_TOKEN": "<GITEA_TOKEN>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"gitea-mcp": {
"command": "uvx",
"args": [
"gitea-mcp"
],
"env": {
"GITEA_URL": "<GITEA_URL>",
"GITEA_TOKEN": "<GITEA_TOKEN>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
GITEA_URLBase URL of your Gitea/Forgejo/Codeberg instanceRequiredGITEA_TOKENPersonal access token for the configured instanceRequiredGITEA_TIMEOUTHTTP request timeout in secondsGITEA_MAX_RETRIESRetry count for transient failuresGITEA_RETRY_BASE_DELAYRetry backoff base delay in seconds
Pricing
Open source
gitea-mcp FAQ
Is gitea-mcp free?
Yes. gitea-mcp is open source, so you can use and self-host it for free.
How do I add gitea-mcp to Claude Code?
Run this command in your terminal: claude mcp add gitea-mcp --env GITEA_URL='<GITEA_URL>' --env GITEA_TOKEN='<GITEA_TOKEN>' -- uvx gitea-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.