Taskflow MCP
Automates Notion task workflows with AI-powered tag processing, enabling Claude to interrogate, expand, critique, rewrite, and implement tasks through intelligent tag-based commands.
README
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 (with Automatic Actions)
- interrogate - Claude asks clarifying questions ā Saves as comment
- expand - Adds technical detail, APIs, edge cases ā Saves as comment
- rewrite - Rewrites task for clarity ā Updates task description
- estimate - Estimates effort and refactoring ā Saves as comment
- critique - Provides constructive feedback ā Saves as comment
- user stories - Generates user stories ā Appends to description
- to-do - Adds to todo list ā No code written
- code - Actually implements the feature (WRITES CODE)
- confirm - Verifies implementation complete ā Saves verification as comment
š Quick Start
1. Install
git clone https://github.com/themightyboosh/taskflow-mcp.git
cd taskflow-mcp
pnpm install
2. Configure
Create .env file in your project directory:
NOTION_TOKEN=ntn_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
NOTION_DATABASE_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Get your Notion token: https://www.notion.so/my-integrations
3. Setup Claude Code
Add to your .mcp.json (or Claude Code config):
{
"mcpServers": {
"taskflow-mcp": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/taskflow-mcp/packages/mcp/index.js"]
}
}
}
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:
Show me notion://tasks/ready
Via Tools:
Process all my Notion tasks
Via Prompts:
Interrogate task [task-id]
š Documentation
- SETUP.md - Detailed setup guide
- MCP_CAPABILITIES.md - Full MCP capability reference
šļø Architecture
taskflow-mcp/
āāā packages/mcp/
ā āāā index.js # Main MCP server
ā āāā notion-client.js # Notion API wrapper
ā āāā utils/
ā ā āāā config-loader.js # Per-project .env loading
ā ā āāā tag-manager.js # Tag priority & processing
ā ā āāā image-downloader.js # Image download for vision
āāā .env.example
āāā .mcp.json.example
āāā README.md
šØ 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:
- interrogate ā Claude asks questions about auth method, session management ā Saves as comment
- expand ā Adds technical detail (JWT vs session, password requirements) ā Saves as comment
- user stories ā Generates user stories for different auth scenarios ā Appends to task description
- All three tags removed after processing
- All actions performed automatically - no manual intervention needed
Example 2: Expert Review
Notion Task: "Implement payment processing"
MCP Tags: think like a security engineer, critique, expand
What happens:
- think like ā Sets persona: "security engineer"
- critique ā Critiques from security perspective (PCI compliance, data protection) ā Saves as comment
- expand ā Expands with security-focused technical details ā Saves as comment
- All tags removed
- All comments automatically added to Notion task
Example 3: Full Implementation
Notion Task: "Add dark mode toggle"
MCP Tags: interrogate, expand, code
What happens:
- interrogate ā Claude asks about implementation approach, storage ā Saves as comment
- expand ā Adds technical detail (CSS variables, localStorage, toggle component) ā Saves as comment
- code ā Reviews requirements ā WRITES THE ACTUAL CODE (creates files, edits components, etc.)
- All tags removed after processing
- Feature is fully implemented - not just analyzed
š§ MCP Capabilities
Tools (4)
| Tool | Description |
|---|---|
process_tasks |
Process all tasks with MCP tags |
query_tasks |
Query tasks by status or MCP tags |
add_comment |
Add comment to Notion task |
update_task |
Update task properties |
Resources (3)
| Resource | Description |
|---|---|
notion://tasks/ready |
Ready tasks with MCP tags |
notion://tasks/in-progress |
In Progress tasks with MCP tags |
notion://tasks/with-mcp-tags |
All tasks with MCP tags |
Prompts (6)
| Prompt | Description |
|---|---|
interrogate_task |
Ask clarifying questions |
expand_task |
Add technical detail |
critique_task |
Provide constructive feedback |
generate_user_stories |
Generate user stories |
rewrite_task |
Rewrite for clarity |
prepare_for_coding |
Analyze and implement |
See MCP_CAPABILITIES.md for full details.
š ļø Development
# Install dependencies
pnpm install
# Start MCP server (for testing)
pnpm start
# Development mode (auto-reload)
pnpm dev
š Troubleshooting
"No .env file found"
- taskflow-mcp requires per-project
.envfile - Run 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 correct - Ensure 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 install- Create a branch:
git checkout -b feat/my-feature - Make changes and test
- Commit:
git commit -m "feat: add my feature" - Push:
git push origin feat/my-feature - Open 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.