forgejo-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
forgejo-mcp
A Model Context Protocol (MCP) server for Forgejo that enables AI agents to interact with a Forgejo instance as an authenticated user.
Features
Tool | Forgejo API endpoint | Description |
|
| Search issues & PRs across all repos |
|
| List issues in a repository |
|
| Get a single issue |
|
| Create a new issue |
|
| Edit an issue |
|
| List comments |
|
| Add a comment |
|
| Search repositories |
|
| Get repository info |
|
| Get authenticated user profile |
|
| Get any user's public profile |
|
| List notifications |
|
| List pull requests in a repository |
|
| Get a single pull request |
|
| Create a new pull request |
|
| Edit a pull request |
|
| Merge a pull request |
|
| Get PR diff as plain text |
|
| List files changed in a PR |
|
| List reviews on a PR |
|
| Update a PR branch |
Related MCP server: mcp-github_private
Requirements
Node.js ≥ 18
A Forgejo personal access token
Installation
npm install -g @openmanbo/forgejo-mcpSetup
Generate a Forgejo token:
Go to<your-forgejo-instance>/user/settings/applicationsand create a token with the scopes you need (at minimumread:issuefor searching).Configure environment variables:
export FORGEJO_URL=https://codeberg.org # or your own instance export FORGEJO_TOKEN=your_token_here
Running the server
forgejo-mcp
# or with npx (no install needed):
npx @openmanbo/forgejo-mcpThe server communicates over stdio using the MCP protocol.
Connecting to an MCP client
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"forgejo": {
"command": "npx",
"args": ["-y", "@openmanbo/forgejo-mcp"],
"env": {
"FORGEJO_URL": "https://codeberg.org",
"FORGEJO_TOKEN": "your_token_here"
}
}
}
}VS Code (.vscode/mcp.json)
{
"servers": {
"forgejo": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@openmanbo/forgejo-mcp"],
"env": {
"FORGEJO_URL": "https://codeberg.org",
"FORGEJO_TOKEN": "${env:FORGEJO_TOKEN}"
}
}
}
}Development
git clone https://github.com/openmanbo/forgejo-mcp.git
cd forgejo-mcp
npm install
npm run build
npm test # run unit testsLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Read and write KukGit repositories, files, issues and pull requests from an AI assistant.
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to manage Gitea repositories, issues, and pull requests via the tea CLI, including full PR review workflows.1510 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to access private GitHub repositories, organizations, issues, pull requests, and file contents via OAuth authentication.462 npmMIT
- FlicenseAqualityBmaintenanceEnables assistants to read Forgejo repositories and manage issues and pull requests directly from the working session, using the caller's own token against any Forgejo instance.13-
- AlicenseCqualityBmaintenanceEnables AI assistants to manage Forgejo repositories, issues, pull requests, files, commits, Actions workflow runs, organizations, and notifications through the Forgejo REST API using natural language.50MIT