gitea-mcp
v0.5.1Model Context Protocol server for Gitea (and Forgejo, Codeberg).
Values you need
| Variable | What it is | |
|---|---|---|
GITEA_URL | required | Base URL of your Gitea/Forgejo/Codeberg instance |
GITEA_TOKEN | required secret | Personal access token for the configured instance |
GITEA_TIMEOUT | optional | HTTP request timeout in seconds Default: 30 |
GITEA_MAX_RETRIES | optional | Retry count for transient failures Default: 3 |
GITEA_RETRY_BASE_DELAY | optional | Retry backoff base delay in seconds Default: 0.5 |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add gitea-mcp -e 'GITEA_TOKEN=<GITEA_TOKEN>' -e 'GITEA_URL=<GITEA_URL>' -- uvx gitea-mcp==0.5.1Add to
claude_desktop_config.json{
"mcpServers": {
"gitea-mcp": {
"args": [
"gitea-mcp==0.5.1"
],
"command": "uvx",
"env": {
"GITEA_TOKEN": "<GITEA_TOKEN>",
"GITEA_URL": "<GITEA_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"gitea-mcp": {
"args": [
"gitea-mcp==0.5.1"
],
"command": "uvx",
"env": {
"GITEA_TOKEN": "<GITEA_TOKEN>",
"GITEA_URL": "<GITEA_URL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "GITEA_TOKEN",
"id": "gitea-token",
"password": true,
"type": "promptString"
},
{
"description": "GITEA_URL",
"id": "gitea-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"gitea-mcp": {
"args": [
"gitea-mcp==0.5.1"
],
"command": "uvx",
"env": {
"GITEA_TOKEN": "${input:gitea-token}",
"GITEA_URL": "${input:gitea-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.gitea-mcp]
command = "uvx"
args = ["gitea-mcp==0.5.1"]
env = { "GITEA_TOKEN" = "<GITEA_TOKEN>", "GITEA_URL" = "<GITEA_URL>" }For AI agents
- Ask the user for: GITEA_URL, GITEA_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: read_file, create_branch, commit_changes, create_pr, create_issue, list_issues, get_issue, update_issue, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json