A MCP server that enables you to manage Gitea/Forgejo repositories through AI assistants
  • Go 91.2%
  • Shell 7.2%
  • Perl 1.6%
Find a file
Ronmi Ren c963d1858a Add comprehensive bilingual documentation
- Add README.md (English) - Complete user guide for AI-assisted repository management
- Add README.tw.md (Traditional Chinese) - Comprehensive setup and usage guide

Both documents include:
- Installation instructions (go install & pre-built binaries)
- Configuration guides for Claude Desktop, VS Code, and Gemini CLI
- Cross-platform setup (Windows/macOS/Linux)
- Security recommendations with environment variables
- Natural language usage examples for AI-assisted workflows
- Support for intelligent progress tracking, issue categorization, and priority sorting

Target audience: Users wanting AI assistance for repository management tasks.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-05 14:37:14 +08:00
.forgejo/workflows Add Forgejo Actions release workflow 2025-08-05 14:08:21 +08:00
.rmi-work init 2025-08-03 23:06:30 +08:00
cmd Complete MCP server implementation with all tool registrations 2025-08-05 13:57:08 +08:00
fj11 init 2025-08-03 23:06:30 +08:00
tools Fix string to array conversion in list_issues tool 2025-08-05 13:54:30 +08:00
types Add API response types with Markdown rendering 2025-08-03 23:18:52 +08:00
.env init 2025-08-03 23:06:30 +08:00
.env.local Complete all tool implementations with Client dependency 2025-08-05 13:10:25 +08:00
CLAUDE.md Complete all tool implementations with Client dependency 2025-08-05 13:10:25 +08:00
features.md Fix API path inconsistencies with swagger specification 2025-08-04 20:55:04 +08:00
features.tw.md Fix API path inconsistencies with swagger specification 2025-08-04 20:55:04 +08:00
go.mod Add comprehensive MCP tool definitions for Forgejo operations 2025-08-04 02:19:10 +08:00
go.sum Add comprehensive MCP tool definitions for Forgejo operations 2025-08-04 02:19:10 +08:00
LICENSE create basic cli entry 2025-08-03 23:06:43 +08:00
main.go create basic cli entry 2025-08-03 23:06:43 +08:00
memo.md init 2025-08-03 23:06:30 +08:00
progress.tw.md Complete all tool implementations with Client dependency 2025-08-05 13:10:25 +08:00
prompt.tw.md Complete all tool implementations with Client dependency 2025-08-05 13:10:25 +08:00
proposal.md init 2025-08-03 23:06:30 +08:00
proposal.tw.md init 2025-08-03 23:06:30 +08:00
README.md Add comprehensive bilingual documentation 2025-08-05 14:37:14 +08:00
README.tw.md Add comprehensive bilingual documentation 2025-08-05 14:37:14 +08:00
swagger.v1.json init 2025-08-03 23:06:30 +08:00

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
  • Upload and manage release attachments

Other Features

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

📦 Installation

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

Method 2: Download Pre-compiled Binaries

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

⚙️ Configuration

1. Get Forgejo/Gitea Access Token

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

2. Configure MCP Client

🖥️ Claude Desktop

Windows

Edit %APPDATA%\Claude\claude_desktop_config.json:

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

macOS

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

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

Linux

Edit ~/.config/claude/claude_desktop_config.json:

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

💎 Gemini CLI

If you're using Gemini CLI, add this to your configuration file:

mcp_servers:
  forgejo:
    command: forgejo-mcp
    args:
      - stdio  
      - --server
      - https://your-forgejo-instance.com
      - --token
      - your_access_token

🛡️ Security Recommendations

  1. Use environment variables: Avoid writing tokens directly in configuration files

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

    Then remove the --server and --token parameters from your configuration.

  2. Limit token permissions: Only grant necessary permission scopes

  3. Rotate tokens regularly: Recommended to update access tokens periodically

📋 Usage Examples

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

"Show me all issues labeled 'bug' with status 'open' in the user/myproject repository"

"Create a new issue in the user/myproject repository titled 'Fix login problem' with reproduction steps"

"Help me label issue #123 as 'urgent' and 'backend'"

"List all milestones in the user/myproject repository and tell me which ones are due soon"

"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! 🚀