forgejo-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@forgejo-mcpshow my recent notifications"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: GitHub MCP Server
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
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.
Task management for people and AI agents, with scoped OAuth access to issues, projects, and docs.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with GitHub through OAuth-authenticated operations including starting authorization flows, listing repositories, and creating issues using stored access tokens.1-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with GitHub repositories, issues, pull requests, code, and more through a comprehensive set of tools.-
- AlicenseAqualityDmaintenanceEnables AI assistants to manage Gitea repositories, issues, and pull requests via the tea CLI, including full PR review workflows.156 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to access private GitHub repositories, organizations, issues, pull requests, and file contents via OAuth authentication.1 npmMIT