Skip to main content

Model Context Protocol server for Gitea (and Forgejo, Codeberg).

Reason this release was yanked:

Development

Project description

gitea-mcp

A Model Context Protocol server for Gitea — lets AI assistants (Claude, ChatGPT, Copilot, and anything else that speaks MCP) read, create, and manage issues, repositories, and releases on any Gitea instance you can reach.

Also works against Forgejo and Codeberg (API-compatible).

Why

Self-hosted Gitea is a popular GitHub alternative for solo developers, small teams, and privacy-conscious organizations. With this MCP server installed, your AI assistant can:

  • File audit findings or refactor notes as Gitea issues without you leaving the chat
  • Triage a repo's open issues in natural language
  • Cut a release at the end of a coding session
  • Comment on issues across multiple repos in one pass

Features

Resource Tools
Issues create_issue, list_issues, get_issue, update_issue, add_comment
Repos list_repos, list_labels, list_milestones
Releases list_releases, create_release
  • Bearer authentication via Personal Access Token (PAT)
  • Async HTTP via httpx and FastMCP
  • Works with self-hosted Gitea, Forgejo, and Codeberg

Quick Start

1. Install

pip install gitea-mcp

Or with uv:

uv pip install gitea-mcp

2. Generate a Personal Access Token

In your Gitea instance, go to Settings → Applications → Generate New Token and grant at least:

  • read:repository
  • write:issue
  • read:user

Add write:repository if you also want to create releases.

3. Configure your MCP client

Add gitea-mcp to your MCP client configuration:

{
  "mcpServers": {
    "gitea": {
      "command": "gitea-mcp",
      "env": {
        "GITEA_URL": "https://your-gitea-instance.example.com",
        "GITEA_TOKEN": "your-personal-access-token"
      }
    }
  }
}

See mcp.json for a complete example. The same shape works for Claude Desktop, VS Code, Cowork, Claude Code, and any other MCP-compatible client.

Configuration

Configuration is read from environment variables.

Variable Required Default Description
GITEA_URL Yes Base URL of your Gitea instance (e.g., https://gitea.example.com)
GITEA_TOKEN Yes Personal Access Token from your Gitea user settings
GITEA_TIMEOUT No 30 HTTP request timeout in seconds

Compatibility

Server Status
Gitea (self-hosted) ✅ Primary target
Forgejo ✅ Expected to work (API-compatible)
Codeberg ✅ Expected to work (Codeberg runs Forgejo)

Development

git clone https://github.com/werebear73/gitea-mcp.git
cd gitea-mcp
pip install -e ".[dev]"
pytest

Versioning

Semantic versioning, derived from git tags via setuptools_scm. See VERSIONING.md for the release process.

Contributing

Issues and pull requests welcome. For substantial changes, please open an issue first to discuss the approach.

License

MIT — use it however you like, including commercial products.


Built by Waretech Services.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitea_mcp-0.1.1.dev0.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitea_mcp-0.1.1.dev0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file gitea_mcp-0.1.1.dev0.tar.gz.

File metadata

  • Download URL: gitea_mcp-0.1.1.dev0.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gitea_mcp-0.1.1.dev0.tar.gz
Algorithm Hash digest
SHA256 8809bdf0e32cf0a75d7c0c36f73cd4de0382d1d49368c26ebd0c59cae05f4cfa
MD5 ab24174bee3e7ba1ce1f9f85ee1ab2f9
BLAKE2b-256 658aedf7f4f54d152534bb972a58ddae801b33ccd16cd2bc7b59563f5f834df6

See more details on using hashes here.

Provenance

The following attestation bundles were made for gitea_mcp-0.1.1.dev0.tar.gz:

Publisher: release.yml on werebear73/gitea-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gitea_mcp-0.1.1.dev0-py3-none-any.whl.

File metadata

  • Download URL: gitea_mcp-0.1.1.dev0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gitea_mcp-0.1.1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 143c029c1c62b4f7a84211f5b8fe215c50eb85a17e6e204043a24553099cf940
MD5 bcb9d757e6aac893b49599e24df36216
BLAKE2b-256 b494eaae920df17bfbce8a1d70241cd98065e4da02e467ba426f4592bd138037

See more details on using hashes here.

Provenance

The following attestation bundles were made for gitea_mcp-0.1.1.dev0-py3-none-any.whl:

Publisher: release.yml on werebear73/gitea-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page