OpenProject MCP Server
Provides comprehensive tools for managing work packages, comments, projects, and relations in OpenProject, including creating and updating tasks, adding comments, setting parent-child relationships, and managing project properties through the OpenProject API v3.
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., "@OpenProject MCP Server Create a new task in project 'demo-project' with subject 'Fix login bug' and assign to user 5"
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.
OpenProject MCP Server
A Model Context Protocol (MCP) server for OpenProject API v3 integration. This server provides comprehensive tools for managing work packages, comments, projects, and relations in OpenProject through Claude Desktop and other MCP clients.
Features
Work Package Management (10 tools)
Create, read, update, delete work packages
Manage assignees and watchers
Set parent-child relationships
Get work package schema
Comment & Activity Management (4 tools)
Get work package activities
Create and update comments
View activity details
Project Management (3 tools)
Get project details
List projects with filtering
Update project properties
Relation Management (4 tools)
List work package relations
Create relations (relates, blocks, precedes, etc.)
Delete relations
Related MCP server: OpenProject MCP Server
Installation
Prerequisites
Python 3.11 or higher
uv package manager
OpenProject account with API access
Setup
Clone the repository:
git clone <your-repo-url>
cd openproject-mcpInstall dependencies:
uv syncCreate a
.envfile (copy from.env.example):
cp .env.example .envConfigure your OpenProject credentials in
.env:
OPENPROJECT_URL=https://your-instance.openproject.com
OPENPROJECT_API_KEY=your_api_key_hereGetting Your API Key
Log in to your OpenProject instance
Go to My Account (top-right menu)
Select Access tokens from the left sidebar
Click + API to generate a new API key
Copy the key and paste it into your
.envfile
Docker Installation (Alternative)
You can also run the server using Docker:
Using Docker Compose (Recommended)
Create a
.envfile with your credentials:
cp .env.example .env
# Edit .env with your OpenProject URL and API keyBuild and run with Docker Compose:
docker-compose up -dView logs:
docker-compose logs -fStop the server:
docker-compose downUsing Docker directly
Build the Docker image:
docker build -t openproject-mcp .Run the container:
docker run -it --rm \
-e OPENPROJECT_URL=https://your-instance.openproject.com \
-e OPENPROJECT_API_KEY=your_api_key_here \
openproject-mcpUsing with Claude Desktop (Docker)
To use the Docker container with Claude Desktop, update your configuration:
{
"mcpServers": {
"openproject": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"OPENPROJECT_URL=https://your-instance.openproject.com",
"-e",
"OPENPROJECT_API_KEY=your_api_key_here",
"openproject-mcp"
]
}
}
}Usage with Claude Desktop
Configuration
Add the server to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"openproject": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/openproject-mcp",
"run",
"openproject-mcp"
],
"env": {
"OPENPROJECT_URL": "https://your-instance.openproject.com",
"OPENPROJECT_API_KEY": "your_api_key_here"
}
}
}
}Replace /absolute/path/to/openproject-mcp with the actual path to this project directory.
Restart Claude Desktop
After updating the configuration, restart Claude Desktop to load the server.
Example Usage
Work Packages
Create a work package:
Create a new task in project "demo-project" with subject "Fix login bug" and description "Users cannot log in with special characters in password"Get work package details:
Get details for work package #123Note: Work package details are returned as formatted markdown with all key information including status, type, priority, project, hierarchy, costs, and description.
Update a work package:
Update work package #123: change status to "In Progress" and assign to user 5List work packages:
List all work packages in project "demo-project"Note: Work packages are displayed as a formatted list showing ID, subject, type, status, priority, project, assignee, due date, and parent (if any).
Set parent work package:
Set work package #456 as the parent of work package #123Comments
Add a comment:
Add a comment to work package #123: "I've started working on this issue"Get activities:
Show me all activities and comments for work package #123Note: Activities are returned as formatted markdown with user, timestamp, comments, and change details for easy reading.
Projects
Get project details:
Get details for project "demo-project"List projects:
List all active projectsUpdate project:
Update project "demo-project": change description to "Demo project for testing"Relations
Create a relation:
Create a "blocks" relation from work package #123 to work package #456List relations:
Show all relations for work package #123Available Tools
Work Package Tools
create_work_package - Create a new work package
get_work_package - Get work package details (formatted as markdown)
update_work_package - Update work package fields
list_work_packages - List work packages with filtering (formatted as markdown)
delete_work_package - Delete a work package
get_available_assignees - Get assignable users for a project
add_watcher - Add a watcher to a work package
remove_watcher - Remove a watcher
get_work_package_schema - Get schema for work package creation
set_parent_work_package - Set or remove the parent of a work package
Comment Tools
get_work_package_activities - Get all activities/comments (formatted as markdown)
create_comment - Add a comment to a work package
get_activity - Get specific activity details
update_comment - Update an existing comment
Project Tools
get_project - Get project details
list_projects - List all accessible projects
update_project - Update project properties
Relation Tools
list_work_package_relations - Get all relations for a work package
create_relation - Create a relation between work packages
get_relation - Get specific relation details
delete_relation - Delete a relation
Relation Types
When creating relations, you can use the following types:
relates- General relationduplicates- Source duplicates targetduplicated- Source is duplicated by targetblocks- Source blocks targetblocked- Source is blocked by targetprecedes- Source precedes target (supports lag in days)follows- Source follows target (supports lag in days)includes- Source includes target (parent-child)partof- Source is part of target (child-parent)requires- Source requires targetrequired- Source is required by target
Development
Running Tests
uv run pytestCode Formatting
uv run black src/Type Checking
uv run mypy src/Linting
uv run ruff check src/Architecture
The server is built with:
FastMCP - Official MCP Python SDK for tool definition
httpx - Async HTTP client for OpenProject API calls
Pydantic - Configuration and data validation
python-dotenv - Environment variable management
Project Structure
openproject-mcp/
├── src/openproject_mcp/
│ ├── server.py # Main MCP server
│ ├── client.py # OpenProject API client
│ ├── config.py # Configuration management
│ ├── tools/
│ │ ├── work_packages.py # Work package tools
│ │ ├── comments.py # Comment tools
│ │ ├── projects.py # Project tools
│ │ └── relations.py # Relation tools
│ └── utils/
│ ├── errors.py # Custom exceptions
│ └── hal.py # HAL+JSON helpers
├── tests/ # Test files
├── pyproject.toml # Dependencies
├── .env.example # Example environment variables
└── README.md # This fileAuthentication
The server uses API key authentication with OpenProject. The API key is encoded as Basic Auth:
Authorization: Basic base64(apikey:<your_api_key>)All requests are made to the OpenProject API v3 endpoint (/api/v3/).
Error Handling
The server includes comprehensive error handling for common scenarios:
401 Unauthorized - Invalid API key
403 Forbidden - Insufficient permissions
404 Not Found - Resource doesn't exist
409 Conflict - Lock version mismatch (fetch latest and retry)
422 Unprocessable Entity - Validation errors
429 Too Many Requests - Rate limit exceeded
Lock Versions
OpenProject uses optimistic locking to prevent concurrent modifications. When updating resources (work packages, projects, comments), you must provide the current lockVersion:
Fetch the resource to get the current
lockVersionMake your changes
Send the update with the
lockVersionIf you get a 409 Conflict, fetch the resource again and retry
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
[Your License Here]
Support
For issues and questions:
OpenProject API Documentation: https://www.openproject.org/docs/api/
MCP Documentation: https://modelcontextprotocol.io/
Acknowledgments
Built with the Model Context Protocol and OpenProject API v3.
Available Tools
21 toolsadd_watcherC
Add a user as a watcher to a work package.
Args:
work_package_id: Work package ID
user_id: User ID to add as watcher
Inputs: work_package_id (required), user_id (required).
create_commentB
Add a comment to a work package.
Args:
work_package_id: Work package ID
comment: Comment text in markdown format
internal: Whether the comment is internal (default: False)
Inputs: work_package_id (required), comment (required), internal.
create_relationB
Create a relation between two work packages.
Args:
from_id: Source work package ID
to_id: Target work package ID
relation_type: Type of relation (relates, duplicates, blocks, precedes, follows, includes, partof, requires)
lag: Optional lag in days for precedes/follows relations
Inputs: from_id (required), to_id (required), relation_type (required), lag.
create_work_packageA
Create a new work package in a project.
Args:
project_id: Project identifier or ID
subject: Work package title (required)
description: Work package description in markdown format
type_id: Type ID (default: 1 for Task)
status_id: Status ID (optional, uses project default if not provided)
priority_id: Priority ID (optional, uses default if not provided)
assignee_id: User ID to assign the work package to
notify: Whether to send notifications (default: True)
Inputs: project_id (required), subject (required), description, type_id, +4 more.
delete_relationB
Remove a relation between work packages.
Args:
relation_id: Relation ID to delete
Inputs: relation_id (required).
delete_work_packageB
Permanently delete a work package.
Args:
work_package_id: Work package ID to delete
Inputs: work_package_id (required).
get_activityC
Get details of a specific activity.
Args:
activity_id: Activity ID
Inputs: activity_id (required).
get_available_assigneesB
Get list of users who can be assigned to work packages in a project.
Args:
project_id: Project identifier or ID
Inputs: project_id (required).
get_projectB
Get detailed information about a project.
Args:
project_id: Project identifier or ID
Inputs: project_id (required).
get_relationC
Get details of a specific relation.
Args:
relation_id: Relation ID
Inputs: relation_id (required).
get_work_packageC
Get detailed information about a work package.
Args:
work_package_id: Work package ID
Inputs: work_package_id (required).
get_work_package_activitiesB
Retrieve all activities and comments for a work package.
Args:
work_package_id: Work package ID
page: Page number (default: 1)
page_size: Items per page (default: 20)
Inputs: work_package_id (required), page, page_size.
get_work_package_schemaC
Get the schema for creating/updating work packages.
Args:
project_id: Project identifier or ID
type_id: Optional type ID to get type-specific schema
Inputs: project_id (required), type_id.
list_projectsB
List all accessible projects with optional filtering and pagination.
Args:
filters: Optional JSON filter string
page: Page number (default: 1)
page_size: Items per page (default: 20)
Inputs: filters, page, page_size.
list_work_package_relationsC
Get all relations for a work package.
Args:
work_package_id: Work package ID
Inputs: work_package_id (required).
list_work_packagesB
List work packages with optional filtering and pagination.
Args:
project_id: Optional project ID to filter work packages
filters: Optional JSON filter string
page: Page number (default: 1)
page_size: Items per page (default: 20)
Inputs: project_id, filters, page, page_size.
remove_watcherB
Remove a user from work package watchers.
Args:
work_package_id: Work package ID
user_id: User ID to remove from watchers
Inputs: work_package_id (required), user_id (required).
set_parent_work_packageA
Set or remove the parent of a work package.
Args:
work_package_id: Child work package ID
parent_id: Parent work package ID (use None to remove parent)
lock_version: Current lock version (get from work package first)
notify: Whether to send notifications (default: True)
Inputs: work_package_id (required), parent_id (required), lock_version (required), notify.
update_commentB
Update an existing comment.
Args:
activity_id: Activity ID of the comment to update
comment: New comment text in markdown format
lock_version: Current lock version (get from activity first)
Inputs: activity_id (required), comment (required), lock_version (required).
update_projectB
Update an existing project.
Args:
project_id: Project identifier or ID
lock_version: Current lock version (get from project first)
name: New project name
description: New project description in markdown
public: Whether project is public
active: Whether project is active
Inputs: project_id (required), lock_version (required), name, description, +2 more.
update_work_packageB
Update an existing work package.
Args:
work_package_id: Work package ID
lock_version: Current lock version (get from work package first)
subject: New subject/title
description: New description in markdown
status_id: New status ID
priority_id: New priority ID
assignee_id: New assignee user ID (use 0 to unassign)
notify: Whether to send notifications (default: True)
Inputs: work_package_id (required), lock_version (required), subject, description, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Every tool has a clearly distinct purpose focused on specific resources and actions in the OpenProject domain. Tools are well-separated by resource type (work packages, projects, relations, comments, watchers) and operation (create, get, list, update, delete), with no apparent overlap that would cause confusion.
All tools follow a consistent verb_noun naming pattern throughout, using clear action verbs (create, get, list, update, delete, add, remove, set) followed by specific resource nouns. The naming is predictable and follows the same convention across all 21 tools.
With 21 tools, the count is slightly high but reasonable for a comprehensive project management system. The tools cover multiple resource types (work packages, projects, relations, comments, watchers, activities) with full CRUD operations, making the count justifiable though bordering on the heavy side.
The tool surface provides complete coverage for the OpenProject domain with full CRUD operations for all major resources (work packages, projects, relations, comments). It includes specialized operations like watcher management, parent-child relationships, schema retrieval, and activity tracking, leaving no obvious gaps for agent workflows.
Maintenance
Related MCP Connectors
Manage projects, tasks, time tracking, and team collaboration through natural language.
Manage Redbooth tasks, task lists, comments, tags and files from Claude and other AI assistants.
Create and manage MeisterTask projects, tasks, and notes from your AI assistant.
Manage Orangescrum projects, tasks, users, sprints, test cases, releases, and risks from AI tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with OpenProject's API v3 for comprehensive project management operations including work packages, projects, time tracking, users, and all other OpenProject features through natural language.5MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with OpenProject installations for comprehensive project management, including creating projects and work packages, managing users and assignments, creating dependencies, and generating Gantt charts through natural language commands.15-
- AlicenseBqualityCmaintenanceEnables AI assistants to manage OpenProject work packages, projects, and time tracking. It provides comprehensive tools for creating, updating, and querying tasks and project metadata through the OpenProject API.1137 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to interact with OpenProject's APIv3 for autonomous project management, including task tracking, member administration, and project configuration. It supports comprehensive operations for managing work packages, projects, and reference data like statuses and priorities.4MIT