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.
Install Gitea MCP
Built from the published package, never by AI.
claude mcp add gitea-mcp -- npx -y @amonstack/gitea-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"gitea-mcp": {
"args": [
"-y",
"@amonstack/gitea-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"gitea-mcp": {
"args": [
"-y",
"@amonstack/gitea-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"gitea-mcp": {
"args": [
"-y",
"@amonstack/gitea-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add gitea-mcp -- npx -y @amonstack/gitea-mcp{
"mcpServers": {
"gitea-mcp": {
"args": [
"-y",
"@amonstack/gitea-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add gitea-mcp npx -y @amonstack/gitea-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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
ANo 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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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.
