This server integrates Cursor AI with a task management system to enhance its capabilities through a Model Context Protocol (MCP) implementation. It overcomes context window limitations while providing a visual task management interface.
Clone the repository:
git clone https://github.com/jhawkins11/task-manager-mcp.git
cd task-manager-mcp
Install dependencies:
npm install
Build the application:
npm run build
If you want to run the server manually outside of Cursor, create a .env
file in the project root:
# OpenRouter Configuration (Recommended)
OPENROUTER_API_KEY=sk-or-v1-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
OPENROUTER_MODEL=google/gemini-2.5-pro-exp-03-25:free
FALLBACK_OPENROUTER_MODEL=google/gemini-2.5-flash-preview:thinking
# Alternative: Google AI API Configuration
# GEMINI_API_KEY=your_google_ai_api_key
# GEMINI_MODEL=gemini-1.5-flash-latest
# FALLBACK_GEMINI_MODEL=gemini-1.5-flash-latest
# Server Configuration
UI_PORT=4999
WS_PORT=4999
# Features
AUTO_REVIEW_ON_COMPLETION=false
For local testing outside of Cursor:
# Using Node directly (with absolute path)
node /full/path/to/your/task-manager-mcp/dist/server.js
# Or using npm
npm start
Create or edit Cursor's MCP configuration file:
.cursor/mcp.json
in your project directory~/.cursor/mcp.json
in your home directoryAdd the following to the configuration:
{
"mcpServers": {
"task-manager-mcp": {
"command": "node",
"args": ["/full/path/to/your/task-manager-mcp/dist/server.js"],
"env": {
"OPENROUTER_API_KEY": "sk-or-v1-xxxxxxxxxxxxxxxxxxxx"
// Optional configurations:
// "OPENROUTER_MODEL": "google/gemini-2.5-pro-exp-03-25:free",
// "FALLBACK_OPENROUTER_MODEL": "google/gemini-2.5-flash-preview:thinking",
// "UI_PORT": "4999",
// "WS_PORT": "4999"
}
}
}
}
Replace the path and API key with your actual values.
Go to Cursor Settings → Features → Chat → Enable Custom modes
Go to chat view, click the mode selector (bottom left), and select "Add custom mode"
Configure your mode:
plan_feature
, mark_task_complete
, get_next_task
, review_changes
, adjust_plan
Always use plan_feature mcp tool when getting feature request before doing anything else. ALWAYS!!!!!!!! It will return the first step of the implementation. DO NOT IMPLEMENT MORE THAN WHAT THE TASK STATES. After you're done run mark_task_complete which will give you the next task. If the user says "review" use the review_changes tool. The review_changes tool will generate new tasks for you to follow, just like plan_feature. After a review, follow the same one-at-a-time task completion workflow: complete each review-generated task, mark it complete, and call get_next_task until all are done.
If clarification is required at any step, you will not receive the next task and will have to run get_next_task manually after the user answers the clarification question through the UI.
IMPORTANT: Your job is to complete the tasks one at a time. DO NOT DO ANY OTHER CHANGES, ONLY WHAT THE CURRENT TASK SAYS TO DO.
Save the custom mode
To minimize costs, consider these options:
google/gemini-2.5-pro-exp-03-25:free
)For more information on setting up free access, see: Reddit Guide to Gemini 2.5 Pro Free Setup
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.