OpenProject MCP Server

OpenProject MCP Server

An MCP server that connects Claude Desktop to your OpenProject instance, allowing you to manage projects, tasks, and time entries through natural language.

Category
访问服务器

README

OpenProject MCP Server

An MCP (Model Context Protocol) server that connects Claude Desktop to your OpenProject instance. Once set up, you can manage your projects, tasks, and time entries just by talking to Claude — no clicking around in the UI required.


What You Can Do

Just talk to Claude like you would a teammate. Here are some real examples:

Creating work

"Create a bug in the Pinnacle Power project called 'Login page throws 500 on mobile'. Assign it to Nathan, set it to High priority."

"Add a task under the TimeSheet - App feature for updating the punch-in endpoint. Set the module to match the feature."

Browsing and searching

"Show me all open work packages assigned to Gabe in the Fleet project."

"Search for anything related to 'penta integration' across all projects."

"What work packages are currently in beta testing?"

Updating work

"Mark work package 2583 as Passed QA."

"Set the percentage done on task 2791 to 75%."

"Reassign work package 2612 to Sarah and set it to Medium priority."

Commenting and logging time

"Add a comment to work package 2596 saying the API endpoint has been deployed to staging."

"Log 3.5 hours against work package 2598 for today."

Managing the cache

"Refresh the cache — I just added some new users and projects."

"Add a new feature to the cache: ID 2900, subject 'New Reporting Dashboard', project Pinnacle Power, module Dash - Reports."


How the Cache Works

Most AI tools make a fresh API call every time they need basic info like "what projects exist?" or "what's Nathan's user ID?". That gets slow and noisy.

This server keeps a local SQLite database (dist/cache.db) on your machine with your projects, users, work package types, statuses, and open features baked in. When Claude needs to look something up, it reads from the cache instantly — no API round-trip needed.

The database lives in dist/ and is never committed to git (your credentials aren't in it either).

Cache tools Claude can use:

Tool What it does
get_cached_projects List cached projects (optional active-only filter)
get_cached_users List cached users (optional active-only filter)
get_cached_types List cached work package types
get_cached_statuses List cached statuses
get_cached_features List open Feature work packages (used as parent suggestions)
rebuild_cache Wipe and rebuild everything from the live OpenProject API
cache_upsert_project / cache_delete_project Add, update, or remove a project
cache_upsert_user / cache_delete_user Add, update, or remove a user
cache_upsert_type / cache_delete_type Add, update, or remove a work package type
cache_upsert_status / cache_delete_status Add, update, or remove a status
cache_upsert_feature / cache_delete_feature Add, update, or remove a feature

The features cache is special: if you have a custom field called "Module" (which we use to track various features which may be related yet aren't part of the same parent) and you set that Module field value in the feature, Claude will automatically set the Module field of the new work package to match that feature. This keeps your module assignments consistent without you having to remember them.


Setup

1. Prerequisites

  • Node.js 18 or newerdownload here
  • An OpenProject instance (self-hosted or cloud)
  • An OpenProject API key — in OpenProject, go to your avatar > My Account → Access Tokens and create one

2. Clone and Build

git clone https://github.com/your-username/openproject-mcp-server.git
cd openproject-mcp-server
npm install
npm run build

The build compiles the TypeScript and creates an empty dist/cache.json. You'll fill it in a moment.

3. Set Your Credentials

Copy the example env file:

cp .env.example .env

Then edit .env with your details:

OPENPROJECT_URL=https://your-openproject-instance.example.com
OPENPROJECT_API_KEY=your_api_key_here

The .env file is gitignored and never leaves your machine.


Connecting to Claude Desktop

Open your Claude Desktop config file in a text editor:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Add the openproject entry inside "mcpServers":

{
  "mcpServers": {
    "openproject": {
      "command": "node",
      "args": ["/absolute/path/to/openproject-mcp-server/dist/index.js"],
      "env": {
        "OPENPROJECT_URL": "https://your-openproject-instance.example.com",
        "OPENPROJECT_API_KEY": "your_api_key_here"
      }
    }
  }
}

Replace the path with the actual location where you cloned the repo. On Windows it looks like:

C:/Users/yourname/source/repos/openproject-mcp-server/dist/index.js

Restart Claude Desktop. You should see the OpenProject tools listed in a new conversation (look for the hammer/tools icon).

First Run: Populate the Cache

The cache starts empty. Just ask Claude to fill it:

"Rebuild the cache from OpenProject."

Claude will call rebuild_cache, which fetches your projects, users, types, statuses, and open features from the live API and saves them to dist/cache.json. Takes a few seconds. You only need to do this once — or whenever things change significantly.


Keeping the Cache Fresh

The cache doesn't auto-update. It reflects whatever was true when you last rebuilt or edited it. Here's how to keep it current:

Full rebuild — when a lot has changed (new users onboarded, projects added, etc.):

"Rebuild the cache."

Targeted updates — for small, specific changes:

"Add user ID 60, login jsmith@example.com, name Jane Smith, status active to the cache."

"Remove project 19 from the cache."

"Update feature 2596 in the cache — it's now In Beta Testing."

You can also edit dist/cache.json directly in any text editor. It's a plain JSON file with five arrays: projects, users, types, statuses, and features.


Full Tool Reference

Cache (instant — no API call) get_cached_projects, get_cached_users, get_cached_types, get_cached_statuses, get_cached_features, rebuild_cache, cache_upsert_project, cache_delete_project, cache_upsert_user, cache_delete_user, cache_upsert_type, cache_delete_type, cache_upsert_status, cache_delete_status, cache_upsert_feature, cache_delete_feature

Projects list_projects, get_project

Work Packages list_work_packages, get_work_package, create_work_package, update_work_package, delete_work_package, search_work_packages

Activities & Comments list_work_package_activities, add_work_package_comment

Users list_users, get_user, get_current_user

Reference Data list_statuses, list_types, list_project_types, list_priorities, list_versions, list_categories

Time Tracking list_time_entries, create_time_entry

Relations & Attachments list_work_package_relations, list_work_package_attachments

Queries list_queries


Fork It, Copy It, Make It Yours

This is MIT licensed — do whatever you want with it. Fork it, copy pieces of it, adapt it for a different project management tool. No need to ask.

The structure here (API wrapper + local cache + CRUD tools exposed via MCP) maps pretty cleanly onto any REST API. If you're building something similar for Jira, Linear, GitHub Projects, or anything else, the patterns should give you a solid starting point.

If you build something cool on top of it, feel free to share — but no obligation.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选