1. Conduid
  2. Maps
  3. raohwork/forgejo-mcp
MCP server · Maps

raohwork/forgejo-mcp

A MCP server that enables you to manage Gitea/Forgejo repositories through AI assistants

Unclaimed MPL-2.0 last commit 11 months ago forgejomcp-server
61Good

Scored 7 days ago · breakdown

About raohwork/forgejo-mcp

raohwork/forgejo-mcp is an MCP server published by raohwork in the Maps category: a MCP server that enables you to manage Gitea/Forgejo repositories through AI assistants.

The repository has 70 stars and 19 forks, with the last commit 11 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/raohwork/forgejo-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about raohwork/forgejo-mcp

Powered by Claude · Grounded in docs

I know everything about raohwork/forgejo-mcp. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 9 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v0.0.7Add missing tool and fix milestone bug · 28 Oct 2025New Features feat: add create_pull_request tool Bug Fixes fix: include milestone ID in markdown output Full Changelog: https://github.com/raohwork/forgejo-mcp/compare/v0.0.6...v0.0.7
v0.0.6Upgraded MCP SDK from v0.2.x to v0.4.0 · 12 Sep 2025This version does not change any feature, just upgrade the MCP SDK. Full Changelog: https://github.com/raohwork/forgejo-mcp/compare/v0.0.5...v0.0.6
v0.0.5Minor improvements · 14 Aug 2025This release introduces new features and important updates to improve functionality and maintain compatibility. New Features Enhanced Issue Listing: The `list_repo_issues` tool now supports since and before time filters, allowing for more…
v0.0.4Attachment Refactor and Project Enhancements · 12 Aug 2025v0.0.4 - Attachment Refactor and Project Enhancements What's Changed 🔧 Refactoring Removed attachment upload functionality: Streamlined the codebase by removing attachment upload tools and methods for both issues and releases Removed…
v0.0.3Issue Blocking, Transport Modes, and CI Improvements · 7 Aug 2025🚀 New Features Issue Blocking: Introduced full support for issue blocking, allowing one issue to block another. (#1) Transport Modes: Implemented MCP (Machine-readable Command Protocol) over SSE (Server-Sent Events) and HTTP, providing…

README

Gitea/Forgejo MCP Server

Turn AI into your code repository management assistant

A Model Context Protocol (MCP) server that enables you to manage Gitea/Forgejo repositories through AI assistants like Claude, Gemini, and Copilot.

🚀 Why Use Forgejo MCP Server?

If you want to:

  • Smart progress tracking: Let AI help you track project progress and analyze bottlenecks
  • Automated issue categorization: Automatically tag issue labels and set milestones based on content
  • Priority sorting: Let AI analyze issue content to help prioritize tasks
  • Code review assistance: Get AI suggestions and insights in Pull Requests
  • Project documentation organization: Automatically organize Wiki documents and release notes

Then this tool is made for you!

✨ Supported Features

Issue Management

  • Create, edit, and view issues
  • Add, remove, and replace labels
  • Manage issue comments and attachments
  • Set issue dependencies

Project Organization

  • Manage labels (create, edit, delete)
  • Manage milestones (create, edit, delete)
  • Repository search and listing

Release Management

  • Manage version releases
  • Manage release attachments

Other Features

  • View Pull Requests
  • Manage Wiki pages
  • View Forgejo/Gitea Actions tasks

📦 Installation

Method 1: Use docker (Recommended)

For STDIO mode, you can skip to Usage section.

For SSE/Streamable HTTP mode, you should run forgejo-mcp as server before configuring your MCP client.

docker run -p 8080:8080 -e FORGEJOMCP_TOKEN="my-forgejo-api-token" ronmi/forgejo-mcp http --address :8080 --server https://git.example.com

Method 2: Install from source

go install github.com/raohwork/forgejo-mcp@latest

Method 3: Download Pre-compiled Binaries

Download the appropriate version for your operating system from the Releases page.

🖥️ Usage

This tool provides two primary modes of operation: stdio for local integration and http for remote access.

Before actually setup you MCP client, you have to create an access token on the Forgejo/Gitea server.

  1. Log in to your Forgejo/Gitea instance
  2. Go to Settings → Applications → Access Tokens
  3. Click Generate New Token
  4. Select appropriate permission scopes (recommend at least repository and issue write permissions)
  5. Copy the generated token

💡 Tip: For security, consider setting environment variables instead of using tokens directly in config:

export FORGEJOMCP_SERVER="https://your-forgejo-instance.com"
export FORGEJOMCP_TOKEN="your_access_token"

Stdio Mode (for Local Clients)

This is the recommended mode for integrating with local AI assistant clients like Claude Desktop or Gemini CLI. It uses standard input/output for direct communication.

Configure Your AI Client

Using docker:

{
  "mcpServers": {
    "forgejo": {
      "command": "docker",
      "args": [
        "--rm",
        "ronmi/forgejo-mcp",
        "stdio",
        "--server", "https://your-forgejo-instance.com",
        "--token", "your_access_token"
      ]
    }
  }
}

Installed from source or pre-built binary:

{
  "mcpServers": {
    "forgejo": {
      "command": "/path/to/forgejo-mcp",
      "args": [
        "stdio",
        "--server", "https://your-forgejo-instance.com",
        "--token", "your_access_token"
      ]
    }
  }
}

You might want to take a look at Security Recommendations section for best practice.

HTTP Server Mode (for Remote Access)

This mode starts a web server, allowing remote clients to connect via HTTP. It's ideal for web-based services or setting up a central gateway for multiple users.

Run the following command to start the server:

# with local binary
/path/to/forgejo-mcp http --address :8080 --server https://your-forgejo-instance.com

# with docker
docker run -p 8080:8080 -d --rm ronmi/forgejo-mcp http --address :8080 --server https://your-forgejo-instance.com

The server supports two operational modes:

  • Single-user mode: If you provide a --token (or environment variable FORGEJOMCP_TOKEN) at startup, all operations will use that token.
    forgejo-mcp http --address :8080 --server https://git.example.com --token your_token
    
  • Multi-user mode: If no token is provided, the server requires clients to send an Authorization: Bearer <token> header with each request, allowing it to serve multiple users securely.

Client Configuration

For clients that support connecting to a remote MCP server via HTTP, you can add a configuration like this. This example shows how to connect to a server running in multi-user mode:

{
  "mcpServers": {
    "forgejo-remote": {
      "type": "sse",
      "url": "http://localhost:8080/sse",
      "headers": {
        "Authorization": "Bearer your_token"
      }
    }
  }
}

or http type (for Streamable HTTP, use different path in URL)

{
  "mcpServers": {
    "forgejo-remote": {
      "type": "http",
      "url": "http://localhost:8080/",
      "headers": {
        "Authorization": "Bearer your_token"
      }
    }
  }
}

If connecting to a server in single-user mode, you can omit the headers field.

🛡️ Security Recommendations

  1. Use environment variables: Set FORGEJOMCP_SERVER and FORGEJOMCP_TOKEN, then remove --server and --token from your configuration
  2. Limit token permissions: Only grant necessary permission scopes
  3. Rotate tokens regularly: Update access tokens periodically

📋 Usage Examples

After configuration, you can use natural language in your AI assistant to manage your repositories:

"Show me critical bug reports of this repo on my gitea server"

"According to our discussion above, create a detailed issue about this bug, then leave a comment on the issue to describe how we will fix it."

"Give me a report about current milestone. Recent progression in particular."

"Analyze recent pull requests and tell me which ones need priority review"

🤝 Support & Contributing

  • Bug Reports: GitHub Issues
  • Code Contributions: Pull Requests are welcome!

📄 License

This project is licensed under the Mozilla Public License 2.0.


Start making AI your code repository management partner! 🚀

README fetched from the repository 9 hours ago. The original is authoritative.

Questions

About raohwork/forgejo-mcp

How do I install raohwork/forgejo-mcp?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is raohwork/forgejo-mcp safe to use with an AI agent?

Its trust score is 61 out of 100 (good). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is raohwork/forgejo-mcp still maintained?

The last commit was 11 months ago and 16 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.