OpenProject MCP

OpenProject MCP

An MCP server that lets local AI agents read and manage OpenProject project data through structured, guarded tools, with write operations requiring explicit confirmation.

Category
Visit Server

README

OpenProject MCP

Python 3.10+ License: MIT MCP

<p align="center"> <img src="img/openproject-mcp-hero.png" alt="Hero image showing a Python terminal and an OpenProject board connected by a structured data stream." width="960"> </p>

An MCP server for OpenProject that lets local AI agents read and manage project data through structured, guarded tools.

The server runs as a local subprocess of your MCP client over stdio. It wraps OpenProject API v3 and exposes typed tools for projects, work packages, memberships, versions, boards, time entries, and more.


Scope: Community Edition

This MCP server targets OpenProject Community Edition only. It does not support Enterprise Edition features such as:

  • Placeholder Users
  • Budgets
  • Portfolios
  • Programs
  • Custom Actions
  • Baseline Comparisons

Note: OpenProject Enterprise Edition includes its own MCP server. If you have an Enterprise license, use the official Enterprise MCP instead of this one.


Table of Contents


What you can do

Projects

  • List, create, copy, update, and delete projects
  • Read project configurations, lifecycle phases, and admin context
  • Create, update, and delete memberships and versions; list roles

Work packages

  • List and search work packages with structured filters
  • Create, update, and delete work packages; create subtasks; create, update, and delete relations; add comments (no edit or delete)
  • Upload and delete attachments; add and remove watchers; read activity logs
  • Log, update, and delete time entries

Boards and views

  • Create, read, update, and delete saved boards (queries); read views

Users and groups

  • Read user accounts and group memberships
  • Create, update, lock, unlock, and delete users; add and remove group members

Supporting data

  • Fetch individual wiki pages by id; create, update, and delete news; read and update documents
  • Read and mark notifications; read help texts, working days, and instance configuration
  • Create and inspect grids; inspect custom options

All write operations follow a preview-then-confirm pattern by default: call a tool once to get a validated preview, then again with confirm=true to execute. This can be bypassed globally with OPENPROJECT_AUTO_CONFIRM_WRITE=true.


How it works

  • Communicates with the MCP client over stdio — no remote server, no persistent storage
  • Reads are enabled by default; writes require explicit opt-in via environment variables
  • Create and update operations validate the payload against OpenProject form endpoints before writing; delete and other simple operations execute directly once confirmed
  • Project scope is enforced server-side: the MCP only exposes what the configured allowlists permit
  • Responses are bounded and paginated — compact summaries, not raw HAL payloads

Getting started

Requirements

Python 3.10 or later
OpenProject Community Edition 16.1 or later, API v3 accessible
OS macOS 12+, Linux, or Windows 10/11

uv is recommended for dependency management but not required.

Prepare your OpenProject instance

An administrator must enable API token creation once:

Administration → API and webhooks → API

Setting Recommended
Enable API tokens checked
Write access to read-only attributes unchecked
Enable CORS unchecked

To create a personal token: My account → Access tokens → + API token. Copy the token immediately — it is only shown once. Format: opapi-....

Install

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/jtauschl/openproject-mcp/main/get.sh | sh

Windows (PowerShell)

irm https://raw.githubusercontent.com/jtauschl/openproject-mcp/main/get.ps1 | iex

The script clones the repo (to ~/openproject-mcp or %USERPROFILE%\openproject-mcp), installs dependencies via uv if available or venv + pip otherwise, and runs the interactive setup that writes .mcp.json.

To override the destination:

DIR=~/tools/openproject-mcp curl -fsSL https://raw.githubusercontent.com/jtauschl/openproject-mcp/main/get.sh | sh

Uninstall

~/openproject-mcp/uninstall.sh    # macOS / Linux

Configuration

.mcp.json contains your API token. Treat it like a password — it is gitignored by default.

Access is grouped into five chains: project, membership, work_package, version, and board. Each chain has a read flag and a write flag. Scoped flags control each chain independently.

