Skip to content

Menu

Gitea MCP Server logo

Gitea MCP Server

Published · Updated

At a glance

Category
Code & Git
Hosted by the vendor
https://gitea.com/gitea/gitea-mcp
Watch out for
The HTTP transport is stateless and POST only, with no session IDs, standalone SSE or resumability.

Gitea MCP Server is maintained by the Gitea project itself and lives on gitea.com rather than GitHub. It connects a Gitea instance to MCP clients so an agent can browse and manage repositories, issues, pull requests, Actions, releases, wikis and packages through the Gitea API, using either a personal access token or OAuth.

It is a Go binary. You can grab a release build, run the docker.gitea.com/gitea-mcp-server image, or build it with make. It speaks stdio for local clients and a stateless HTTP transport on /mcp for remote ones, and the README says it supports MCP protocol versions up to 2026-07-28.

The tool list is wide but compact. Many tools are consolidated, action-based tools that take a method parameter, so one tool like pull_request_write covers creating, updating, merging, closing and reopening. You can trim what loads by scope or by tool name, which helps keep the context small.

How it connects

Your AI app

An assistant or agent that supports MCP

Gitea MCP Server

Runs as

  • Docker
  • Remote (HTTP)

Gives the agent

  • Issues and pull requests
  • Files, branches and commits
  • Gitea Actions
  • Search
  • Releases, wikis and projects
  • Scoped loading

Gitea

Signs in with

  • OAuth / browser sign-in
  • Token
Your AI app talks to Gitea MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Issues and pull requests
list_issues, issue_read and issue_write handle issues, comments, labels and dependencies, while pull_request_read, pull_request_write and pull_request_review_write cover diffs, merges, reviewers and review comments.
Files, branches and commits
get_file_contents, get_repository_tree and create_or_update_file read and change code, with branch_read, branch_write, commit_read and tag_write for refs.
Gitea Actions
actions_run_read reads workflows, runs, jobs, logs and artifacts; actions_run_write can dispatch, cancel, rerun or approve runs, and actions_config_write manages secrets and variables.
Search
search_repos, search_users, search_org_teams and search_issues, the last doing full-text search across issues and pull requests.
Releases, wikis and projects
release_read and release_write manage releases and assets, wiki_read and wiki_write handle wiki pages, and project_read and project_write cover project boards.
Scoped loading
Flags -S/--scope (GITEA_SCOPES) and -O/--tools (GITEA_TOOLS) limit which tools load, and -r (GITEA_READONLY) hides every write tool.

Setting it up

For Claude Code the README gives a go run command, so Go must be installed: claude mcp add --transport stdio --scope user gitea --env GITEA_ACCESS_TOKEN=token --env GITEA_HOST=https://gitea.com -- go run gitea.com/gitea/gitea-mcp@latest -t stdio. In VS Code with Copilot, add a server under mcpServers in the workspace-root .mcp.json that runs docker with the args run -i --rm -e GITEA_ACCESS_TOKEN docker.gitea.com/gitea-mcp-server, with GITEA_ACCESS_TOKEN set in env as ${GITEA_ACCESS_TOKEN}. Cursor and similar clients can use a stdio entry with command gitea-mcp, args -t stdio --host https://gitea.com and GITEA_ACCESS_TOKEN in env, or point at http://localhost:8080/mcp with an Authorization: Bearer header after starting gitea-mcp -t http --port 8080. For clients that cannot hold a token, such as Claude.ai, run gitea-mcp -t http -oauth -oauth-public-url https://mcp.example.com -H https://gitea.example.com and register a public OAuth2 application in Gitea under Settings, Applications. A quick test from the README is asking it to list all your repositories.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Reviewing an open pull request on a self-hosted Gitea, reading its diff and leaving review comments.
  • Triaging new issues by reading them, adding labels and assigning milestones.
  • Checking why a Gitea Actions run failed by pulling its job logs, then rerunning it.
  • Cutting a release from a tag and uploading build assets.
  • Searching issues across repositories for an error message before filing a duplicate.

Limitations and things to watch

  • The HTTP transport is stateless and POST only, with no session IDs, standalone SSE or resumability.
  • Token passthrough over HTTP is not MCP OAuth; the OAuth mode needs a manually registered Gitea application because Gitea has no dynamic client registration.
  • Write tools can do lasting damage, and package_write deletes package versions irreversibly, so -r read-only mode is worth using for exploration.
  • Page sizes are capped by the Gitea server's MAX_RESPONSE_ITEMS setting (default 50), and larger values are silently reduced.
  • Mutual TLS client certificates are not supported together with the -oauth mode.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…