OpenProject MCP Server
# OpenProject MCP Server
A TypeScript MCP (Model Context Protocol) server for [OpenProject](https://www.openproject.org/) that enables AI assistants like Claude Code to interact with your OpenProject instance.
## Features
- **Projects** — List projects, get project summaries with status/assignee breakdowns
- **Work Packages** — List, create, update work packages with filtering (assignee, status, type, priority, search)
- **Comments** — Add and list comments on work packages
- **Users** — Get current user, list users, view team workload distribution
- **Relations** — Create, list, and delete work package relations (follows, blocks, relates, etc.)
- **Time Entries** — Log time, list/update/delete time entries with date and user filters
- **Metadata** — List statuses, types, and priorities with caching
## Setup
### Prerequisites
- Node.js 18+
- pnpm (or npm/yarn)
- An OpenProject instance with API access
### Installation
```bash
git clone https://github.com/billmal071/openproject-mcp-server.git
cd openproject-mcp-server
pnpm install
pnpm build
```
### Configuration
Copy the example env file and fill in your OpenProject credentials:
```bash
cp .env.example .env
```
```
OPENPROJECT_BASE_URL=https://your-openproject-instance.com
OPENPROJECT_API_KEY=your-api-key-here
```
To get an API key, go to your OpenProject profile > **My Account** > **Access Tokens** > **API**.
### Add to Claude Code
Add this to your Claude Code MCP settings (`~/.claude/settings.json` or project-level):
```json
{
"mcpServers": {
"openproject": {
"type": "stdio",
"command": "node",
"args": ["/path/to/openproject-mcp-server/dist/index.js"],
"env": {
"OPENPROJECT_BASE_URL": "https://your-openproject-instance.com",
"OPENPROJECT_API_KEY": "your-api-key-here"
}
}
}
}
```
## Available Tools
| Tool | Description |
|------|-------------|
| `get_me` | Get the authenticated user's profile |
| `list_projects` | List all projects |
| `get_project_summary` | Get work package counts by status, assignee, and overdue items |
| `list_work_packages` | List work packages with filters (assignee, status, type, priority, search) |
| `get_work_package` | Get detailed info about a specific work package |
| `create_work_package` | Create a new work package |
| `update_work_package` | Update an existing work package (status, assignee, dates, etc.) |
| `add_comment` | Add a comment to a work package |
| `list_comments` | List all comments on a work package |
| `list_users` | List users, optionally filtered by email |
| `get_team_workload` | Get workload distribution across team members |
| `create_relation` | Create a relation between two work packages |
| `list_relations` | List all relations for a work package |
| `delete_relation` | Delete a relation |
| `log_time` | Log time spent on a work package |
| `list_time_entries` | List time entries with filters |
| `update_time_entry` | Update a time entry |
| `delete_time_entry` | Delete a time entry |
| `list_statuses` | List all available statuses |
| `list_types` | List all work package types |
| `list_priorities` | List all priorities |
## Architecture
```
src/
index.ts # MCP server setup and tool registration
client.ts # OpenProject API client (HAL+JSON, pagination, error handling)
cache.ts # In-memory TTL cache for metadata
types.ts # TypeScript interfaces for OpenProject entities
tools/
metadata.ts # Status, type, priority tools
projects.ts # Project listing and summary
work-packages.ts # Work package CRUD with filtering
comments.ts # Comment management
users.ts # User and workload tools
relations.ts # Work package relation management
time-entries.ts # Time tracking tools
```
## License
MIT
TDQS
Scored across 21 tools
Each tool targets a distinct resource and action: metadata lists, project summaries, work package CRUD, comments, relations, time entries, and user/workload queries are clearly separated. The few potentially adjacent tools, such as list_work_packages vs get_project_summary, have distinct outputs and use cases.
All tools use snake_case with a predictable verb_noun pattern such as list_projects, create_work_package, update_time_entry, and delete_relation. Minor entries like get_me are still readable and consistent with the overall convention.
At 21 tools the server is slightly above the ideal compact range, but the breadth matches a broad project-management domain spanning work packages, time tracking, relations, projects, users, and metadata. Each tool appears to serve a real operation rather than padding the surface.
Core workflows are well covered: work package list/get/create/update, comments, relations, time entry lifecycle, metadata, projects, and users. Some gaps remain, notably no delete_work_package and no update/delete for comments, but these are relatively minor for typical agent workflows.