Redmine MCP Server for Cline
local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Allows you to interact with your Redmine projects and issues through the Cline VS Code extension, including reading project details and creating new issues.
Redmine MCP Server for Cline
This is a custom MCP (Model Context Protocol) server that integrates with Redmine, allowing you to interact with your Redmine projects and issues through the Cline VS Code extension.
Prerequisites
- Node.js: You need Node.js (version 18 or newer) installed on your system.
- Redmine Instance: You need a running Redmine instance with the REST API enabled.
- Redmine API Key: You need an API key for your Redmine user account. You can find this in your Redmine account settings (usually under "My Account" -> "API access key").
- Cline: You need the Cline VS Code extension installed and configured.
Installation
- Clone the repository:Copy
- Install dependencies:Copy
Configuration
- Set environment variables:
Create a
.env
file in the root of the project directory and add the following, replacing the placeholders with your actual Redmine hostname and API key:Important: Do not commit yourCopy.env
file to version control! It contains sensitive information. The.gitignore
file included in this repository should prevent it from being committed.
Adding to Cline
- Open Cline Settings: In VS Code, open the Cline extension and go to the MCP Server tab.
- Edit MCP Settings: Click "Edit MCP Settings" to open the
cline_mcp_settings.json
file. - Add the server: Add the following entry to the
mcpServers
object, replacing theargs
path with the absolute path to theserver.js
file on your system:Important: Make sure to use double backslashes (Copy\\
) in the path on Windows. - Save: Save the
cline_mcp_settings.json
file. Cline should automatically detect the changes and start the server.
Available Resources and Tools
Resources
redmine://projects/{project_id}
: This resource represents a Redmine project. Replace{project_id}
with the actual ID of a project in your Redmine instance. You can use theaccess_mcp_resource
tool in Cline to read the details of a project. For example:Copy
(Replace 123
with a valid project ID). This will return the project details as JSON.
Tools
create_issue
: This tool allows you to create a new issue in Redmine. It takes the following parameters:project_id
(string, required): The ID of the project where the issue should be created.subject
(string, required): The subject of the issue.description
(string, required): The description of the issue.
You can use the
use_mcp_tool
tool in Cline to call this tool. For example:Copy(Replace
456
with a valid project ID). This will create a new issue in the specified project and return the issue details as JSON.
Troubleshooting
- Connection closed error: If you see an error like "MCP error -1: Connection closed", make sure that your
REDMINE_HOST
andREDMINE_API_KEY
environment variables are correctly set. Also, ensure that your Redmine instance is accessible from your computer. - Check server logs: If you encounter issues, check the server's output in the VS Code terminal for any error messages. The server logs errors to the console.
You must be authenticated.
Enables interaction with Redmine projects and issues via the Cline VS Code extension, supporting project management and issue creation through the Model Context Protocol.