Forgejo MCP Server

by goern

92 stars
679 downloads
Not rated
GitHub Website

About

MIRROR ONLY!! This Model Context Protocol (MCP) server provides tools and resources for interacting with the Forgejo (specifically Codeberg.org) REST API.

Details

Author
goern
GitHub stars
92
Downloads
679
Categories
Developer Tools, Other

- Manage issues, pull requests, and comments
- Browse, create, update, and delete files
- List and manage branches and branch protection rules
- Trigger and inspect Actions workflow runs
- Track time on issues and manage stopwatches
- Handle issue/comment attachments (upload, download, delete)
- Support single‑tenant and multi‑tenant HTTP modes
- Multiple transport options: stdio, streamable HTTP, SSE

Install via Go (go install .), download a pre-built binary, use Nix (nix-shell -p forgejo-mcp), or run the container image. Obtain a personal access token from your Forgejo instance (Settings → Applications → Access Tokens). Configure your MCP client with stdio (command line) or streamable HTTP/SSE mode, providing the Forgejo URL and token.

Forgejo MCP Server

Connect your AI assistant to Forgejo repositories. Manage issues, pull requests, files, and more through natural language.

What It Does

Forgejo MCP Server is an integration plugin that connects Forgejo with Model Context Protocol (MCP) systems. Once configured, you can interact with your Forgejo repositories through any MCP-compatible AI assistant like Claude, Cursor, or VS Code extensions.

Example commands you can use:
- "List all my repositories"
- "Create an issue titled 'Bug in login page'"
- "Show me open pull requests in my-org/my-repo"
- "Get the contents of README.md from the main branch"
- "Show me the latest Actions workflow runs in goern/forgejo-mcp"

Quick Start

1. Install

Option A: Using Go (Recommended)

git clone https://codeberg.org/goern/forgejo-mcp.git
cd forgejo-mcp
go install .

Ensure $GOPATH/bin (typically ~/go/bin) is in your PATH.

> Note: go install codeberg.org/goern/forgejo-mcp/v2@latest does not work currently. See Known Issues.

Option B: Download Binary

Download the latest release from the releases page.

For Arch Linux, use your favorite AUR helper:

yay -S forgejo-mcp      # builds from source
yay -S forgejo-mcp-bin  # uses pre-built binary

Option C: Nix / NixOS

You can run the server directly using the Nix package manager:

 nix-shell -p forgejo-mcp

Or using Flakes:
 nix run nixpkgs#forgejo-mcp

> Note: forgejo-mcp is currently only available in the unstable channel and is not yet part of the 25.11 stable release.

Option D: Container image

A signed multi-stage OCI image is published on every release to
codeberg.org/goern/forgejo-mcp. Run the server without building from source:

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.