Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Gitea MCP

MCP server by amonstack Verified · npm:@amonstack

Gitea MCP lets AI assistants manage Gitea issues, labels, milestones, comments, pull requests, releases and wiki pages. It is for developers who want to run these tasks from clients such as Claude Desktop or Cursor.

  • Score 62
  • 2 stars
  • 44 a week
  • MIT
  • Updated

Install Gitea MCP

Built from the published package, never by AI.

claude mcp add gitea-mcp -- npx -y @amonstack/gitea-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Gitea MCP in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the gitea-mcp block.

About

gitea-mcp is an MCP server that exposes Gitea repository operations as tools for AI assistants. It covers issues, labels, milestones, comments, pull requests, releases, Actions runs and wiki pages. Once connected to a client such as Claude Desktop, opencode or Cursor, an assistant can list, create, update and delete these items through natural language. The server runs over stdio and wraps the Gitea REST API v1.

It auto-discovers the Gitea instance, owner and repo from the project's git config, so one global install can serve many repositories. Auth tokens are collected from several sources, including GITEA_REPO_URL, config entries, GITEA_TOKEN and git credential helpers. GitLab is supported as a second platform with the same tool set. It suits developers who manage Gitea projects from an AI assistant.

Written from the project's README and checked against it.

Tools it gives your assistant

  • configure_giteaSets the Gitea connection at runtime for the session, without saving it.
  • gitea_statusReports the server's connection state, including whether git is available.
  • resolve_repoDetects the owner and repository from the git remotes on demand.
  • create_issue_attachmentUploads a file as an attachment to an issue.
  • create_issue_comment_attachmentUploads a file as an attachment to an issue comment.
  • update_commentEdits an existing comment on Gitea.
  • delete_commentDeletes a comment on Gitea.
  • search_issuesSearches issues, with a labels filter on Gitea.
  • merge_pull_requestMerges a pull request, including rebase options on Gitea.
  • rerun_action_run_failed_jobsReruns the failed jobs of an Actions run on Gitea.

What you need

  • Node.js 24 or later
  • git 2.46 or later on PATH
  • A Gitea instance (self-hosted or Gitea Cloud) reachable over HTTP, or a GitLab instance
  • A Gitea API token or git credential for anything beyond reading public repositories

Try asking

  • List open issues in this repo that have the bug label.
  • Create a milestone for v2.0 and add the open issues to it.
  • Comment on issue 42 with a summary of today's progress.

Good to know

  • On git below 2.46, the .git/config [gitea] token source fails silently.
  • Without a git remote, GITEA_BASE_URL or GITEA_REPO_URL, business tools return NotConfiguredError.
  • Several operations are not available on GitLab, and some dependency tools need GitLab Premium or Ultimate.
  • Some tool parameters and flags are Gitea-only and are not available on GitLab.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Gitea MCP

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Gitea MCP: common questions

Does gitea-mcp work with GitLab?

Yes. GitLab, on gitlab.com and self-managed instances, is supported as a second platform. One server process serves one platform, so two client entries are needed to use both.

How does it find my Gitea repository?

On start it reads the project's git config to find the instance URL, owner and repo. This lets one global install serve many projects.

Where does the API token come from?

It tries a GITEA_REPO_URL userinfo, [gitea] config tokens, GITEA_TOKEN, and then git credential helpers. It moves to the next candidate after a 401 or 403 response.

How do I install Gitea MCP?

In Claude Code run claude mcp add gitea-mcp -- npx -y @amonstack/gitea-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Gitea MCP the official server?

Gitea MCP is published by npm:@amonstack from its verified domain in the official MCP Registry.

Is Gitea MCP free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Gitea MCP safe to use?

It scores 62 of 100. Grades: maintenance B, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Gitea MCP?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Gitea MCP work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Gitea MCP Install

Add to stack

Loading.