Redmine Mcp Connector

io.github.Nikhilprasad-r由 GitHub 账号 Nikhilprasad-r 发布v1.0.1更新于 Oct 25, 2026

stdio MCP server wrapping the Redmine REST API: issues, projects, users, time, wiki, versions.

已验证STDIO仅桌面效率与工作流开发者工具

概览

AI 生成的概览

本地 stdio MCP 服务器,封装 Redmine REST API,让助手读取和管理问题、项目、用户、工时、Wiki 页面与附件

可以做什么
列出、读取、创建、更新、评论和删除问题,包括关注者与关联,以及搜索和附件上传、下载、更新、删除。管理项目、用户、群组、成员关系、版本和问题分类。处理工时记录、新闻和 Wiki 页面。查询查询器、跟踪标签、状态、角色、自定义字段和枚举。可选通过原始请求工具调用任意 REST 路径。
适用场景
当助手需要操作自建或托管的 Redmine 实例时适用:分诊和更新工单、登记工时、编辑 Wiki 页面,或在对话中查询项目元数据。
运行要求
Node.js 20+(或 Docker),通过 npx 或本地构建启动。需要 REDMINE_BASE_URL 和 Redmine API 访问密钥 REDMINE_API_KEY,且进程需能通过网络访问该 Redmine 实例。可选变量控制超时、分页、下载大小、用户模拟、只读模式和原始请求工具。
安装前请注意
API 密钥拥有对应用户的 Redmine 权限,请勿放入共享配置。许多工具会创建、更新或删除数据,删除需 confirm: true。REDMINE_READONLY=true 可阻止写操作。REDMINE_IMPERSONATE_USER 仅限管理员,会以其他用户身份操作。REDMINE_ALLOW_RAW_REQUEST 会开放任意 REST 调用,包括 DELETE。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Redmine Mcp Connector,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Redmine MCP Server

stdio-based Model Context Protocol server that wraps a Redmine instance through its REST API (*.json endpoints). It runs as a separate Node.js process; no changes to the Redmine Rails app are required.

Requirements

  • Node.js 20+
  • A Redmine user with an API access key (My account → Show API access key)
  • Network access from this process to your Redmine REDMINE_BASE_URL

Install

No install needed for normal use — coding agents launch it on demand via npx:

bash
npx -y redmine-mcp-connector

See CONNECTING.md for exact setup instructions for Claude Desktop, Claude Code, Cursor, Windsurf, Cline, VS Code, Zed, and any other MCP client, plus a local-build and Docker alternative.

To hack on the server itself, clone this repo instead:

bash
npm installnpm run build

Configuration

Environment variables (see .env.example):

VariableRequiredDescription
REDMINE_BASE_URLyesBase URL, e.g. https://redmine.example.com (no trailing slash)
REDMINE_API_KEYyesX-Redmine-API-Key value
REDMINE_IMPERSONATE_USERnoSets X-Redmine-Switch-User (admin-only in Redmine)
REDMINE_READONLYnoIf true / 1, blocks all mutating HTTP methods
REDMINE_ALLOW_RAW_REQUESTnoIf true / 1, registers the redmine_request escape-hatch tool
REDMINE_HTTP_TIMEOUT_MSnoDefault 15000
REDMINE_MAX_PAGESnoMax pages when using fetch_all on list tools (default 20)
REDMINE_MAX_DOWNLOAD_BYTESnoCap for redmine_attachment_download (default 5 MiB)

Run

bash
REDMINE_BASE_URL=https://your-redmine.example.com REDMINE_API_KEY=secret npm start# or during development:REDMINE_BASE_URL=... REDMINE_API_KEY=... npm run dev

Connecting to a coding agent

Full per-client instructions (Claude Desktop, Claude Code, Cursor, Windsurf, Cline, VS Code, Zed, and generic MCP clients) live in CONNECTING.md. Quick example (Claude Desktop / Cursor / Windsurf all share this shape):

json
{  "mcpServers": {    "redmine": {      "command": "npx",      "args": ["-y", "redmine-mcp-connector"],      "env": {        "REDMINE_BASE_URL": "https://redmine.example.com",        "REDMINE_API_KEY": "your_api_key_here"      }    }  }}

MCP resources (read-only)

URIDescription
redmine://projectsGET /projects.json (first 100)
redmine://meGET /users/current.json
redmine://me/issuesGET /issues.json?assigned_to_id=me (limit 100)
redmine://projects/{id}GET /projects/:id.json

Tools overview

Naming: redmine_<resource>_<action>.

Issues: redmine_issues_list, redmine_issue_get, redmine_issue_create, redmine_issue_update, redmine_issue_add_comment, redmine_issue_delete (requires confirm: true), watchers add/remove, relations list/add/remove.

Projects: redmine_projects_list, redmine_project_get, create/update/archive/unarchive/delete (confirm for delete).

Users: redmine_current_user, redmine_users_list, redmine_user_get, create/update/delete (confirm for delete).

Time entries: list/get/create/update/delete (confirm for delete).

News: list/get/create/update/delete (confirm for delete).

Wiki: list pages, get page, create/update (PUT), delete (confirm).

Versions & categories: versions CRUD (confirm on delete), issue categories CRUD (confirm on delete).

Queries & metadata: redmine_queries_list, redmine_enumerations_list, redmine_trackers_list, redmine_issue_statuses_list, redmine_roles_list, redmine_role_get, redmine_custom_fields_list.

Groups (read-only): redmine_groups_list, redmine_group_get.

Memberships: list/create/update/delete (confirm on delete).

Attachments & search: redmine_search, attachment get/update/delete/upload/download (download returns base64, size-capped).

Repository (limited REST in stock Redmine): redmine_repository_revision_link_issue, redmine_repository_revision_unlink_issue (confirm). Listing repositories/revisions over JSON is not exposed by core Redmine; use redmine_request if you enable it, or plugins.

Escape hatch: redmine_request — only if REDMINE_ALLOW_RAW_REQUEST=true; DELETE requires confirm: true.

Safety

  • Destructive tools require explicit confirm: true where noted.
  • Set REDMINE_READONLY=true for read-only deployments.
  • API keys are never logged by this server.

Docker

Build a local image:

bash
docker build -t redmine-mcp-server:local .

Run it (stdio MCP server):

bash
docker run --rm -i   -e REDMINE_BASE_URL="https://redmine.example.com"   -e REDMINE_API_KEY="your_api_key_here"   redmine-mcp-server:local

Use this image in MCP config:

json
{  "mcpServers": {    "redmine": {      "command": "docker",      "args": [        "run", "--rm", "-i",        "-e", "REDMINE_BASE_URL",        "-e", "REDMINE_API_KEY",        "docker.io/<docker-user>/redmine-mcp-server:latest"      ],      "env": {        "REDMINE_BASE_URL": "https://redmine.example.com",        "REDMINE_API_KEY": "your_api_key_here"      }    }  }}

Publish to Docker Hub Catalog

  1. Login:
bash
docker login
  1. Create and use a buildx builder (one-time):
bash
docker buildx create --name redmine-mcp-builder --use --bootstrap
  1. Build and push multi-arch image:
bash
export IMAGE=docker.io/<docker-user>/redmine-mcp-serverexport TAG=1.0.0
docker buildx build   --platform linux/amd64,linux/arm64   -t $IMAGE:$TAG   -t $IMAGE:latest   --push .
  1. In Docker Hub, set your repository description from this README and mark it as public for catalog discovery.

Development

bash
npm run lintnpm test

Contributing

Contributions are welcome.

License

GPL-2.0-or-later (same family as Redmine).

来源:README.md,提交 bd5d8d5

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 24, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分