npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@icoach/redmine-mcp-server

v0.2.2

Published

A Model Context Protocol (MCP) server for Redmine API integration

Downloads

48

Readme

Redmine MCP Server

A Model Context Protocol (MCP) server that provides comprehensive integration with Redmine, enabling AI assistants to interact with your Redmine instance through a clean, validated API.

Features

  • Complete Issue Lifecycle: Create, read, update, transition issues
  • Rich Metadata: Access projects, trackers, statuses, users, and priorities
  • Search & Filter: Find issues with flexible search parameters
  • Attachments: Upload and attach files to issues
  • Notes & Comments: Add notes and comments to issues
  • Status Transitions: Change issue status with optional notes
  • Strong Validation: Zod schemas ensure data integrity
  • Error Handling: Clear, structured error messages
  • NPX Ready: Install and run via npx @icoach/redmine-mcp-server

Quick Start

NPX Installation (Recommended)

npx @icoach/redmine-mcp-server

MCP Configuration

Add this to your MCP configuration:

{
  "mcpServers": {
    "redmine": {
      "command": "npx", 
      "args": ["@icoach/redmine-mcp-server@latest"],
      "env": {
        "REDMINE_URL": "https://your-redmine-instance.com",
        "REDMINE_API_KEY": "YOUR_REDMINE_API_KEY",
        "REDMINE_DEFAULT_PROJECT_ID": "123"
      },
      "autoApprove": ["read_issue", "list_projects", "list_trackers_statuses", "get_metadata"]
    }
  }
}

Environment Variables

Configuration Priority

The server supports two ways to configure environment variables:

  1. Local .env file (highest priority) - Place a .env file in your project root
  2. MCP config env section (fallback) - Define in your MCP configuration

If a local .env file exists in your project directory, its values will override the MCP config variables.

Required Variables

  • REDMINE_URL: Your Redmine instance URL
  • REDMINE_API_KEY: Your Redmine API key

Optional Variables

  • REDMINE_DEFAULT_PROJECT_ID: Default project for issue creation
  • REDMINE_TIMEOUT_MS: Request timeout in milliseconds (default: 30000)
  • REDMINE_INSECURE_TLS: Allow insecure TLS connections (default: false)
  • LOG_LEVEL: Logging level (for future use)

Using Local .env File

Create a .env file in your project root:

REDMINE_URL=https://your-redmine-instance.com
REDMINE_API_KEY=your_api_key_here
REDMINE_DEFAULT_PROJECT_ID=123

This approach is useful when:

  • You want project-specific Redmine configurations
  • You don't want to modify global MCP settings
  • You're working with multiple projects with different Redmine instances

Available Tools

Issue Operations

read_issue

Get detailed information about a specific issue.

{
  "issue_id": 123
}

create_issue

Create a new issue in Redmine.

{
  "project_id": 1,
  "subject": "Issue title", 
  "description": "Issue description",
  "tracker_id": 1,
  "status_id": 1,
  "priority_id": 2,
  "assigned_to_id": 5,
  "start_date": "2024-01-01",
  "due_date": "2024-01-31"
}

Note: If project_id is omitted, REDMINE_DEFAULT_PROJECT_ID must be set.

update_issue

Update an existing issue's properties.

{
  "issue_id": 123,
  "subject": "Updated title",
  "description": "Updated description", 
  "tracker_id": 2,
  "status_id": 2,
  "priority_id": 3,
  "assigned_to_id": 6,
  "start_date": "2024-02-01",
  "due_date": "2024-02-28"
}

add_issue_note

Add a note/comment to an existing issue.

{
  "issue_id": 123,
  "notes": "This is a comment on the issue"
}

transition_issue

Change an issue's status (with optional note).

{
  "issue_id": 123,
  "status_id": 3,
  "notes": "Marking as resolved"
}

find_issues

Search for issues with flexible filtering.

{
  "project_id": 1,
  "status_id": 1, 
  "tracker_id": 1,
  "assigned_to_id": 5,
  "query": "search text",
  "limit": 10,
  "offset": 0
}

add_attachment

Upload and attach a file to an issue.

{
  "issue_id": 123,
  "filename": "document.pdf",
  "data_base64": "base64-encoded-file-data",
  "content_type": "application/pdf",
  "description": "Important document"
}

Metadata & Reference Data

list_projects

Get all available projects.

list_trackers_statuses

Get all trackers and issue statuses in one call.

get_metadata

Get comprehensive metadata including projects, trackers, statuses, users, and priorities.

Development

Local Development

  1. Clone the repository:

    git clone <repository-url>
    cd redmine-mcp-server
  2. Install dependencies:

    npm install
  3. Set up environment variables:

    cp .env.example .env
    # Edit .env with your Redmine details
  4. Build and test:

    npm run build
    npm test
  5. Run in development mode:

    npm run dev

Testing

Run integration tests:

npm test

Run full MCP protocol tests:

npm run test:full

Building for Distribution

npm run build
npm pack  # Creates tarball for testing
npm publish --access public  # Publishes to npm

Technical Details

  • Architecture: Stdio-based MCP server using official SDK
  • Language: TypeScript compiled to ESM modules
  • Validation: Zod schemas for all tool parameters
  • Error Handling: Structured error responses with HTTP status codes
  • Transport: Standard stdio transport for maximum compatibility
  • Node.js: Requires Node.js 18+ for modern fetch() and ESM support

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make changes with tests
  4. Submit a pull request

License

MIT License - see LICENSE file for details.