MCP Integration
Connect AI tools to Task Genius via Model Context Protocol
MCP Integration
Task Genius includes a built-in MCP (Model Context Protocol) server that allows AI tools and applications to interact with your task data. This enables powerful automation and AI-assisted task management workflows.
What is MCP?
Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect to external data sources and tools. With Task Genius's MCP integration, you can:
- Query and search tasks with advanced filters
- Create new tasks with full metadata support
- Update task status and properties
- Delete tasks
- Batch operations for efficiency
- Access task statistics and insights
Getting Started
Prerequisites
- Task Genius must be running on desktop (MCP is not available on mobile)
- The AI tool you're using must support MCP connections
Quick Setup
Step 1: Enable MCP Server
- Open Obsidian Settings
- Navigate to Task Genius → MCP Integration
- Toggle Enable MCP Server to ON
- Review and accept the security warning
Step 2: Configure Security
The MCP server uses token-based authentication to secure your data:
- Authentication Token: Generated automatically when you enable MCP
- Host: Default is
127.0.0.1(local only). Use0.0.0.0for network access - Port: Default is
7777
Keep your authentication token secure! Anyone with this token can access and modify your tasks.
Step 3: Connect Your AI Tool
Task Genius supports multiple AI applications:
Supported Clients
Cursor
Cursor supports one-click installation via deeplink:
Or add manually to your Cursor settings:
{
"mcpServers": {
"your-vault-tasks": {
"url": "http://127.0.0.1:7777/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN+YOUR_APP_ID"
}
}
}
}Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"your-vault-tasks": {
"command": "curl",
"args": [
"-X", "POST",
"-H", "Authorization: Bearer YOUR_TOKEN+YOUR_APP_ID",
"-H", "Content-Type: application/json",
"--data-raw", "@-",
"http://127.0.0.1:7777/mcp"
]
}
}
}Claude Code
Install via command line:
claude mcp add --transport http your-vault-tasks http://127.0.0.1:7777/mcp \
--header "Authorization: Bearer YOUR_TOKEN+YOUR_APP_ID"VS Code
Add to your VS Code settings:
{
"mcp": {
"servers": {
"your-vault-tasks": {
"type": "http",
"url": "http://127.0.0.1:7777/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN+YOUR_APP_ID"
}
}
}
}
}Windsurf
Add to your Windsurf configuration:
{
"mcpServers": {
"your-vault-tasks": {
"serverUrl": "http://127.0.0.1:7777/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN+YOUR_APP_ID"
}
}
}
}Zed
Add to your Zed settings:
{
"context_servers": {
"your-vault-tasks": {
"command": {
"path": "curl",
"args": [
"-X", "POST",
"-H", "Authorization: Bearer YOUR_TOKEN+YOUR_APP_ID",
"-H", "Content-Type: application/json",
"--data-raw", "@-",
"http://127.0.0.1:7777/mcp"
]
},
"settings": {}
}
}
}Available Tools
The MCP server provides a comprehensive set of tools for task management:
Query Tools
- query_tasks: Advanced task search with filters
- query_project_tasks: Get all tasks for a project
- query_context_tasks: Get all tasks for a context
- query_by_priority: Filter tasks by priority level
- query_by_due_date: Find tasks within date ranges
- search_tasks: Full-text search across tasks
Create Tools
- create_task: Create a single task with metadata
- create_task_in_daily_note: Add task to today's note
- add_project_quick_capture: Quick capture with project tag
- batch_create_tasks: Create multiple tasks at once
- batch_create_subtasks: Add subtasks to existing task
Update Tools
- update_task: Modify task properties
- update_task_status: Change completion status
- batch_update_task_status: Update multiple statuses
- batch_update_text: Find and replace in tasks
- postpone_tasks: Reschedule task due dates
List Tools
- list_tasks_for_period: Get tasks for day/month/year
- list_tasks_in_range: Get tasks between dates
- list_all_metadata: Get all tags, projects, contexts
Delete Tools
- delete_task: Remove a task by ID
Authentication
Task Genius supports two authentication methods:
Method B: Combined Bearer (Recommended)
Single header with token and app ID combined:
Authorization: Bearer YOUR_TOKEN+YOUR_APP_IDMethod A: Custom Headers
Separate headers for token and app ID:
Authorization: Bearer YOUR_TOKEN
mcp-app-id: YOUR_APP_IDAPI Examples
Initialize Session
curl -X POST http://127.0.0.1:7777/mcp \
-H "Authorization: Bearer YOUR_TOKEN+YOUR_APP_ID" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize"}'Query Tasks
curl -X POST http://127.0.0.1:7777/mcp \
-H "Authorization: Bearer YOUR_TOKEN+YOUR_APP_ID" \
-H "mcp-session-id: SESSION_ID" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "query_tasks",
"arguments": {
"filter": {
"completed": false,
"priority": 5
},
"limit": 10
}
}
}'Create Task
curl -X POST http://127.0.0.1:7777/mcp \
-H "Authorization: Bearer YOUR_TOKEN+YOUR_APP_ID" \
-H "mcp-session-id: SESSION_ID" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "create_task",
"arguments": {
"content": "Review quarterly goals",
"dueDate": "2025-08-31",
"priority": 4,
"project": "Planning",
"tags": ["review", "quarterly"]
}
}
}'Security Considerations
Important Security Notes:
- The MCP server provides full access to your task data
- Keep your authentication token secret
- Use
127.0.0.1for local-only access - Only use
0.0.0.0if you need network access and understand the risks - Consider firewall rules when exposing the server
Troubleshooting
Server Won't Start
- Check if the port is already in use
- Try using "Use Next Available Port" button
- Restart Obsidian if needed
Authentication Failures
- Verify your token is correct
- Check that app ID is included
- Ensure headers are properly formatted
- Try regenerating the token
Connection Issues
- Verify the server is running
- Check firewall settings
- Ensure correct host and port
- Test with curl command first
Advanced Configuration
Custom Port
If port 7777 is in use, you can change it:
# In settings, change port to 8888
# Then update your client configuration accordinglyNetwork Access
For access from other devices:
- Change host to
0.0.0.0 - Configure firewall rules
- Use your machine's IP address in clients
Network access exposes your data to potential security risks. Only enable if necessary.
Logging
Adjust log level for debugging:
- Error: Only show errors
- Warning: Errors and warnings
- Info: General information (default)
- Debug: Detailed debugging output
Use Cases
AI-Powered Task Management
- "Find all high-priority tasks due this week"
- "Create a task list for my project meeting"
- "Mark all tasks in 'ProjectX' as completed"
- "Generate a weekly review of completed tasks"
Automation Workflows
- Automatically create tasks from emails
- Sync tasks with external systems
- Generate daily task reports
- Bulk update task properties
Integration Examples
- Connect ChatGPT to manage tasks via conversation
- Use Claude to analyze and organize your task backlog
- Build custom scripts to automate recurring workflows
Getting Help
If you encounter issues:
- Check the troubleshooting section
- Review server logs in Obsidian console
- Test with the built-in connection tester
- Report issues on GitHub