Variable Required Default Description
OPENPROJECT_BASE_URL yes Base URL of your OpenProject instance, e.g. https://op.example.com
OPENPROJECT_API_TOKEN yes Personal API token
OPENPROJECT_ALLOWED_PROJECTS_READ no * Readable projects; comma-separated identifiers, names, or glob patterns (e.g. my-project,team-*); * allows all visible projects
OPENPROJECT_ALLOWED_PROJECTS_WRITE no empty Writable projects; empty disables all project-scoped writes; always intersected with read scope
OPENPROJECT_ALLOWED_PROJECTS no Backward-compatible alias for OPENPROJECT_ALLOWED_PROJECTS_READ
OPENPROJECT_ENABLE_PROJECT_READ no true Projects, documents, news, wiki, lifecycle
OPENPROJECT_ENABLE_WORK_PACKAGE_READ no true Work packages, relations, attachments, time entries
OPENPROJECT_ENABLE_MEMBERSHIP_READ no true Memberships, roles, principals
OPENPROJECT_ENABLE_VERSION_READ no true Versions
OPENPROJECT_ENABLE_BOARD_READ no true Boards and views
OPENPROJECT_HIDE_<ENTITY>_FIELDS no empty Comma-separated fields to omit from reads and reject on writes; * wildcards supported
OPENPROJECT_HIDE_CUSTOM_FIELDS no empty Custom field names or keys to omit; * wildcards supported
OPENPROJECT_ENABLE_ADMIN_WRITE no false User and group management (create/update/delete/lock users, create/update/delete groups). Must be set explicitly — not activated by any other write flag.
OPENPROJECT_ENABLE_PROJECT_WRITE no false Project create/update/delete, news, documents, grids
OPENPROJECT_ENABLE_MEMBERSHIP_WRITE no false Project membership create/update/delete
OPENPROJECT_ENABLE_WORK_PACKAGE_WRITE no false Work-package create/update/delete, comments, relations, attachments, time entries
OPENPROJECT_ENABLE_VERSION_WRITE no false Version create/update/delete
OPENPROJECT_ENABLE_BOARD_WRITE no false Board create/update/delete
OPENPROJECT_AUTO_CONFIRM_WRITE no false Skip the preview step for all writes
OPENPROJECT_AUTO_CONFIRM_DELETE no inherits OPENPROJECT_AUTO_CONFIRM_WRITE Skip the preview step for deletes
OPENPROJECT_TIMEOUT no 12 Request timeout in seconds
OPENPROJECT_VERIFY_SSL no true Verify TLS certificates
OPENPROJECT_DEFAULT_PAGE_SIZE no 20 Default results per page
OPENPROJECT_MAX_PAGE_SIZE no 50 Hard cap on results per request
OPENPROJECT_MAX_RESULTS no 100 Hard cap on total results returned by a tool
OPENPROJECT_LOG_LEVEL no WARNING CRITICAL, ERROR, WARNING, or INFO

Supported entities for OPENPROJECT_HIDE_<ENTITY>_FIELDS: project, membership, role, principal, project_access, project_admin_context, project_configuration, job_status, project_phase_definition, project_phase, view, document, news, wiki_page, category, attachment, time_entry_activity, time_entry, work_package, relation, activity, version, board, current_user, instance_configuration.

Never share your API token in chat messages, screenshots, or log output. If a token has been exposed, revoke it immediately in My account → Access tokens and create a new one.


Tools

Tools are grouped by area: projects, memberships, users, groups, work packages, versions, boards, time entries, wiki, news, documents, notifications, grids, and more.

See the full tool reference for descriptions of every tool.


Integrations

The server communicates over stdio and is compatible with any MCP client. Client-specific setup guides are available in the docs/ folder.


Architecture

Five files, no deep abstractions:

  • config.py — environment parsing and safe defaults
  • client.py — HTTP access, policy checks, HAL normalization, preview/confirm writes
  • models.py — compact dataclasses returned to MCP clients
  • tools.py — validated MCP tool handlers
  • server.py — FastMCP lifecycle wiring

client.py is intentionally large: all policy-sensitive logic (read gates, write gates, project scoping, field hiding) lives in one place to make it easier to audit.

See docs/architecture.md for request flow details and the safety model.


Development

Set up

git clone https://github.com/jtauschl/openproject-mcp.git
cd openproject-mcp

# option A: uv (recommended)
uv sync --dev

# option B: venv + pip
python3 -m venv .venv
.venv/bin/pip install -e ".[dev]"

Run tests

Unit tests (no network — run against httpx mocks):

# uv
uv run pytest

# venv
.venv/bin/python -m pytest

Integration tests (require a live OpenProject instance):

OPENPROJECT_BASE_URL=https://op.example.com \
OPENPROJECT_API_TOKEN=opapi-... \
OPENPROJECT_TEST_PROJECT=mcp-test \
uv run pytest -m integration -v

OPENPROJECT_TEST_PROJECT is the project identifier used for write tests (default: mcp-test). Integration tests are excluded from the default run (-m 'not integration') and must be opted in explicitly.

After code changes

The MCP server runs as a subprocess. After any code change, restart your MCP client before updated tools become active.


Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured