Redmine MCP Server
Redmine MCP 服务器
一个 MCP(模型上下文协议)服务器,将 Kiro 等 AI 助手连接到您的 Redmine 实例。它提供 15 个工具,涵盖问题(Issues)、项目(Projects)和搜索(Search)——让您的 AI 助手能够通过自然对话创建问题、更新项目、跨资源搜索等。
功能说明
配置完成后,您可以向 AI 助手提出类似这样的请求:
"列出分配给我的所有未解决问题"
"为登录页面崩溃创建一个缺陷报告"
"搜索与数据库迁移相关的问题"
"归档 old-website 项目"
"将 John 添加为问题 #42 的观察者"
服务器会自动处理身份验证、分页、输入验证和错误处理。
Related MCP server: @a-bonus/redmine-mcp
可用工具
领域 | 工具 |
问题 | 列表、获取、创建、更新、删除、添加观察者、移除观察者 |
项目 | 列表、获取、创建、更新、删除、归档、取消归档 |
搜索 | 跨所有 Redmine 资源的全文搜索 |
前提条件
机器上已安装 Python 3.10+
uv —— 一个快速的 Python 包管理器(安装指南)
macOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | shWindows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Redmine API 密钥 —— 从您的 Redmine 实例获取:
登录 Redmine
进入 我的账户(右上角菜单)
在右侧边栏中找到 API 访问密钥,点击 显示
复制该密钥
使用 Kiro 进行设置
步骤 1:将 MCP 服务器配置添加到 Kiro
创建或编辑 ~/.kiro/settings/mcp.json(这样它将在您的所有项目中可用):
{
"mcpServers": {
"redmine": {
"command": "uvx",
"args": ["--from", "git+https://github.com/bizcloud-experts/redmine-mcp-server.git", "redmine-mcp-server"],
"env": {
"REDMINE_URL": "https://your-redmine-instance.com",
"REDMINE_API_KEY": "your-api-key-here"
},
"disabled": false
}
}
}替换:
将
https://your-redmine-instance.com替换为您的 Redmine URL将
your-api-key-here替换为您的 Redmine API 密钥
如果您只想在特定工作区中使用,也可以将其放在该工作区内的 .kiro/settings/mcp.json 中。
步骤 2:打开 Kiro
MCP 服务器将在 Kiro 启动时自动运行。您可以通过询问"列出我的 Redmine 项目"来验证它是否正常工作。
备选方案:如果未安装 git
如果您遇到"Git executable not found"错误,可以使用基于 zip 的安装方式,这种方式不需要在机器上安装 git:
{
"mcpServers": {
"redmine": {
"command": "uvx",
"args": ["--from", "redmine-mcp-server @ https://github.com/bizcloud-experts/redmine-mcp-server/archive/refs/heads/main.zip", "redmine-mcp-server"],
"env": {
"REDMINE_URL": "https://your-redmine-instance.com",
"REDMINE_API_KEY": "your-api-key-here"
},
"disabled": false
}
}
}备选设置:本地安装
如果您希望从本地克隆运行而不是使用 uvx:
git clone https://github.com/bizcloud-experts/redmine-mcp-server.git
cd redmine-mcp-server
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install .然后改用以下 MCP 配置:
{
"mcpServers": {
"redmine": {
"command": "/absolute/path/to/redmine-mcp/.venv/bin/redmine-mcp-server",
"args": [],
"env": {
"REDMINE_URL": "https://your-redmine-instance.com",
"REDMINE_API_KEY": "your-api-key-here"
},
"disabled": false
}
}
}故障排查
问题 | 解决方案 |
"REDMINE_URL environment variable is missing" | 确保在 MCP 配置的 |
"REDMINE_API_KEY environment variable is missing" | 确保在 MCP 配置的 |
"Authentication failed: invalid or expired API key" | 验证您的 API 密钥在 Redmine → 我的账户 → API 访问密钥中是否正确 |
"Connection failed" | 检查从您的机器是否可以访问 |
工具未出现在 Kiro 中 | 确认 |
"Git executable not found" | Git 未安装或不在 PATH 中。请改用基于 zip 的安装,或安装 git 后重启终端 |
开发
git clone https://github.com/bizcloud-experts/redmine-mcp-server.git
cd redmine-mcp-server
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytestAvailable Tools
17 toolsadd_watcherAdd WatcherC
Add a watcher to an issue.
Inputs: user_id (required), issue_id (required). Returns: object
archive_projectArchive ProjectC
Archive a project.
Inputs: project_id (required). Returns: object
create_issueCreate IssueC
Create a new issue in a project.
Inputs: subject (required), project_id (required), status_id, done_ratio, +11 more. Returns: object
create_projectCreate ProjectD
Create a new project.
Inputs: name (required), identifier (required), homepage, is_public, +9 more. Returns: object
delete_issueDelete IssueC
Delete an issue permanently.
Inputs: issue_id (required). Returns: object
delete_projectDelete ProjectC
Delete a project permanently.
Inputs: project_id (required). Returns: object
get_issueGet IssueC
Get detailed information about a specific issue.
Inputs: issue_id (required), include. Returns: object
get_projectGet ProjectC
Get detailed information about a specific project.
Inputs: project_id (required), include. Returns: object
get_time_entryGet Time EntryC
Get detailed information about a specific time entry.
Inputs: time_entry_id (required). Returns: object
list_issuesList IssuesC
List issues with optional filters and pagination.
Inputs: sort, limit, offset, fetch_all, +6 more. Returns: object
list_projectsList ProjectsB
List all accessible projects with pagination.
Inputs: limit, offset, include. Returns: object
list_time_entriesList Time EntriesB
List time entries with optional filters and pagination.
Inputs: limit, offset, to_date, user_id, +4 more. Returns: object
remove_watcherRemove WatcherC
Remove a watcher from an issue.
Inputs: user_id (required), issue_id (required). Returns: object
searchSearchD
Search across Redmine resources.
Inputs: query (required), news, limit, scope, +10 more. Returns: object
unarchive_projectUnarchive ProjectC
Unarchive a project.
Inputs: project_id (required). Returns: object
update_issueUpdate IssueD
Update an existing issue.
Inputs: issue_id (required), notes, subject, due_date, +15 more. Returns: object
update_projectUpdate ProjectC
Update an existing project.
Inputs: project_id (required), name, homepage, is_public, +9 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools target a distinct resource+action pair (issues, projects, watchers, time entries), making boundaries clear. The generic 'search' tool mildly overlaps with filtered list_issues/list_projects, but descriptions keep them separable.
Every tool follows a strict verb_noun convention: list_/get_/create_/update_/delete_/add_/remove_/archive_/unarchive_ plus a clear resource noun. Highly predictable with no deviations.
17 tools sits at the heavier end of the range but is justified by covering multiple resources: full issue CRUD, project CRUD plus archive/unarchive, watchers, and time entries. Nothing feels redundant.
Issues and projects have full lifecycle coverage including archive/unarchive and watchers. Time entries only support read (list/get) with no create/update/delete, a notable gap for a time-tracking-centric tool like Redmine.
Maintenance
Related MCP Connectors
MCP server for generating rough-draft project plans from natural-language prompts.
MCP server for AI dialogue using various LLM models via AceDataCloud
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
An MCP server that integrates with Discord to provide AI-powered features.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to manage Redmine issues, projects, time tracking, wiki, and files via the MCP protocol.3322 npm6Apache 2.0
- AlicenseNot gradedqualityCmaintenanceMCP server for Redmine that enables interaction with issues, wiki pages, and time entries through natural language.ISC
- AlicenseAqualityCmaintenanceMCP server for Redmine integration, enabling AI assistants to manage issues, upload files, automate workflows, and handle wiki pages.18MIT
- FlicenseAqualityDmaintenanceAn MCP server that connects AI agents to Redmine project data, enabling natural language access to issues, projects, time entries, and more via the REST API.21-