--- title: Cursor Setup sidebarTitle: "Cursor" ---
Cursor

Cursor AI Editor

AI-powered VS Code fork with built-in MCP support

Cursor offers the smoothest Task Master experience with one-click installation and native MCP integration. ## 🚀 One-Click Install (Recommended)

Fastest Setup

Add Task Master MCP server to Cursor Add Task Master MCP server to Cursor
**After one-click install**: You still need to add your actual API keys! The installer uses placeholder keys that must be replaced. ## 📋 Manual Setup If you prefer manual configuration or the one-click install doesn't work: ### Step 1: Create MCP Configuration Choose your configuration scope: Create or edit `~/.cursor/mcp.json` (macOS/Linux) or `%USERPROFILE%\.cursor\mcp.json` (Windows): ```json { "mcpServers": { "task-master-ai": { "command": "npx", "args": ["-y", "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" } } } } ``` Create `.cursor/mcp.json` in your project root: ```json { "mcpServers": { "task-master-ai": { "command": "npx", "args": ["-y", "task-master-ai"], "env": { "ANTHROPIC_API_KEY": "YOUR_ANTHROPIC_API_KEY_HERE", "PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY_HERE" } } } } ``` For Windows users without WSL: ```json { "mcpServers": { "task-master-ai": { "command": "cmd", "args": ["/c", "npx -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" } } } } ``` **Alternative Windows Setup**: Use Claude Code's project-level installation: ```bash claude mcp add task-master-mcp -s project -- cmd /c "npx -y --package=task-master-ai task-master-ai" ``` ### Step 2: Enable MCP Server 1. Open Cursor Settings (`Ctrl+Shift+J` or `Cmd+Shift+J`) 2. Click the **MCP** tab in the left sidebar 3. Find `task-master-ai` and toggle it **ON** 4. Restart Cursor if needed ### Step 3: Verify Installation In Cursor's chat panel, type: ``` help ``` You should see Task Master commands available. If you see "0 tools enabled", check your API keys and restart Cursor. ## 🔧 Configuration ### Add Your API Keys You need **at least one** of these: - `ANTHROPIC_API_KEY` - For Claude models (recommended) - `OPENAI_API_KEY` - For GPT models - `GOOGLE_API_KEY` - For Gemini models For the best experience, also add: - `PERPLEXITY_API_KEY` - Enables research features - `OPENAI_API_KEY` - Fallback option Full list of supported API keys: - `ANTHROPIC_API_KEY` - `PERPLEXITY_API_KEY` - `OPENAI_API_KEY` - `GOOGLE_API_KEY` - `MISTRAL_API_KEY` - `OPENROUTER_API_KEY` - `XAI_API_KEY` - `AZURE_OPENAI_API_KEY` - `OLLAMA_API_KEY` ### Configure Models (Optional) In Cursor's chat, set your preferred models: ``` Change the main, research and fallback models to claude-3-5-sonnet-20241022, perplexity-llama-3.1-sonar-large-128k-online and gpt-4o-mini respectively. ``` ## 🎯 Getting Started ### 1. Initialize Task Master In Cursor's chat panel: ``` Initialize taskmaster-ai in my project ``` ### 2. Create Your First Task ``` Can you help me implement user authentication for my web app? ``` ### 3. Start Working ``` What's the next task I should work on? ``` ## 🔍 Troubleshooting - **Check API keys**: Ensure at least one API key is correctly set - **Restart Cursor**: Close and reopen Cursor completely - **Check file paths**: Verify your `mcp.json` is in the correct location - **Test manually**: Run `npx task-master-ai` in terminal to test - **Update Node.js**: Ensure you have Node.js 16+ installed - **Clear npm cache**: Run `npm cache clean --force` - **Try global install**: Run `npm install -g task-master-ai` - **Check permissions**: Ensure npm has permission to install packages - **Verify installation**: Type `help` in chat to see available commands - **Check project initialization**: Run `Initialize taskmaster-ai in my project` - **Review logs**: Check Cursor's developer console for error messages ## 💡 Pro Tips **Use project-specific configs** for different API keys per project, especially when working with team projects that have shared API limits. **Enable research mode** with a Perplexity API key to get AI-powered task suggestions based on the latest best practices. **Set up keyboard shortcuts** in Cursor for common Task Master commands like "What's next?" or "Show task status". ---

Ready to go!

You're all set with Cursor! Head over to our PRD guide to create your first project.