Task Master is an AI-driven task management system designed to work seamlessly with Cursor AI and other code editors. It helps developers break down and manage projects by leveraging AI to generate, track, and implement development tasks.
You can install Task Master using the one-click installation link. After clicking, you'll need to replace the placeholder API keys with your actual keys.
Add Task Master to your editor's MCP configuration file:
Editor | Scope | Linux/macOS Path | Windows Path |
---|---|---|---|
Cursor | Global | ~/.cursor/mcp.json |
%USERPROFILE%\.cursor\mcp.json |
Project | <project_folder>/.cursor/mcp.json |
<project_folder>\.cursor\mcp.json |
|
Windsurf | Global | ~/.codeium/windsurf/mcp_config.json |
%USERPROFILE%\.codeium\windsurf\mcp_config.json |
VS Code | Project | <project_folder>/.vscode/mcp.json |
<project_folder>\.vscode\mcp.json |
For Cursor & Windsurf:
{
"mcpServers": {
"task-master-ai": {
"command": "npx",
"args": ["-y", "--package=task-master-ai", "task-master-ai"],
"env": {
"ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE",
"PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY_HERE",
"OPENAI_API_KEY": "YOUR_OPENAI_KEY_HERE",
"GOOGLE_API_KEY": "YOUR_GOOGLE_KEY_HERE",
"MISTRAL_API_KEY": "YOUR_MISTRAL_KEY_HERE",
"GROQ_API_KEY": "YOUR_GROQ_KEY_HERE",
"OPENROUTER_API_KEY": "YOUR_OPENROUTER_KEY_HERE",
"XAI_API_KEY": "YOUR_XAI_KEY_HERE",
"AZURE_OPENAI_API_KEY": "YOUR_AZURE_KEY_HERE",
"OLLAMA_API_KEY": "YOUR_OLLAMA_API_KEY_HERE"
}
}
}
}
For VS Code:
{
"servers": {
"task-master-ai": {
"command": "npx",
"args": ["-y", "--package=task-master-ai", "task-master-ai"],
"env": {
"ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE",
"PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY_HERE",
"OPENAI_API_KEY": "YOUR_OPENAI_KEY_HERE",
"GOOGLE_API_KEY": "YOUR_GOOGLE_KEY_HERE",
"MISTRAL_API_KEY": "YOUR_MISTRAL_KEY_HERE",
"GROQ_API_KEY": "YOUR_GROQ_KEY_HERE",
"OPENROUTER_API_KEY": "YOUR_OPENROUTER_KEY_HERE",
"XAI_API_KEY": "YOUR_XAI_KEY_HERE",
"AZURE_OPENAI_API_KEY": "YOUR_AZURE_KEY_HERE",
"OLLAMA_API_KEY": "YOUR_OLLAMA_API_KEY_HERE"
},
"type": "stdio"
}
}
}
# Install globally
npm install -g task-master-ai
# OR install locally within your project
npm install task-master-ai
Task Master requires at least one AI provider API key. You can use:
Alternatively, you can use Claude Code CLI with no API key required.
After setting up the MCP configuration, initialize Task Master in your editor's AI chat pane:
Initialize taskmaster-ai in my project
# If installed globally
task-master init
# If installed locally
npx task-master init
Create a detailed PRD at .taskmaster/docs/prd.txt
or use the existing scripts/prd.txt
for older projects.
A template is available after initialization at .taskmaster/templates/example_prd.txt
.
# Parse your requirements document
Can you parse my PRD at scripts/prd.txt?
# Get the next task to work on
What's the next task I should work on?
# Implement a specific task
Can you help me implement task 3?
# View multiple tasks
Can you show me tasks 1, 3, and 5?
# Expand a task with more details
Can you help me expand task 4?
# Research latest information
Research the latest best practices for implementing JWT authentication with Node.js
# Research with project context
Research React Query v5 migration strategies for our current API implementation in src/api.js
# Change the AI models used
Change the main, research and fallback models to claude-3-opus-20240229, perplexity-codellama-34b-v2-0 and claude-3-haiku-20240307 respectively.
# List all tasks
task-master list
# Show the next task to work on
task-master next
# Show specific task(s)
task-master show 1,3,5
# Research with project context
task-master research "What are the latest best practices for JWT authentication?"
# Generate task files
task-master generate
# Add rules after initialization
task-master rules add windsurf,roo,vscode
Task Master supports Claude models through Claude Code CLI without requiring an API key:
# In your editor's chat, switch to Claude Code
Change the main model to claude-code/sonnet
Available models:
claude-code/opus
claude-code/sonnet
If task-master init
doesn't respond, try running it with Node directly:
node node_modules/claude-task-master/scripts/init.js
Or clone the repository and run:
git clone https://github.com/eyaltoledano/claude-task-master.git
cd claude-task-master
node scripts/init.js
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "taskmaster-ai" '{"command":"npx","args":["-y","--package=task-master-ai","task-master-ai"],"env":{"ANTHROPIC_API_KEY":"YOUR_ANTHROPIC_API_KEY_HERE","PERPLEXITY_API_KEY":"YOUR_PERPLEXITY_API_KEY_HERE","OPENAI_API_KEY":"YOUR_OPENAI_KEY_HERE","GOOGLE_API_KEY":"YOUR_GOOGLE_KEY_HERE","MISTRAL_API_KEY":"YOUR_MISTRAL_KEY_HERE","OPENROUTER_API_KEY":"YOUR_OPENROUTER_KEY_HERE","XAI_API_KEY":"YOUR_XAI_KEY_HERE","AZURE_OPENAI_API_KEY":"YOUR_AZURE_KEY_HERE","OLLAMA_API_KEY":"YOUR_OLLAMA_API_KEY_HERE"}}'
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": {
"taskmaster-ai": {
"command": "npx",
"args": [
"-y",
"--package=task-master-ai",
"task-master-ai"
],
"env": {
"ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE",
"PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY_HERE",
"OPENAI_API_KEY": "YOUR_OPENAI_KEY_HERE",
"GOOGLE_API_KEY": "YOUR_GOOGLE_KEY_HERE",
"MISTRAL_API_KEY": "YOUR_MISTRAL_KEY_HERE",
"OPENROUTER_API_KEY": "YOUR_OPENROUTER_KEY_HERE",
"XAI_API_KEY": "YOUR_XAI_KEY_HERE",
"AZURE_OPENAI_API_KEY": "YOUR_AZURE_KEY_HERE",
"OLLAMA_API_KEY": "YOUR_OLLAMA_API_KEY_HERE"
}
}
}
}
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": {
"taskmaster-ai": {
"command": "npx",
"args": [
"-y",
"--package=task-master-ai",
"task-master-ai"
],
"env": {
"ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE",
"PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY_HERE",
"OPENAI_API_KEY": "YOUR_OPENAI_KEY_HERE",
"GOOGLE_API_KEY": "YOUR_GOOGLE_KEY_HERE",
"MISTRAL_API_KEY": "YOUR_MISTRAL_KEY_HERE",
"OPENROUTER_API_KEY": "YOUR_OPENROUTER_KEY_HERE",
"XAI_API_KEY": "YOUR_XAI_KEY_HERE",
"AZURE_OPENAI_API_KEY": "YOUR_AZURE_KEY_HERE",
"OLLAMA_API_KEY": "YOUR_OLLAMA_API_KEY_HERE"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect