gitea-mcp-server
Provides tools for interacting with Forgejo instances, enabling management of repositories, issues, pull requests, and other resources through the Forgejo API.
Provides tools for interacting with Gitea instances, enabling management of repositories, issues, pull requests, and other resources through the Gitea API.
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., "@gitea-mcp-servershow open issues in my repository"
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
Model Context Protocol server that provides ~400 auto-generated tools and resources for LLM agents to interact with Gitea and Forgejo instances. Built with FastMCP 3.x.
How it works
Your Gitea/Forgejo instance
│
▼ (Swagger/OpenAPI spec)
gitea-mcp-server
│ ┌────────────────────────────┐
│ │ Auto-generates ~400 tools │
│ │ from the API spec │
│ │ Adds lazy loading, scope │
│ │ filtering, annotations, │
│ │ workflow guides, resources │
│ └────────────────────────────┘
│
▼ (MCP protocol: stdio or HTTP)
Your LLM agent
│
├─ call_tool("gitea_issue_create_issue", ...)
├─ read_resource("gitea://repos/owner/repo")
└─ search_tools("list pull requests")Related MCP server: GitHub MCP Server
Requirements
Python 3.11+ and uv (package manager)
A Gitea or Forgejo instance (local or remote)
An API token with sufficient scopes (Settings → Applications → Generate Token)
Quick Start
git clone https://github.com/pxsloot/gitea-mcp-server.git && cd gitea-mcp-server
cp .env.example .env # then edit GITEA_URL and GITEA_TOKEN
uv sync
uv run python -m gitea_mcp_serverInstall from git (pip)
pip install git+https://github.com/pxsloot/gitea-mcp-server.git
gitea-mcpConfiguration
Env var | Default | Description |
| -- | Base URL of your Gitea/Forgejo instance |
| -- | API token (Settings → Applications → Generate Token) |
|
| Set |
| -- | Custom CA bundle path |
|
|
|
|
|
|
|
|
|
|
| Prefix for all tool names |
HTTP transport settings (TRANSPORT_TYPE=http):
HTTP_HOST— default127.0.0.1(setHTTP_HOST=0.0.0.0for remote access)HTTP_PORT— default 8080HTTP_PATH— default/mcpHTTP_CORS— defaults to origin fromGITEA_URL
Usage
Stdio (CLI clients)
uv run python -m gitea_mcp_serverHTTP (server mode)
TRANSPORT_TYPE=http uv run python -m gitea_mcp_server
# Health check: http://localhost:8080/health
# MCP endpoint: http://localhost:8080/mcpDocker
docker build --progress=plain -t gitea-mcp-server:latest .
docker run --rm -e GITEA_URL=... -e GITEA_TOKEN=... gitea-mcp-server:latestFor a local test Gitea instance: docker compose -f docker-compose.gitea.yml up -d
Key Features
Auto-generated tools from Gitea's Swagger spec (converted 2.0 → 3.1)
Lazy loading — BM25 search-based tool discovery, not all 200 tools listed upfront
Permission filtering — tools hidden based on token scopes
Workflow guides — 16 guides explaining Gitea/Forgejo concepts beyond the API
MCP Resources — cached, URI-based data access (
gitea://repos/{owner}/{repo})Tool annotations — read-only/destructive/idempotent hints per tool
mcp_extensions.yaml — customize tool metadata without code
HTTP/stdio transport, Docker support, OpenTelemetry observability
Development
# Tests
uv run pytest tests/unit/ -x -q
# Lint & type-check
uv run ruff check gitea_mcp_server/
uv run mypy gitea_mcp_server/
# Coverage
uv run pytest --cov=gitea_mcp_serverSee docs/DEVELOPMENT.md and docs/ARCHITECTURE.md.
Contributing
Please read CONTRIBUTING.md for the full workflow. Start with AGENTS.md for project onboarding. The docs/SKILL.md has the developer handbook with conventions, workflows, and checklists for agent contributors.
Changelog
See CHANGELOG.md for release history.
Security
Report vulnerabilities to gitea-mcp-server@pxsloot.nl — see SECURITY.md.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with Gitea repositories through intelligent tools for issue/PR management, workflow analysis, compliance checking, and content generation, plus 200+ CLI commands for complete CRUD operations.Last updated221005MIT
- Flicense-quality-maintenanceEnables LLMs to interact with GitHub repositories, issues, pull requests, and workflows through the Model Context Protocol. It provides a comprehensive set of tools for repository management, issue tracking, code search, and CI/CD automation.Last updated
- AlicenseBqualityDmaintenanceA Python-based Model Context Protocol server that provides 87 tools for comprehensive interaction with the GitHub API. It enables AI agents to manage repositories, issues, pull requests, workflows, and projects through automated commands.Last updated87MIT
- AlicenseAqualityAmaintenanceAn MCP server providing comprehensive Gitea API coverage with 186 tools for managing repositories, issues, pull requests, and CI/CD workflows. It enables autonomous AI agents to perform complex development and administrative tasks directly through a Gitea instance.Last updated7MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Point Gecko at an OpenAPI spec; get first-call-correct, auth-hidden agent tools.
Package intelligence MCP for AI agents — 22 tools, 19 ecosystems, AGPL SDK, free.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/pxsloot/gitea-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server