forgejo-projects-mcp
This MCP server lets an AI agent authenticate to Forgejo and manage repository projects/Kanban boards, columns, cards/issues, and milestones via Forgejo's internal web routes.
Check authentication/status and force a fresh login/session refresh.
List accessible repositories and list open/closed/all projects in a repo.
Create, inspect, update, close, reopen, and delete projects.
Create, edit, delete, and set default columns on a board.
Create issues, optionally directly on a board, with milestone/label/assignee ids.
Add/remove existing issues to/from projects and move cards between columns, singly or in bulk.
Delete issues by repo issue number.
Read issue/card summaries in bulk or full card/column/project content with state/milestone filters and paging.
List, create, edit, close, reopen, and delete milestones.
Allows AI agents to manage Forgejo Projects and Kanban boards, including creating and managing projects, columns, cards/issues, milestones, and moving cards between board columns.
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-projects-mcp show the kanban boards for our Forgejo repo"
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.
Notice: Forgejo’s Projects API is about to be officially implemented, so a clean MCP implementation will be found elsewhere. See Forgejo discussion #466 for the relevant issue.
forgejo-projects-mcp
An MCP server that lets an AI agent manage Forgejo Projects / Kanban boards, which Forgejo does not expose over its REST API.
It works by driving the same internal web routes the browser uses, authenticated
with a session cookie. HTTP is done through Playwright's APIRequestContext, so
no browser binary is downloaded — only the playwright Python package is
needed. See the automation reference
for the reverse-engineered endpoints this is built on.
⚠️ This is a janky backend — do not rely on it for production
Forgejo exposes no API for Projects/Kanban, so this tool logs in as a real user and drives undocumented, unversioned internal web routes, scraping HTML for ids and board state. A Forgejo upgrade can change that markup and break things.
The client adapts to the instance version, and every published release from 1.20 to 16 is exercised end to end by an automated integration suite — but that only means known differences are handled, not that the approach is robust. Treat it as a best-effort stop-gap for personal use, test against a throwaway repo, and migrate if Forgejo ships a real Projects API.
Details: Limitations and risk.
Related MCP server: forgejo-mcp
Prerequisites
uv — used to install and run the tool. Install it from the official guide: https://docs.astral.sh/uv/getting-started/installation/.
Installation
All methods install a forgejo-projects-mcp executable onto your PATH (in uv's
tool bin directory). If uv warns that the directory isn't on your PATH, run
uv tool update-shell once and restart your shell. Verify with
forgejo-projects-mcp --help (or uv tool list).
No playwright install step is needed — the tool uses Playwright's HTTP layer,
not a real browser.
Latest release (PyPI)
uv tool install forgejo-projects-mcp
uv tool upgrade forgejo-projects-mcp # update laterBeta testing (latest from source)
Installs the current main branch straight from GitHub — newer than the last
release, and not guaranteed stable:
uv tool install git+https://github.com/UnwantedForeignCloudProvider/ForgejoProjectsMCP
uv tool upgrade forgejo-projects-mcp # re-pull the latest mainLocal build (from a clone)
For development, or to install a specific checkout:
git clone https://github.com/UnwantedForeignCloudProvider/ForgejoProjectsMCP
cd ForgejoProjectsMCP
uv tool install .To pick up local code changes automatically, install with
uv tool install --editable .; to update after pulling changes,
uv tool install . --force. To remove any of the above:
uv tool uninstall forgejo-projects-mcp.
Configuration
Credentials come from environment variables:
Variable | When required | Example |
| Always, so the cached session can be checked |
|
| When a fresh login is needed |
|
| When a fresh login is needed |
|
A .env file in the working directory is loaded automatically (via
python-dotenv) — copy .env.example to .env and fill it in; no source/
export needed. Real environment variables already set (and an MCP client's own
env block) take precedence. See .env.example for the full list, including the
optional FORGEJO_MCP_MAX_CONCURRENCY, FORGEJO_MCP_RPS,
FORGEJO_MCP_TIMEOUT, FORGEJO_MCP_LOG_LEVEL, and XDG_CONFIG_HOME for
relocating the session cache.
The session and the non-secret connection settings are cached under
<config>/forgejo_projects_mcp/, so after the first successful login no
environment variables are required. The password is never written to disk.
See Configuration.
Run
export FORGEJO_URL=... FORGEJO_USERNAME=... FORGEJO_PASSWORD=...
uv run forgejo-projects-mcp # stdio MCP serverRegister with an MCP client
Once installed, reference the command directly:
{
"mcpServers": {
"forgejo-projects-mcp": {
"command": "forgejo-projects-mcp",
"env": {
"FORGEJO_URL": "https://forge.example.com",
"FORGEJO_USERNAME": "your-username",
"FORGEJO_PASSWORD": "your-password"
}
}
}
}If your MCP client doesn't inherit your shell PATH, use the absolute path to the
executable instead (find it with which forgejo-projects-mcp, or
where forgejo-projects-mcp on Windows).
Agent installation
After uv tool install ., the forgejo-projects-mcp stdio command is on your
PATH. Register it with your agent below (replace the credential values). If the
command isn't found, use its absolute path (which forgejo-projects-mcp).
claude mcp add forgejo-projects-mcp \
-e FORGEJO_URL=https://forge.example.com \
-e FORGEJO_USERNAME=your-username \
-e FORGEJO_PASSWORD=your-password \
-- forgejo-projects-mcpcodex mcp add forgejo-projects-mcp \
--env FORGEJO_URL=https://forge.example.com \
--env FORGEJO_USERNAME=your-username \
--env FORGEJO_PASSWORD=your-password \
-- forgejo-projects-mcpqwen mcp add forgejo-projects-mcp \
-e FORGEJO_URL=https://forge.example.com \
-e FORGEJO_USERNAME=your-username \
-e FORGEJO_PASSWORD=your-password \
forgejo-projects-mcpopenclaw mcp add forgejo-projects-mcp \
--command forgejo-projects-mcp \
--env FORGEJO_URL=https://forge.example.com \
--env FORGEJO_USERNAME=your-username \
--env FORGEJO_PASSWORD=your-passwordopencode's opencode mcp add is an interactive wizard (no inline env flags), so
add it to opencode.json instead:
{
"mcp": {
"forgejo-projects-mcp": {
"type": "local",
"command": ["forgejo-projects-mcp"],
"environment": {
"FORGEJO_URL": "https://forge.example.com",
"FORGEJO_USERNAME": "your-username",
"FORGEJO_PASSWORD": "your-password"
}
}
}
}Hermes is config-file based — add to ~/.hermes/config.yaml:
mcp_servers:
forgejo-projects-mcp:
command: forgejo-projects-mcp
env:
FORGEJO_URL: https://forge.example.com
FORGEJO_USERNAME: your-username
FORGEJO_PASSWORD: your-passwordTools
Session & discovery
forgejo_status— check authentication, and report the instance version and the behavior resolved for it (CSRF mode, quirks in force, verified range)authenticate(force=False)— log in / refresh sessionlist_repositories(query, limit, page)— repos the user can access (pick one to work in)
Projects
list_projects(owner, repo, state)create_project(owner, repo, title, description, card_type)get_project(owner, repo, project_id)— board with columns + cardsupdate_project(...),close_project(...),reopen_project(...),delete_project(...)
Columns
create_column,edit_column,delete_column,set_default_column
Cards / issues
create_issue(... project_id=)— create an issue, optionally straight onto a boardadd_issues_to_project(owner, repo, project_id, issue_numbers)— move issues onto a board and returncardsnaming the column where each one landedremove_issues_from_project(owner, repo, issue_numbers, project_id=None)— detach issues from their board; the optional project id is a safety guard that refuses issues which are not cards on that boardmove_card(owner, repo, project_id, column_id, issue_numbers)bulk_move_cards(owner, repo, project_id, moves)— move many cards, each to its own column, in one call (moves= list of{issue_number, column_id})delete_issue
Bulk reads (run concurrently, rate-limited)
bulk_read_issues(owner, repo, issue_numbers, state="all")— lightweight summaries (number, title, state, milestone)read_card(owner, repo, number)— one card's full content (body + comments) ⚠️read_column(owner, repo, project_id, column_id, state="all", milestone=None)⚠️read_milestone(owner, repo, milestone_id, state="all", project=None)⚠️read_project(owner, repo, project_id, state="all", milestone=None)⚠️
Optional filters on the readers use direct values (no name lookup): state
(open/closed/all), and a milestone/project id (each tool omits the
filter that is already its own subject).
The full readers take limit/offset to cap and page results, and return
total / returned / truncated / error_count so cost and completeness are
explicit. bulk_read_issues returns count (successful only) plus a separate
errors list.
⚠️ = network- and token-expensive; use only when needed. Concurrency, request
rate and the per-request timeout are tunable via FORGEJO_MCP_MAX_CONCURRENCY
(default 8), FORGEJO_MCP_RPS (default 5) and FORGEJO_MCP_TIMEOUT (default 30
seconds).
Milestones
list_milestones,create_milestone,edit_milestone,close_milestone,reopen_milestone,delete_milestone
Labels
list_labels,create_label,edit_label,delete_labeladd_labels_to_issue,remove_labels_from_issue— validate every label id first, so an unknown one isLABEL_NOT_FOUNDrather than a silent no-op
Issue arguments use the repo issue number (what you see as #N); the server
resolves the internal id automatically. Labels are addressed by numeric id
(resolve a name from list_labels).
CLI (no MCP client needed)
For harnesses that can't speak MCP, forgejo-projects-cli exposes every tool
as a subcommand, generated from the same tool definitions and dispatched
in-process — so it stays in sync automatically. It reads the same
FORGEJO_URL / FORGEJO_USERNAME / FORGEJO_PASSWORD env vars, prints the JSON
result to stdout, logs to stderr, and exits non-zero on an error result.
Credentials can also be passed as options, accepted either before or after the tool name:
Option | Notes |
| Overrides |
| Overrides |
| Insecure — visible in process lists / shell history |
| Reads the password from the first line of stdin (preferred) |
Precedence is CLI option > env var > persisted config.json. --forgejo-password
and --forgejo-password-stdin are mutually exclusive.
Terminal sessions are prompted for missing or rejected credentials; piped invocations and the MCP server never are.
forgejo-projects-cli --help # lists every tool
forgejo-projects-cli <tool> --help # options for one tool
forgejo-projects-cli list_repositories --query kanban
forgejo-projects-cli create_project --owner o --repo r --title "Q3"
forgejo-projects-cli read_project --owner o --repo r --project_id 3 --state open
forgejo-projects-cli bulk_move_cards --owner o --repo r --project_id 3 \
--moves '[{"issue_number": 5, "column_id": 12}]'
# One-shot with explicit credentials, password piped in (not in argv):
printf '%s\n' "$FORGEJO_PW" | forgejo-projects-cli \
--forgejo-url https://forge.example.com --forgejo-username me \
--forgejo-password-stdin list_repositoriesOptions mirror each tool's parameters (--owner, --repo, …); list/object
parameters (--issue_numbers, --moves) take a JSON string.
Documentation
Getting started · Configuration · Tools · CLI · Architecture · Automation reference
Available Tools
31 toolsadd_issues_to_projectB
Add existing issues (by their repo issue numbers) to a project as cards.
Inputs: repo (required), owner (required), project_id (required), issue_numbers (required).
authenticateA
Authenticate to Forgejo and cache the session.
Args: force: If true, ignore any cached session and log in fresh.
Inputs: force.
bulk_move_cardsA
Move many cards at once, each to its own column.
Args: moves: list of {"issue_number": N, "column_id": C}. Cards going to the same column are placed in the order listed. Runs concurrently.
Inputs: repo (required), moves (required), owner (required), project_id (required).
bulk_read_issuesA
Read a summary (number, title, state, milestone) of many issues at once.
Lightweight — bodies and comments are omitted. Use read_card for full content.
Args: state: 'open', 'closed', or 'all' (default) — filters the returned issues.
Returns count (successfully read), error_count, the issues
summaries, and any errors (issues that could not be read).
Inputs: repo (required), owner (required), issue_numbers (required), state.
close_milestoneC
Close a milestone.
Inputs: repo (required), owner (required), milestone_id (required).
close_projectC
Close (archive) a project.
Inputs: repo (required), owner (required), project_id (required).
create_columnC
Add a column to a project board.
Args: color: Optional hex color, e.g. '#e01e5a'.
Inputs: repo (required), owner (required), title (required), project_id (required), +1 more.
create_issueA
Create an issue, optionally placing it directly on a project board.
Args: project_id: If given, the issue is added to that project as a card. milestone_id: Optional milestone to attach. label_ids / assignee_ids: Optional numeric ids.
Inputs: repo (required), owner (required), title (required), body, +4 more.
create_milestoneC
Create a milestone.
Args: deadline: Optional due date, 'YYYY-MM-DD'.
Inputs: repo (required), owner (required), title (required), deadline, +1 more.
create_projectA
Create a new project/kanban board in a repository.
Args: owner: Repository owner. repo: Repository name. title: Project title. description: Optional description. card_type: 'text' or 'images_and_text'.
Inputs: repo (required), owner (required), title (required), card_type, +1 more.
delete_columnA
Delete a column. Its cards return to the default/uncategorized column.
Inputs: repo (required), owner (required), column_id (required), project_id (required).
delete_issueC
Permanently delete an issue by number.
Inputs: repo (required), owner (required), number (required).
delete_milestoneC
Delete a milestone.
Inputs: repo (required), owner (required), milestone_id (required).
delete_projectA
Permanently delete a project. This does not delete its issues.
Inputs: repo (required), owner (required), project_id (required).
edit_columnB
Edit a column's title and/or color.
Inputs: repo (required), owner (required), column_id (required), project_id (required), +2 more.
edit_milestoneA
Edit a milestone's title, description and/or deadline ('YYYY-MM-DD').
Inputs: repo (required), owner (required), milestone_id (required), title, +2 more.
forgejo_statusA
Report whether the MCP is authenticated to the Forgejo instance.
Reads credentials from FORGEJO_URL / FORGEJO_USERNAME / FORGEJO_PASSWORD and authenticates if needed, persisting the session under the OS config dir (e.g. ~/.config/forgejo_projects_mcp/).
Inputs: no named parameters.
get_projectB
Get a project board: its columns and the cards (issues) in each.
Returns column ids/titles and, per card, the issue id, number and title.
Inputs: repo (required), owner (required), project_id (required).
list_milestonesA
List milestones in a repository ('open', 'closed', or 'all').
Inputs: repo (required), owner (required), state.
list_projectsA
List projects (kanban boards) in a repository.
Args: owner: Repository owner (user or org). repo: Repository name. state: 'open', 'closed', or 'all'.
Inputs: repo (required), owner (required), state.
list_repositoriesA
List repositories the current user can access (for choosing where to manage projects).
Args: query: Optional name filter. limit: Max results (default 50). page: Page number (default 1).
Inputs: page, limit, query.
move_cardC
Move one or more cards (issues, by number) into a column, in the given order.
Inputs: repo (required), owner (required), column_id (required), project_id (required), +1 more.
read_cardA
Full content of one card/issue: title, state, body, milestone, and all comments.
⚠️ Network- and token-expensive. Avoid unless asked or necessary.
Inputs: repo (required), owner (required), number (required).
read_columnA
Full content of every card in a column.
Args: state: 'open', 'closed', or 'all' (default). milestone: optional milestone id to restrict to. limit: max cards to read this call (None = no limit); offset to page.
⚠️ Network- and token-expensive. Avoid unless asked or necessary; use limit/offset to cap cost.
Inputs: repo (required), owner (required), column_id (required), project_id (required), +4 more.
read_milestoneA
Full content of every issue attached to a milestone.
Args: state: 'open', 'closed', or 'all' (default). project: optional project id to restrict to. limit: max issues to read this call (None = no limit); offset to page.
⚠️ Network- and token-expensive. Avoid unless asked or necessary; use limit/offset to cap cost.
Inputs: repo (required), owner (required), milestone_id (required), limit, +3 more.
read_projectA
Full content of an entire board: every column and every card's content.
Args: state: 'open', 'closed', or 'all' (default). milestone: optional milestone id to restrict to. limit: max cards to read this call (None = no limit); offset to page.
⚠️ Network- and token-expensive. Avoid unless asked or necessary; use limit/offset to cap cost.
Inputs: repo (required), owner (required), project_id (required), limit, +3 more.
remove_issues_from_projectB
Remove issues (by number) from any project board. The issues themselves survive.
Inputs: repo (required), owner (required), issue_numbers (required).
reopen_milestoneC
Reopen a closed milestone.
Inputs: repo (required), owner (required), milestone_id (required).
reopen_projectC
Reopen a closed project.
Inputs: repo (required), owner (required), project_id (required).
set_default_columnA
Set a column as the project's default (where new cards land).
Inputs: repo (required), owner (required), column_id (required), project_id (required).
update_projectC
Update a project's title, description and/or card type.
Inputs: repo (required), owner (required), project_id (required), title, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 31 tools
Most tools target a distinct resource and action (projects, columns, issues, milestones), and descriptions clarify boundaries between close/delete, remove/delete, and get/read. A few pairs—get_project vs read_project and add_issues_to_project vs create_issue with project_id—require careful reading but are ultimately distinguishable.
The dominant verb_noun pattern is clear (create/delete/list/close/reopen), but the set mixes synonyms: update_project vs edit_column/edit_milestone, get_project vs read_project, list_milestones vs read_milestone, plus the non-standard forgejo_status and authenticate. It remains readable but lacks a single consistent convention.
At 31 tools, the surface is heavy for a Forgejo project-management server; the rubric places 25+ in the too-many range. The count is inflated by bulk variants and several full-content read_* tools that could potentially be consolidated.
The surface covers auth, repositories, projects, columns, cards, and milestones with CRUD and lifecycle operations. However, there is no update_issue/edit_issue for title/body/state/assignees/labels after creation, and label and assignee management is absent, leaving a notable workflow gap.
Maintenance
Related MCP Connectors
Project management for humans and AI agents: goals, metrics, projects, and issues.
Remote MCP for Kanban AI boards—manage projects, tasks, and comments from AI tools.
Task and bug tracker for AI coding agents: 75 tools to file, triage and update work.
Kanban boards, cards, checklists and team chat for AI agents. Hosted, OAuth sign-in, free.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA comprehensive project management system that provides a full-featured Kanban board and dashboard accessible to AI agents. It enables agents to programmatically manage projects, tasks, and workflows through a suite of 13 specialized tools and 4 resource types.4-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with a Forgejo instance as an authenticated user, supporting issues, pull requests, repositories, and notifications.88 npmMIT
- 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
- AlicenseBqualityCmaintenanceEnables AI agents to read repositories, manage issues, inspect CI/CD workflow runs, create branches, commit files, and open pull requests on a self-hosted Gitea instance.7MIT