This MCP server for AI code editors like Cursor helps maximize agentic capabilities and overcome limited context windows, while providing a user interface to view tasks, adjust plans, and review changes.
Clone the repository:
git clone https://github.com/jhawkins11/task-manager-mcp.git
cd task-manager-mcp
Install dependencies:
npm install
Build the server:
npm run build
For manual testing (without 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-flash-preview:thinking
FALLBACK_OPENROUTER_MODEL=google/gemini-2.5-flash-preview:thinking
# Alternative: Google AI API
# GEMINI_API_KEY=your_google_ai_api_key
# GEMINI_MODEL=gemini-1.5-flash-latest
# FALLBACK_GEMINI_MODEL=gemini-1.5-flash-latest
# UI and WebSocket Configuration
UI_PORT=4999
WS_PORT=4999
# Optional Features
AUTO_REVIEW_ON_COMPLETION=false
Create or edit Cursor's MCP configuration file:
.cursor/mcp.json
in your project directory~/.cursor/mcp.json
in your home directoryAdd the following 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-flash-preview:thinking",
// "FALLBACK_OPENROUTER_MODEL": "google/gemini-2.5-flash-preview:thinking",
// "UI_PORT": "4999",
// "WS_PORT": "4999"
}
}
}
}
Important: Replace the path with the absolute path to the server.js file on your system and use your actual API key.
In Cursor, go to Settings → Features → Chat → Enable Custom modes
Go to chat view and click the mode selector (bottom left)
Click "Add custom mode"
Configure the 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
plan_feature
toolmark_task_complete
and receives the next taskget_next_task
to continueTo minimize costs:
The server automatically retries with a fallback model if the primary hits a rate limit.
For local testing without Cursor:
# Using node directly:
node /full/path/to/your/task-manager-mcp/dist/server.js
# Or using npm:
npm start
This starts all required services and opens the UI at http://localhost:4999 (default).
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "task-manager-mcp" '{"command":"node","args":["/full/path/to/your/task-manager-mcp/dist/server.js"],"env":{"OPENROUTER_API_KEY":"sk-or-v1-xxxxxxxxxxxxxxxxxxxx"}}'
See the official Claude Code MCP documentation for more details.
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 > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"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"
}
}
}
}
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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"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"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect