Gitea
FreeNot checkedMCP server for interacting with Gitea, enabling issue and PR management, repository browsing, file reading, and safe git command execution.
About
MCP server for interacting with Gitea, enabling issue and PR management, repository browsing, file reading, and safe git command execution.
README
A Model Context Protocol (MCP) server for interacting with Gitea. This package is designed to be used as a standalone server or imported by a gateway.
🛠 Capabilities
- Issues: List, search, create, update, comment.
- Repositories: List repos, branches, labels.
- Files: Read file content.
- Pull Requests: Create PRs.
- Analysis: Analyze issues with AI prompts.
- Shell: Execute safe git commands in WSL (
run_safe_shell).
🔒 Security
- Allowed Paths: Restricted via
MCP_ALLOWED_PATHSenvironment variable. - Git Safety: Only whitelisted git subcommands are allowed. Global flags are blocked.
📦 Installation
npm install @boringstudio_org/gitea-mcp
🚀 Usage
Via NPX (Recommended)
# Configure environment variables
export GITEA_TOKEN=your_token
# Optional: Defaults to https://git.your-instance.com/api/v1
export GITEA_API_URL=https://git.your-instance.com/api/v1
# Cloudflare Access (Optional)
# If your Gitea instance is behind Cloudflare Zero Trust
export CF_ID=your_cf_client_id
export CF_SECRET=your_cf_client_secret
# Run
npx @boringstudio_org/gitea-mcp
Standalone (From Source)
# Install dependencies
npm install
# Configure .env
echo "GITEA_TOKEN=..." > .env
echo "GITEA_API_URL=..." >> .env
# Optional: Cloudflare Access
echo "CF_ID=..." >> .env
echo "CF_SECRET=..." >> .env
# Run
node index.js
As a Library
import { runGiteaServer } from "@boringstudio_org/gitea-mcp";
// Ensure environment variables are set
runGiteaServer().catch(console.error);
📝 License
MIT
Install Gitea in Claude Desktop, Claude Code & Cursor
unyly install mcp-giteaInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add mcp-gitea -- npx -y @boringstudio_org/gitea-mcpFAQ
Is Gitea MCP free?
Yes, Gitea MCP is free — one-click install via Unyly at no cost.
Does Gitea need an API key?
No, Gitea runs without API keys or environment variables.
Is Gitea hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Gitea in Claude Desktop, Claude Code or Cursor?
Open Gitea on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Gitea with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
