Redmine
БесплатноНе проверенEnables to manage Redmine projects, issues, users, and time entries through natural language using the Redmine REST API.
Описание
Enables to manage Redmine projects, issues, users, and time entries through natural language using the Redmine REST API.
README
🇬🇧 English · 🇫🇷 Français
An MCP (Model Context Protocol) server to drive a Redmine instance from Claude Desktop or Claude CLI, via Redmine's REST API.
Requirements
- Python 3.10+ (the code uses the
X | Noneunion syntax). - A Redmine instance with the REST API enabled (Administration → Settings → API) and an API key.
Install
# 1. Clone
git clone https://github.com/NeveuGregor/mcp-redmineApi.git
cd mcp-redmineApi
# 2. Virtual environment
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# 3. Dependencies
pip install -r requirements.txt
# 4. Configuration
cp .env.example .env # then edit .env (URL + API key)
# 5. Smoke-test against your instance
python3 test_connection.py
Redmine API key
My account → API access key → Show, then paste it into .env
(REDMINE_API_KEY=...).
Configuration
Environment variables (.env)
| Variable | Required | Description |
|---|---|---|
REDMINE_URL |
✅ | Base URL (must start with http:// or https://) |
REDMINE_API_KEY |
✅ | API access key |
REDMINE_DEFAULT_PROJECT_ID |
— | Default project for issue creation |
REDMINE_TIMEOUT |
— | HTTP timeout in seconds (default: 30) |
DEBUG |
— | Debug logs on stderr (default: false) |
REDMINE_UPLOAD_DIRS |
— | Allowed upload directories (CSV). Empty = upload disabled |
⚠️ Upload security:
REDMINE_UPLOAD_DIRSonly allows trusted directories. The server can read and upload any file under those paths. Left empty, file attachment is refused (safe default).
Claude CLI (Claude Code)
# Local scope (current project) or user (all your projects)
claude mcp add redmine --scope user python3 -m src.main --cwd /absolute/path/to/redmine-mcp
# Check
claude mcp list
Claude Desktop
In claude_desktop_config.json:
{
"mcpServers": {
"redmine": {
"command": "python3",
"args": ["-m", "src.main"],
"cwd": "/absolute/path/to/redmine-mcp"
}
}
}
File location: macOS ~/Library/Application Support/Claude/,
Windows %APPDATA%\Claude\, Linux ~/.config/Claude/.
Note: the Python package is named
src; the server runs viapython3 -m src.mainfrom the project root (thecwdfield).
Available tools (7)
create_issue(subject, description, ...)
Create an issue. Params: subject, description, project_id,
priority_id (1=Low … 5=Immediate), tracker_id, assigned_to_id,
parent_issue_id, files (paths — requires REDMINE_UPLOAD_DIRS),
estimated_hours.
update_issue(issue_id, ...)
Update an issue. Params: issue_id*, subject, description,
status_id, priority_id, assigned_to_id, estimated_hours, notes.
search_issues(...)
Search issues. Params: project_id, assigned_to_id, status_id,
tracker_id, subject, limit (default 25), offset.
By default Redmine returns only open issues. To widen, pass
status_idas"open","closed","*"(all), or a specific status id. The result reports "X shown out of N total" when truncated.
list_projects()
List all accessible projects (pagination followed automatically).
list_users(limit=None)
List users (all by default; limit bounds the output).
add_time_entry(hours, comments, ...)
Log time. Params: hours, comments, issue_id or
project_id, spent_on (YYYY-MM-DD), activity_id.
get_metadata()
Trackers, statuses and users (ids/names) to feed the other tools.
* = required parameter
Development & tests
Unit tests mock the HTTP API (respx) — no Redmine instance required.
# Dev dependencies
pip install -r requirements-dev.txt
# Run the suite
python3 -m pytest
# Smoke-test against a real instance (reads .env)
python3 test_connection.py
# Check the config
python3 -c "from src.config import config; print(config.redmine_url)"
Troubleshooting
| Symptom | Likely cause |
|---|---|
Access denied (403) |
Invalid API key or insufficient Redmine permissions |
Resource not found (404) |
Wrong issue/project id |
Invalid data (422) |
Missing required field (Redmine's detail is surfaced) |
Network error |
Unreachable URL / timeout — raise REDMINE_TIMEOUT |
Upload disabled |
Set REDMINE_UPLOAD_DIRS |
Debug mode (verbose logs on stderr): DEBUG=true python3 -m src.main.
Architecture
src/
main.py entry point (def main)
server.py tool registration + centralized error handling
config.py configuration (.env) validated by pydantic
errors.py RedmineError (status_code, details)
models.py Pydantic models for Redmine entities
redmine_client.py HTTP client (httpx) + parsing
tools/ one module per tool
tests/ pytest suite (respx mock)
Установить Redmine в Claude Desktop, Claude Code, Cursor
unyly install mcp-redmineСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add mcp-redmine -- uvx redmine-mcpFAQ
Redmine MCP бесплатный?
Да, Redmine MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Redmine?
Нет, Redmine работает без API-ключей и переменных окружения.
Redmine — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Redmine в Claude Desktop, Claude Code или Cursor?
Открой Redmine на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Redmine with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
