这是一个用于Redmine的模型上下文协议(MCP)服务器,提供了对Redmine REST API的全面访问。
该项目是一个MCP服务器,全面覆盖了Redmine的REST API。它允许您通过MCP客户端(如Claude Desktop)操作Redmine。
这里有一些视频示例,展示了如何使用Redmine MCP服务器与Claude Desktop:
https://github.com/user-attachments/assets/075fb079-104c-404d-91f5-755b3882853b
此演示还使用了Playwright MCP,用于浏览器自动化,以及Redmine MCP服务器。
https://github.com/user-attachments/assets/8f551082-6982-4513-8fe7-b0f111be982d
详情请参阅Redmine REST API文档。
需要以下环境变量(在MCP客户端配置文件中指定):
https://redmine.example.comtrue:只读模式(禁用数据修改操作)false或未设置:允许所有操作(默认)为您的AI代理添加如下MCP配置:
{
"mcpServers": {
"redmine": {
"command": "npx",
"args": ["-y", "@onozaty/redmine-mcp-server"],
"env": {
"REDMINE_URL": "https://your-redmine.example.com",
"REDMINE_API_KEY": "your-api-key-here",
"REDMINE_MCP_READ_ONLY": "true"
}
}
}
}
如果您更喜欢使用Docker:
{
"mcpServers": {
"redmine": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "REDMINE_URL=https://your-redmine.example.com",
"-e", "REDMINE_API_KEY=your-api-key-here",
"-e", "REDMINE_MCP_READ_ONLY=true",
"ghcr.io/onozaty/redmine-mcp-server:latest"
]
}
}
}
何时使用Docker:
以下是几种MCP客户端的具体配置方法:
在claude_desktop_config.json中添加如下内容:
{
"mcpServers": {
"redmine": {
"command": "npx",
"args": ["-y", "@onozaty/redmine-mcp-server"],
"env": {
"REDMINE_URL": "https://your-redmine.example.com",
"REDMINE_API_KEY": "your-api-key-here",
"REDMINE_MCP_READ_ONLY": "true"
}
}
}
}
在Claude Code中,您可以使用以下命令添加MCP服务器:
本地配置:
claude mcp add redmine -e REDMINE_URL=https://your-redmine.example.com -e REDMINE_API_KEY=your-api-key-here -e REDMINE_MCP_READ_ONLY=true -- npx -y @onozaty/redmine-mcp-server
项目配置:
claude mcp add -s project redmine -e REDMINE_URL=https://your-redmine.example.com -e REDMINE_API_KEY=
your-api-key-here -e REDMINE_MCP_READ_ONLY=true -- npx -y @onozaty/redmine-mcp-server
用户配置(全局):
claude mcp add -s user redmine -e REDMINE_URL=https://your-redmine.example.com -e REDMINE_API_KEY=your-api-key-here -e REDMINE_MCP_READ_ONLY=true -- npx -y @onozaty/redmine-mcp-server
项目配置(.vscode/mcp.json):
{
"servers": {
"redmine": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@onozaty/redmine-mcp-server"],
"env": {
"REDMINE_URL": "https://your-redmine.example.com",
"REDMINE_API_KEY": "your-api-key-here",
"REDMINE_MCP_READ_ONLY": "true"
}
}
}
}
用户配置(settings.json):
{
"mcp": {
"servers": {
"redmine": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@onozaty/redmine-mcp-server"],
"env": {
"REDMINE_URL": "https://your-redmine.example.com",
"REDMINE_API_KEY": "your-api-key-here",
"REDMINE_MCP_READ_ONLY": "true"
}
}
}
}
}
此MCP服务器全面支持Redmine REST API提供的功能:
通过设置REDMINE_MCP_READ_ONLY=true,可以禁用数据修改操作。这允许安全的数据引用。
MIT许可证