gitea-mcp

v0.5.1
io.github.werebear73/gitea-mcp Checked 1 day ago Published 6 months ago

Model Context Protocol server for Gitea (and Forgejo, Codeberg).

Values you need

VariableWhat it is
GITEA_URLrequired Base URL of your Gitea/Forgejo/Codeberg instance
GITEA_TOKENrequired secret Personal access token for the configured instance
GITEA_TIMEOUToptional HTTP request timeout in seconds Default: 30
GITEA_MAX_RETRIESoptional Retry count for transient failures Default: 3
GITEA_RETRY_BASE_DELAYoptional 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.1
Add 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

  1. Ask the user for: GITEA_URL, GITEA_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: read_file, create_branch, commit_changes, create_pr, create_issue, list_issues, get_issue, update_issue, ….
  5. 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