Automates Notion task workflows with AI-powered tag processing, enabling intelligent task interrogation, expansion, critique, rewriting, and implementation through MCP tags in Notion databases.
taskflow-mcp
AI-powered Notion task workflow automation for Claude Code
taskflow-mcp is a Model Context Protocol (MCP) server that automates Notion task workflows with AI-powered tag processing. Simply add MCP tags to your Notion tasks, and Claude Code will intelligently interrogate, expand, critique, rewrite, and even implement them.
šÆ Features
Full MCP Implementation
4 Tools - Direct task processing, querying, and updates
3 Resources - Quick access to Ready, In Progress, and all tagged tasks
6 Prompts - AI-powered workflows (interrogate, expand, critique, user stories, rewrite, prepare for coding)
Sampling - LLM-powered analysis integrated via prompts
Intelligent Tag Processing
Priority-based - Tags processed in optimal order automatically
Persona support - "think like X" tags add expert context to all analysis
Automatic tag removal - Tags cleared after successful processing
Dry-run mode - Preview what would happen without making changes
AI-Powered Workflows
interrogate - Claude asks clarifying questions about requirements
expand - Adds technical detail, APIs, edge cases, testing approach
rewrite - Rewrites task for maximum clarity
critique - Provides constructive feedback (with optional persona)
user stories - Generates user stories from task requirements
to-do - Adds to todo list without implementing
code - Analyzes task and automatically starts implementation
š Quick Start
1. Install
2. Configure
Create .env file in your project directory:
Get your Notion token: https://www.notion.so/my-integrations
3. Setup Claude Code
Add to your .mcp.json (or Claude Code config):
4. Add MCP Tags in Notion
Add a multi-select property called "MCP" to your Notion database, then tag tasks with:
think like [persona] - e.g., "think like a security engineer"
interrogate - Claude asks clarifying questions
expand - Add technical detail
rewrite - Rewrite for clarity
critique - Get constructive feedback
user stories - Generate user stories
to-do - Add to todo list only
code - Implement the task automatically
5. Use in Claude Code
Via Resources:
Via Tools:
Via Prompts:
š Documentation
SETUP.md - Detailed setup guide
MCP_CAPABILITIES.md - Full MCP capability reference
šļø Architecture
šØ Tag Processing Order
Tags are processed in this priority order:
think like [X] - Sets persona context for all subsequent processing
interrogate - Asks clarifying questions
rewrite - Rewrites description for clarity
estimate - Estimates level of effort and refactoring needs
expand - Adds technical detail
critique - Provides feedback (with persona if set)
user stories - Generates user stories (appended to task description)
to-do - Adds to todo list (no implementation)
code - Triggers implementation (ONLY tag that writes code)
confirm - Verifies implementation is complete
Each tag is removed after successful processing.
š” Usage Examples
Example 1: Requirements Gathering
Notion Task: "Add user authentication"
MCP Tags: interrogate, expand, user stories
What happens:
Claude asks questions about auth method, session management, etc.
Adds technical detail (JWT vs session, password requirements)
Generates user stories for different auth scenarios
All three tags removed after processing
Example 2: Expert Review
Notion Task: "Implement payment processing"
MCP Tags: think like a security engineer, critique, expand
What happens:
Sets persona: "security engineer"
Critiques task from security perspective (PCI compliance, data protection)
Expands with security-focused technical details
All tags removed
Example 3: Full Implementation
Notion Task: "Add dark mode toggle"
MCP Tags: interrogate, expand, code
What happens:
Claude asks about implementation approach, storage, etc.
Adds technical detail (CSS variables, localStorage, toggle component)
Reviews requirements and starts implementing
All tags removed (implementation continues)
š§ MCP Capabilities
Tools (4)
Tool | Description |
| Process all tasks with MCP tags |
| Query tasks by status or MCP tags |
| Add comment to Notion task |
| Update task properties |
Resources (3)
Resource | Description |
| Ready tasks with MCP tags |
| In Progress tasks with MCP tags |
| All tasks with MCP tags |
Prompts (6)
Prompt | Description |
| Ask clarifying questions |
| Add technical detail |
| Provide constructive feedback |
| Generate user stories |
| Rewrite for clarity |
| Analyze and implement |
See MCP_CAPABILITIES.md for full details.
š ļø Development
š Troubleshooting
"No .env file found"
taskflow-mcp requires per-project
.envfileRun from directory containing
.envwithNOTION_TOKENandNOTION_DATABASE_ID
"Property MCP does not exist"
Add a multi-select property called "MCP" to your Notion database
Configure your Notion integration to have access to the database
MCP server not connecting
Verify absolute path in
.mcp.jsonis correctEnsure Node.js 20+ is installed
Check Notion token is valid
Restart Claude Code after config changes
š Requirements
Node.js 20+
pnpm 10+ (or npm)
Notion integration with database access
Claude Code with MCP support
š¤ Contributing
Contributions welcome! Please open an issue or PR.
Development Setup
Fork and clone
pnpm installCreate a branch:
git checkout -b feat/my-featureMake changes and test
Commit:
git commit -m "feat: add my feature"Push:
git push origin feat/my-featureOpen a PR
š§ Support
Issues: GitHub Issues
Discussions: GitHub Discussions
š License
MIT Ā© Monumental
šÆ Roadmap
Multiple database support
Custom tag definitions via config
Background polling mode (watch for new tags)
Webhook support for real-time processing
Analytics dashboard
Slack/Discord notifications
Task templates
Batch operations
Made with ā¤ļø by Monumental