Skip to main content
Glama
Redmine MCP Server

Redmine MCP Server

by popper2710
README.md
# Redmine MCP Server

A Model Context Protocol (MCP) server that enables Claude Code to interact with Redmine project management systems.

## Features

This server provides 25 tools across five categories:

**Project Operations**
- List and retrieve project details (supports both numeric IDs and string identifiers)
- Search projects by name or identifier (partial text matching)
- Get project members and permissions

**Issue Management**
- Search, create, and update issues (tickets) - supports both numeric project IDs and string identifiers
- Add comments, edit existing comments (`update_issue_journal`, requires Redmine 5.0+), and track progress
- Full or differential (find-and-replace) description updates
- Create and delete relations between issues (dependencies, blockers, duplicates, etc.)
- Support for filtering by project (numeric ID or identifier), tracker, status, assignee, and priority

**Attachments**
- Upload files and attach them to issues, download, update metadata (`update_attachment`, requires Redmine 3.4+), and delete

**Wiki Pages**
- List, read (including old versions), create/update (full or differential), and delete wiki pages

**Metadata**
- List trackers, statuses, priorities, and users
- Essential for creating and updating issues correctly

### Silent failure detection

Redmine's REST API silently discards fields that workflow or permission rules
do not allow (e.g. a status transition forbidden for your role) while still
returning HTTP 200. This server verifies every `update_issue` call against the
state Redmine actually persisted and raises an explicit error listing the
discarded fields - including the allowed status transitions when the server
reports them (Redmine 5.0+). `create_issue` instead returns a `warnings` field
in such cases, because the issue itself was created and an error could lead to
duplicate creation on retry.

## Installation

**Prerequisites:** Python 3.11+, [uv](https://github.com/astral-sh/uv) package manager, and a Redmine instance with REST API enabled.

```bash
git clone <repository-url>
cd mcp-redmine
uv sync
```

## Configuration

### Get Your Redmine API Key

1. Log in to your Redmine instance
2. Go to "My account" (top right menu)
3. Click "Show" under "API access key"
4. Copy the API key

### Add to Claude Code (Recommended)

Use the `claude mcp add` command to easily configure the server:

```bash
claude mcp add --transport stdio redmine \
  --env REDMINE_URL=https://redmine.example.com \
  --env REDMINE_API_KEY=your_api_key_here \
  -- uv --directory /absolute/path/to/mcp-redmine run mcp-redmine
```

**Important:** Replace the following:
- `https://redmine.example.com` - Your Redmine instance URL (include https:// or http://)
- `your_api_key_here` - Your actual Redmine API key
- `/absolute/path/to/mcp-redmine` - Full path to this project directory

Restart Claude Code after adding the server.

### Manual Configuration

Alternatively, add this to your Claude Code MCP settings file (`~/.config/claude-code/mcp.json` or similar):

```json
{
  "mcpServers": {
    "redmine": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/mcp-redmine",
        "run",
        "mcp-redmine"
      ],
      "env": {
        "REDMINE_URL": "https://redmine.example.com",
        "REDMINE_API_KEY": "your_api_key_here"
      }
    }
  }
}
```

### Local Development

For local testing, you can use a `.env` file. Copy `.env.example` to `.env` and fill in your values. Note that the MCP configuration's `env` section takes precedence over `.env` files.

## Usage

Once configured, use Claude Code to interact with Redmine naturally:

```
"Show me all open issues in project 5"
"Show me all open issues in the 'mobile-app' project"
"Search for projects related to 'ERP'"
"Create a bug in project 3 titled 'Login page error'"
"Create a bug in the 'backend-api' project titled 'Login timeout'"
"Update issue 123 to 'In Progress' and add a comment"
"Make issue 100 block issue 101"
"Show me the relations for issue 50"
"Who are the members of project 2?"
"What trackers are available?"
```

Claude will automatically use the appropriate tools to fulfill your requests. Project references accept both numeric IDs (e.g., `5`) and string identifiers (e.g., `"mobile-app"`) for flexible integration with your workflow.

## Troubleshooting

**Authentication errors:**
- Verify your API key is correct
- Check that REST API is enabled in Redmine (Administration → Settings → API tab)
- Ensure your user account has appropriate permissions

**Connection errors:**
- Verify REDMINE_URL is correct with protocol (https:// or http://)
- Check that the Redmine server is accessible from your network

**Tools not appearing:**
- Verify the MCP server path in your configuration is absolute and correct
- Restart Claude Code after making configuration changes
- Run `claude mcp list` to verify the server is registered

## Limitations

Current version does not support:
- Time tracking entries
- Bulk operations

Version-dependent features (limited by the Redmine REST API itself):
- Editing existing comments requires Redmine 5.0+ (`update_issue_journal`)
- Updating attachment metadata requires Redmine 3.4+ (`update_attachment`)
- Issue relations cannot be updated (delete and re-create instead)

These features may be added in future versions based on demand.

## License

MIT License

## Resources

- [Model Context Protocol Specification](https://spec.modelcontextprotocol.io/)
- [Redmine REST API Documentation](https://www.redmine.org/projects/redmine/wiki/Rest_api)

TDQS

A3.7/5.0

Scored across 25 tools

Disambiguation4/5

Most tools map to a single resource+action pair (issues, wiki pages, attachments, relations, metadata lists) and the descriptions clarify the boundaries. The only mild overlaps are list_issues vs. search (both return issues, though search spans all resource types) and get_attachment vs. download_attachment (metadata vs. file content), both of which are explained in the descriptions.

Naming Consistency4/5

Nearly everything follows a predictable snake_case verb_noun pattern (list_issues, create_issue, delete_wiki_page, update_attachment). Minor deviations are the bare verb 'search' and the compound 'create_or_update_wiki_page', which are still readable and consistent in casing.

Tool Count4/5

25 tools is on the heavy side, but the surface spans genuinely different sub-domains (issues, relations, wiki, attachments, projects/users, reference lists), so each tool earns its place. There is no obvious redundancy such as duplicate create/list variants.

Completeness3/5

Issues, wiki pages, attachments and relations have solid lifecycle coverage, but there is no delete_issue despite full create/update/get/list, and there are no listers for issue categories or target versions even though create_issue/update_issue accept those IDs. Time tracking and news/documents are also absent, leaving a few dead ends for agents.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues