mcp-gitea
Provides tools for interacting with Gitea, enabling AI agents to manage issues, repositories, files, pull requests, and perform analysis with AI prompts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-giteashow open issues for my-org/my-repo"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Gitea MCP Server
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-mcpStandalone (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.jsAs a Library
import { runGiteaServer } from "@boringstudio_org/gitea-mcp";
// Ensure environment variables are set
runGiteaServer().catch(console.error);📝 License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/boringstudio-org/mcp-gitea'
If you have feedback or need assistance with the MCP directory API, please join our Discord server