Back to Home
goern icon

forgejo-mcp

Verified Safe

by goern

Overview

Integrates Forgejo with Model Context Protocol (MCP) systems, enabling AI agents to execute commands and manage repositories via a chat interface.

Installation

Run Command
./forgejo-mcp --transport stdio --url "https://forgejo.example.org" --token "<your personal access token>"

Environment Variables

  • FORGEJO_URL
  • FORGEJO_ACCESS_TOKEN
  • FORGEJO_DEBUG

Security Notes

The server uses command-line arguments and environment variables for sensitive information like the Forgejo URL and access token, avoiding hardcoded secrets. It includes robust logging with context and sensitive URL sanitization. Input parameters for tools are type-checked and marked as required where appropriate. The SSE mode runs a local HTTP server, which is standard but requires users to manage its network exposure (though it defaults to localhost). No 'eval' or similar dangerous dynamic code execution patterns were found, and dependencies are standard for Go. Overall, the security implementation is strong for its purpose.

Similar Servers

Stats

Interest Score41
Security Score9
Cost ClassMedium
Avg Tokens750
Stars22
Forks5
Last Update2025-12-14

Tags

ForgejoMCPAI AgentRepository ManagementGoLang