Task Master in Claude Code: your AI project manager in the terminal in 5 minutes
Install Task Master as an MCP server in Claude Code, no API key. The direct guide to turn a brief into structured tasks you drive in plain language.
June 23, 2026 · 6 min read
You know the moment a project kicks off and you spend two days breaking down the work before writing a single line. Task Master automates that scoping. It is an AI-driven task management system (more than 25,000 stars on GitHub): you hand it a brief, it splits it into structured tasks with their dependencies, tells you where to start, and helps you execute.
Wired in as an MCP server inside Claude Code, it becomes a native command you drive in plain language, without leaving your terminal.Most tutorials install it in Cursor. If you already live in Claude Code, here is the direct version, no API key, up and running in five minutes.
The Claude AI Lab is my Skool community where I share my Claude systems and the more advanced modules. Entry is free.
Join the Lab →claude --version should return a number.node --version.Why Claude Code over Cursor
If you already live in your terminal, the Claude Code install spares you an extra layer of tooling. Four concrete reasons.
Verify your prerequisites
Two minutes of checks before you install.
# Claude Code installed?
claude --version
# if missing:
npm install -g @anthropic-ai/claude-code
claude login
# Node 18 minimum?
node --version
# if below:
nvm install 20
nvm use 20
For auth, two options: your Claude Pro or Max session (nothing to do, the recommended option), or an Anthropic API key from console.anthropic.com, under Settings then API Keys.
Install Task Master
A single command in your terminal.
claude mcp add taskmaster-ai -- npx -y task-master-ai
Claude Code wires Task Master in as an MCP server for the current project. To make it available across all your projects, add --scope user.
claude mcp add taskmaster-ai --scope user -- npx -y task-master-ai
Check that it took.
claude mcp list
You should see taskmaster-ai in the list. If so, move on.
Connect your Claude session
Launch Claude Code in your project with claude, then type, in plain language:
"Change the main model to claude-code/sonnet"
Task Master understands it should use your existing Claude Code session instead of reaching for an external API key. You spend your Pro or Max subscription, and you pay zero extra. For research, add:
"Change the research model to claude-code/opus"
No Pro or Max? Add an API key in the env section of taskmaster-ai, inside ~/.claude.json, then restart Claude Code.
{
"mcpServers": {
"taskmaster-ai": {
"command": "npx",
"args": ["-y", "task-master-ai"],
"env": { "ANTHROPIC_API_KEY": "your_key_here" }
}
}
}
Optimise the context
By default, Task Master loads 36 tools, around 21,000 tokens tied up in your context at all times. For normal use, that is too much: that is context window you lose for your code. Switch to core mode, seven tools, around 5,000 tokens.
claude mcp remove taskmaster-ai
claude mcp add taskmaster-ai --scope user \
--env TASK_MASTER_TOOLS="core" \
-- npx -y task-master-ai@latest
The four available modes.
In custom, you list the tools you want, for example --env TASK_MASTER_TOOLS="get_tasks,next_task,set_task_status,parse_prd,expand_task".
Your first project end-to-end
Task Master installed and connected, here is the full loop on a real project.
mkdir my-project, cd my-project, claude..taskmaster/ folder with docs, tasks and templates..taskmaster/tasks/tasks.json.The seven commands that cover 95% of the usage.
What to keep in mind
.taskmaster/ to Git, but AI sessions do not sync between members.Want to go further?
In the Lab, I share the configs, instructions and architectures I keep refining to turn Claude into a real copilot.
A dedicated session or program, tailored to your tools and use cases.
And day-to-day, I post one reel a day on Instagram: @quentin_iamarketing