Back to Browse

Openproject MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

72 tools for the OpenProject API v3: work packages, attachments, git activity, time, reporting

About

72 tools for the OpenProject API v3: work packages, attachments, git activity, time, reporting

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (1 strong, 1 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

3 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

What You'll Need

Set these up before or after installing:

OpenProject instance root URL, e.g. https://openproject.example.comOptional

Environment variable: OPENPROJECT_URL

API key from My account -> Access tokens in OpenProjectRequired

Environment variable: OPENPROJECT_API_KEY

Set to 1 to serve read tools onlyOptional

Environment variable: OPENPROJECT_MCP_READ_ONLY

Set to 1 to enable the membership-write tools (hidden by default)Optional

Environment variable: OPENPROJECT_MCP_ADMIN_TOOLS

Comma-separated tool groups to drop, e.g. meetings,budgetsOptional

Environment variable: OPENPROJECT_MCP_DISABLE

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-kar-thik-openproject-mcp-server": {
      "env": {
        "OPENPROJECT_URL": "your-openproject-url-here",
        "OPENPROJECT_API_KEY": "your-openproject-api-key-here",
        "OPENPROJECT_MCP_DISABLE": "your-openproject-mcp-disable-here",
        "OPENPROJECT_MCP_READ_ONLY": "your-openproject-mcp-read-only-here",
        "OPENPROJECT_MCP_ADMIN_TOOLS": "your-openproject-mcp-admin-tools-here"
      },
      "args": [
        "openproject-mcp-server"
      ],
      "command": "uvx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

OpenProject MCP Server

PyPI CI

An MCP (Model Context Protocol) server for the OpenProject API v3. It gives Claude and any other MCP client 72 tools covering work packages, comments and relations, attachments, git/PR activity, projects, saved queries, notifications, time tracking, versions, people and memberships, meetings, news, documents, budgets and reporting — plus 4 report/workflow prompts and 3 resource templates. Built on FastMCP 3.x and httpx (HTTP/2).

This project is aimed at the OpenProject Community edition. OpenProject's Enterprise edition now ships with its own built-in MCP integration; this server brings the same capability to self-hosted Community instances. It runs fine against any edition — it only needs the public API v3.

Design principles, all enforced in code:

  • Structured everything. Every tool returns a typed model, so clients get an outputSchema and machine-readable structuredContent, not prose. Errors come back as a JSON envelope with a stable type, the upstream http_status, a message and a hint describing how to correct the call.
  • Honest degradation. OpenProject instances differ by version, installed modules and permissions. Tools report what they could not see as in-band notes — a missing module yields an empty page with an explanation, never a fake success or a bare traceback.
  • Safe by default. A read-only mode, admin-gated membership writes, per-group tool disabling, a confirm=true guard on every destructive tool, TLS always verified, and credentials that never appear in logs.
  • Version-adaptive. Targets OpenProject 14 LTS through 17.x; API differences are detected by a lazy, cached feature probe instead of assumptions (see Supported OpenProject versions).

Requirements

  • Python >= 3.12
  • An OpenProject instance, version 14 LTS through 17.x (any edition; aimed at Community — Enterprise ships its own MCP integration)
  • An OpenProject API key: in OpenProject, go to My account → Access tokens and generate an API token

Installation

The distribution name is openproject-mcp-server. It installs two identical console scripts, openproject-mcp-server and openproject-mcp; the long form is canonical (an unrelated PyPI package also installs a bin named openproject-mcp).

Run one-shot with uv, no install step:

uvx openproject-mcp-server

Or install persistently:

uv tool install openproject-mcp-server
# or
pip install openproject-mcp-server

The minimal configuration is two environment variables:

export OPENPROJECT_URL=https://openproject.example.com
export OPENPROJECT_API_KEY=your-api-key

Validate the configuration without starting the server:

openproject-mcp-server --check

--check verifies the configuration and exits; it does not contact your instance. Once connected through a client, call the get_instance_info tool for a live end-to-end check. When configuration is missing or invalid, the server prints the specific problems to stderr and exits with code 2 — never a traceback.

Claude Code

claude mcp add openproject \
  --env OPENPROJECT_URL=https://openproject.example.com \
  --env OPENPROJECT_API_KEY=your-api-key \
  -- uvx openproject-mcp-server

Claude Desktop and other MCP clients

Add to claude_desktop_config.json (or your client's equivalent mcpServers config):

{
  "mcpServers": {
    "openproject": {
      "command": "uvx",
      "args": ["openproject-mcp-server"],
      "env": {
        "OPENPROJECT_URL": "https://openproject.example.com",
        "OPENPROJECT_API_KEY": "your-api-key"
      }
    }
  }
}

From source

git clone https://github.com/kar-thik/openproject-mcp
cd openproject-mcp
uv sync
uv run openproject-mcp-server

Updating or rotating your API token

When a token is regenerated, revoked or invalidated (OpenProject major upgrades can do this — the symptom is every tool suddenly failing with authentication_failed / HTTP 401), generate a fresh one in OpenProject under My account → Access tokens and update it wherever your key lives:

  • Shell environment (easiest to rotate). The server reads OPENPROJECT_API_KEY straight from the OS environment, so you can export it globally — e.g. in ~/.zshenv — and register the server with no --env flags at all:

    claude mcp add openproject -- uvx openproject-mcp-server
    

    Rotation is then: edit the export, open a fresh terminal, reconnect. The client config never contains a secret. (This does not work for GUI apps like Claude Desktop, which don't read your shell profile.)

  • Claude Code with --env. The registration stores the key, so replace it:

    claude mcp remove openproject
    claude mcp add openproject \
      --env OPENPROJECT_URL=https://openproject.example.com \
      --env OPENPROJECT_API_KEY=new-key \
      -- uvx openproject-mcp-server
    

    Then reconnect via /mcp (a running session keeps the old environment until it does).

  • Claude Desktop and other JSON-configured clients. Edit the OPENPROJECT_API_KEY value in the client config and restart the client.

  • .env file. Edit the file and restart the server.

Recent OpenProject versions allow several API tokens in parallel, so you can rotate with zero downtime: create the new token, switch your clients over, then revoke the old one.

Configuration

Configuration is entirely environment-driven. The table below is the authoritative reference: the server binds exactly these 25 names and no others. Bare, unprefixed names such as READ_TIMEOUT or API_KEY are deliberately ignored (a stray variable in your shell cannot change or break the server), as is any other unknown variable. A .env file in the server's working directory is read with the same names; real environment variables take precedence. From-source users can start from .env.example.

VariableDefaultPurpose
OPENPROJECT_URL— (required)Instance root URL, e.g. https://openproject.example.com. A trailing /api/v3 is tolerated and stripped.
OPENPROJECT_API_KEY— (required*)API key from My account → Access tokens. Sent as HTTP Basic apikey:<token>.
OPENPROJECT_OAUTH_TOKENunsetOAuth bearer token, as an alternative to the API key. *One of the two credentials is required.
OPENPROJECT_MCP_ACCEPT_LANGUAGEunsetSent as the Accept-Language header; OpenProject localizes validation messages accordingly.
OPENPROJECT_MCP_CA_BUNDLEsystem trust storePath to a CA bundle (PEM) for instances behind a private CA. TLS is always verified; there is deliberately no off switch.
OPENPROJECT_MCP_READ_ONLYfalseServe read tools only: every write, destructive and admin tool is removed at startup.
OPENPROJECT_MCP_ADMIN_TOOLSfalseExpose the three admin-gated membership write tools (hidden by default).
OPENPROJECT_MCP_DISABLEemptyComma-separated group tags to remove whole tool groups at startup (see below).
OPENPROJECT_MCP_INSECUREfalseAllow --transport http to start without auth tokens. Local development only.
OPENPROJECT_MCP_DOWNLOAD_DIR./openproject-downloadsDirectory where download_attachment writes files (created if missing; default is relative to the server's working directory).
OPENPROJECT_MCP_MAX_DOWNLOAD_MB100Size cap for attachment downloads, in MiB.
OPENPROJECT_MCP_CACHE_TTL300TTL in seconds for the metadata cache (statuses, types, priorities, schemas).
OPENPROJECT_MCP_LOG_LEVELINFODEBUG, INFO, WARNING, ERROR or CRITICAL (case-insensitive).
OPENPROJECT_MCP_LOG_FORMATtexttext or json. Logs always go to stderr (stdout belongs to the stdio transport).
OPENPROJECT_MCP_LOG_BODIESfalseLog request/response bodies — only at DEBUG level, with credentials redacted. Development use only.
OPENPROJECT_MCP_OTELfalseReserved for OpenTelemetry tracing. Accepted but not yet wired to anything in this release; setting it produces no traces.
OPENPROJECT_MCP_HTTP_HOST127.0.0.1Bind address for --transport http.
OPENPROJECT_MCP_HTTP_PORT8000Port for --transport http.
OPENPROJECT_MCP_AUTH_TOKENSunsetComma-separated bearer tokens accepted by --transport http (e.g. one per client). Every request must carry Authorization: Bearer <token> with one of them; anything else gets a 401. Without it (and without OPENPROJECT_MCP_INSECURE=1), the HTTP transport refuses to start. See Transports.
OPENPROJECT_MCP_CONNECT_TIMEOUT10Seconds to wait for a TCP/TLS connection to OpenProject.
OPENPROJECT_MCP_READ_TIMEOUT30Seconds to wait for response data.
OPENPROJECT_MCP_WRITE_TIMEOUT60Seconds to wait while sending request data (uploads).
OPENPROJECT_MCP_POOL_TIMEOUT5Seconds to wait for a free connection from the pool.
OPENPROJECT_MCP_MAX_CONNECTIONS10Connection pool size toward OpenProject.
OPENPROJECT_MCP_MAX_RETRIES3Retry budget for idempotent requests.

Secrets (OPENPROJECT_API_KEY, OPENPROJECT_OAUTH_TOKEN, OPENPROJECT_MCP_AUTH_TOKENS) are held in memory as Pydantic SecretStr values and are never written to logs; the Authorization header is redacted in every log record.

Limiting what the model can do

Three settings shrink the tool surface at startup (the tool list is fixed for the lifetime of the process):

  • OPENPROJECT_MCP_READ_ONLY=1 serves only the 35 read tools.
  • OPENPROJECT_MCP_ADMIN_TOOLS=1 reveals the three membership write tools (create_membership, update_membership, delete_membership); they are hidden by default.
  • OPENPROJECT_MCP_DISABLE drops whole groups to cut prompt cost, e.g. OPENPROJECT_MCP_DISABLE=meetings,news. The valid group tags are: work_packages, wp_collaboration, attachments, git_activity, projects, queries, notifications, time_entries, versions, people, metadata, meetings, wiki, documents, budgets, news, reporting — the same tags that head each section of the tool catalog below.

Independent of all three, every destructive tool (the eight permanent deletes) requires an explicit confirm=true argument before it acts.

Transports

  • stdio (default) — what Claude Code, Claude Desktop and most local MCP clients use. Logs go to stderr; stdout carries only the protocol.

  • Streamable HTTPopenproject-mcp-server --transport http. Binds 127.0.0.1:8000 by default; override with --host/--port or OPENPROJECT_MCP_HTTP_HOST/ OPENPROJECT_MCP_HTTP_PORT. The HTTP transport refuses to start without authentication configured: set OPENPROJECT_MCP_AUTH_TOKENS to a comma-separated list of bearer tokens, or — for local development only — set OPENPROJECT_MCP_INSECURE=1.

    With tokens configured, every HTTP request to the MCP endpoint must carry an Authorization: Bearer <token> header whose token matches one of the configured values (compared in constant time); requests with a missing, malformed or unknown token are rejected with a 401 and a WWW-Authenticate header. Multiple tokens are supported — for example one per client, so each can be revoked independently. Tokens must be ASCII, and the endpoint applies no rate limiting, so use long random values — for example python -c "import secrets; print(secrets.token_urlsafe(32))". OPENPROJECT_MCP_INSECURE=1 remains a development-only escape hatch that leaves the endpoint open without authentication.

    The server does not terminate TLS, so tokens would otherwise cross the network in plaintext: keep the default 127.0.0.1 bind, and if you must expose the HTTP transport beyond localhost, put it behind a TLS-terminating reverse proxy (for example nginx or Caddy).

Tools

72 tools: 35 read, 34 write and 3 admin-gated writes. The admin tools stay hidden unless OPENPROJECT_MCP_ADMIN_TOOLS=1; the 8 destructive tools additionally require confirm=true on every call. Each section heading names the group tag accepted by OPENPROJECT_MCP_DISABLE.

Work packages (work_packages)

ToolKindWhat it does
search_work_packagesReadFind work packages by text when you do not know their ids.
list_work_packagesReadList work packages with structured filters — the workhorse read tool.
get_work_packageReadRead one work package in full: description, dates, custom fields, parent and progress.
create_work_packageWriteCreate a work package, validated through OpenProject's own form endpoint first.
update_work_packageWriteChange any writable field of a work package, with optimistic locking.
delete_work_packageWrite (destructive)Permanently delete a work package and everything attached to it.

Comments, relations, watchers, reminders (wp_collaboration)

ToolKindWhat it does
list_work_package_commentsReadRead the comment thread and change history of a work package.
add_work_package_commentWritePost a comment on a work package.
edit_work_package_commentWriteRewrite the text of an existing work-package comment.
add_work_package_watcherWriteSubscribe a user to a work package's notifications.
remove_work_package_watcherWriteUnsubscribe a user from a work package's notifications.
create_work_package_relationWriteLink two work packages (blocks, follows, duplicates, relates, ...).
update_work_package_relationWriteChange an existing relation's type, lag or description.
delete_work_package_relationWrite (destructive)Remove the link between two work packages.
toggle_comment_reactionWriteReact to a work-package comment with an emoji, or take the reaction back.
set_work_package_reminderWriteSet, change or clear your personal reminder on a work package.
list_remindersReadList your own upcoming work-package reminders.
execute_custom_actionWriteRun an instance-defined one-click action on a work package.

Attachments and file links (attachments)

ToolKindWhat it does
list_attachmentsReadList the files attached to one container.
download_attachmentReadDownload an attachment's bytes to a file on the machine running this server.
upload_attachmentWriteAttach a local file to a work package, wiki page, meeting, document, budget or comment.
delete_attachmentWrite (destructive)Permanently delete one attached file from OpenProject.
list_file_linksReadList the external-storage files (Nextcloud, OneDrive/SharePoint) linked to a work package.

Git and pull requests (git_activity)

ToolKindWhat it does
get_work_package_git_activityReadShow the code behind a work package: commits, pull/merge requests and CI status.
get_github_pull_requestReadRead one linked GitHub pull request in full, including its CI check runs.

Projects (projects)

ToolKindWhat it does
list_projectsReadList projects, filtered server-side, one page at a time.
get_projectReadRead one project in full.
create_projectWriteCreate a project, validated through OpenProject's own form endpoint first.
update_projectWriteChange a project's name, description, visibility, parent, status or archived state.
delete_projectWrite (destructive)Schedule the permanent deletion of a project and everything inside it.
copy_projectWriteCopy a project — its settings, and optionally its work packages — into a new one.
get_job_statusReadCheck whether a background job (a project copy, a scheduled deletion) has finished.
set_project_favoriteWriteAdd or remove a project from the authenticated user's favorites (OpenProject 17+).

Saved queries (queries)

ToolKindWhat it does
list_queriesReadList the saved work-package views (queries) this user can open.
run_queryReadRun a saved view and get its work packages as they are right now.
save_queryWriteSave a filter set as a reusable OpenProject view the whole team can open.

Notifications (notifications)

ToolKindWhat it does
list_notificationsReadRead the authenticated user's OpenProject inbox.
mark_notificationsWriteMark specific notifications read (or unread) in one bulk request.
mark_all_notifications_readWriteMark everything matching the filters as read — the whole inbox by default.

Time tracking (time_entries)

ToolKindWhat it does
list_time_entriesReadList logged time, filtered server-side, with an optional accurate total.
log_timeWriteBook time against a work package or a project.
update_time_entryWriteCorrect an existing time entry.
delete_time_entryWrite (destructive)Permanently delete a logged time entry.

Versions and sprints (versions)

ToolKindWhat it does
list_versionsReadList versions (releases, milestones, sprints) you can assign work packages to.
create_versionWriteCreate a version (release, milestone or sprint) inside a project.
update_versionWriteChange a version's name, dates, description, status or sharing.
delete_versionWrite (destructive)Permanently delete a version.

People and memberships (people)

ToolKindWhat it does
search_principalsReadFind users, groups and placeholder users, and get their ids.
get_userReadRead one user's profile: name, login, email, admin flag and status.
list_membershipsReadList who has access to which project, and with which roles.
create_membershipAdmin writeGrant a principal one or more roles in a project.
update_membershipAdmin writeReplace the roles of an existing membership.
delete_membershipAdmin write (destructive)Revoke a principal's access to a project.
list_rolesReadList the roles this instance defines, with their ids.

The three membership write tools require OPENPROJECT_MCP_ADMIN_TOOLS=1 (and an OpenProject account with the Manage members permission).

Instance metadata and schemas (metadata)

ToolKindWhat it does
get_instance_infoReadCheck the OpenProject connection and report what this instance supports.
get_project_metadataReadList the ids and names (types, statuses, priorities, ...) that are actually valid on this instance.
get_work_package_schemaReadShow which fields a work package of this type accepts in this project.
list_permissionsReadList what the authenticated user is allowed to do, globally or in one project.

Meetings (meetings)

ToolKindWhat it does
list_meetingsReadList meetings: what is coming up, what already ran.
get_meetingReadRead one meeting in full: participants, the agenda, and any recorded outcomes.
create_meetingWriteSchedule a meeting in a project and optionally invite participants.
add_meeting_agenda_itemWriteAdd one item to a meeting's agenda, optionally pinned to a work package.

Wiki (wiki)

ToolKindWhat it does
get_wiki_pageReadRead a wiki page's identity and project — not its content (API v3 does not expose page bodies).

Documents (documents)

ToolKindWhat it does
list_documentsReadList the documents visible to you, across every project.
get_documentReadRead one document with its full description text.

Budgets (budgets)

ToolKindWhat it does
list_budgetsReadList a project's budgets — their ids and names, which is all API v3 exposes.

News (news)

ToolKindWhat it does
list_newsReadList project news — the announcements a team publishes on its project overview.
get_newsReadRead one news entry in full, including the markdown body.
create_newsWritePublish a news announcement in a project.
update_newsWriteCorrect or rewrite a published news entry.
delete_newsWrite (destructive)Permanently delete a news entry.

Reporting (reporting)

ToolKindWhat it does
get_project_report_dataReadAggregate everything a status report needs about one project and one date window.

Prompts and resources

Four prompt templates render live OpenProject data into ready-to-use briefings:

  • weekly_report — a weekly status report for one project: done / in progress / planned, hours and impediments.
  • daily_standup — today's standup for one project: yesterday's movement, what is due today, and what is blocked.
  • triage_inbox — groups your unread notifications by reason and suggests actions.
  • groom_backlog — sweeps a project's open backlog for unassigned, stale and unestimated work.

Three resource templates expose OpenProject objects at stable URIs:

  • openproject://work_package/{id} — one work package as JSON.
  • openproject://project/{identifier} — one project as JSON (identifier slug or numeric id).
  • openproject://attachment/{id} — the attachment's bytes with the detected MIME type.

Supported OpenProject versions

The server targets OpenProject 14 LTS through 17.x. Instead of assuming one API dialect, it probes the instance lazily on first need and caches the result for an hour. The version-dependent surfaces:

  • Internal (private) comments need OpenProject >= 16. Older servers silently ignore the internal flag, so below 16 the server refuses with a clear error rather than posting a comment publicly that you asked to keep internal.
  • Emoji reactions (toggle_comment_reaction) need OpenProject >= 16; detected from the version, tolerant of a 404 at call time.
  • Project favorites (set_project_favorite) need OpenProject >= 17; same tolerance.
  • Time-entry filters: the work-package filter is probed (entityId, falling back to the pre-15.x workPackage spelling).
  • Permission contexts (list_permissions): the context prefix is probed (p{id}, falling back to the w{id} spelling introduced in 17.2).
  • Meetings time filter: OpenProject 17.6 changed the wire dialect; list_meetings discovers which spelling the instance accepts and caches it.

Features that depend on optional instance modules (meetings, news, documents, budgets, wiki, backlogs, GitHub/GitLab integration, external storages) degrade honestly when the module is absent: list tools return an empty page with an in-band note naming the missing module, and detail tools return a structured error explaining both possible readings of the 404.

Security

  • The API key and OAuth token are held as SecretStr and never logged; Authorization and cookie headers are redacted from every log record. Request/response bodies are only logged at DEBUG level with OPENPROJECT_MCP_LOG_BODIES=1, for development.
  • The Authorization header is stripped whenever a redirect leaves the OpenProject origin — attachment downloads redirect to presigned object-storage URLs, and the credential must not travel there.
  • TLS is always verified. Private CAs are supported via OPENPROJECT_MCP_CA_BUNDLE; an insecure-TLS switch deliberately does not exist.
  • Attachment downloads respect OpenProject's virus scanner: quarantined files are never fetched and produce a structured attachment_quarantined error. Downloads are capped by OPENPROJECT_MCP_MAX_DOWNLOAD_MB, stored under sanitized file names (directory separators and traversal sequences are neutralized), and reported with a SHA-256 of the bytes.
  • Destructive tools require confirm=true and are annotated so clients can ask the user first.
  • The HTTP transport refuses to start without OPENPROJECT_MCP_AUTH_TOKENS configured and verifies the Authorization: Bearer header on every request — missing or invalid tokens are rejected with a 401, and token comparison is constant-time. The server does not terminate TLS: keep the default 127.0.0.1 bind, and put a TLS-terminating reverse proxy in front if the port must be reachable from anywhere else (see Transports).

Troubleshooting

SymptomWhat it means and what to do
Server exits with "cannot start, configuration is incomplete"Run openproject-mcp-server --check and fix the problems it lists; the variable reference is the Configuration section above.
401 authentication_failedThe API key is wrong, revoked, or belongs to a blocked account. Generate a fresh token under My account → Access tokens.
403 permission_deniedThe account is authenticated but lacks a role permission for that project, or the relevant module is disabled for it.
Empty list plus a note about a missing moduleThat OpenProject module (meetings, news, documents, ...) is not installed or not enabled in the project — the empty result is the honest answer, not an error.
TLS certificate errorsYour instance uses a private CA: point OPENPROJECT_MCP_CA_BUNDLE at its PEM bundle. There is no option to disable verification.
--transport http refuses to startSet OPENPROJECT_MCP_AUTH_TOKENS (comma-separated bearer tokens), or OPENPROJECT_MCP_INSECURE=1 for local development only — see Transports.
401 from the MCP HTTP endpoint itselfThe request's Authorization: Bearer <token> header is missing or does not match any configured OPENPROJECT_MCP_AUTH_TOKENS entry. Check the client's token for typos; distinct from the upstream 401 authentication_failed above, which is about the OpenProject API key.
ProxiesStandard HTTPS_PROXY / ALL_PROXY / NO_PROXY variables are honored by the underlying HTTP client.

When reporting an issue, please include your OpenProject version, the output of openproject-mcp-server --version, and the output of openproject-mcp-server --check.

Development

git clone https://github.com/kar-thik/openproject-mcp
cd openproject-mcp
uv sync --group dev
uv run pytest              # entire suite runs offline (respx-mocked HTTP), no instance needed
uv run ruff check .
uv run ruff format --check .
uv run pyright             # strict mode

The suite currently contains no tests that need a live OpenProject instance; an opt-in integration marker is registered and reserved for any that are added later. The full technical specification lives in SPEC.md.

Releasing is documented in CONTRIBUTING.md.

License and trademark

MIT — see LICENSE.

This is a community project. It is not affiliated with, endorsed by, or supported by OpenProject GmbH. "OpenProject" is a trademark of OpenProject GmbH and is used here only to indicate interoperability.

Reviews

No reviews yet

Be the first to review this server!