Skip to main content
Glama

Tasks MCP is a Model Context Protocol (MCP) server that provides seamless integration with your Notion workspace for task management. It enables AI assistants to create, retrieve, and manage tasks, projects, and courses directly from your Notion databases.

NOTE: Tasks MCP is currently in active development. Features may evolve, and we're continually working to enhance the experience.

Features

With Tasks MCP, you can:

  • Retrieve Tasks: Get pending tasks filtered by time range (today, tomorrow, or this week) with "Not Started" status

  • Create Tasks: Add new tasks with title, due date, priority, and optional project/course associations

  • Manage Projects: Fetch active projects from your Notion workspace for task organization

  • Manage Courses: Access active courses to associate academic tasks

  • Smart Filtering: Automatically filters tasks based on status and time ranges

  • Rich Context: Tasks include associated project and course information for better context

Related MCP server: Obsidian Tasks MCP Server

Available Tools

The MCP server provides four main tools:

get-tasks

Fetches pending tasks from Notion based on time range filtering.

  • Parameters: time_range (required) - One of "today", "tomorrow", or "week_from_today"

  • Returns: List of tasks with title, due date, and associated project/course information

create-task

Creates a new task in your Notion Tasks database.

  • Parameters:

    • title (required) - Task description

    • due_date (required) - ISO date format (YYYY-MM-DD)

    • priority (required) - Integer 1-3 (1=highest, 3=lowest)

    • project_id (optional) - Related project ID

    • course_id (optional) - Related course ID

  • Returns: URL to the created task in Notion

get-projects

Fetches active projects from your Notion workspace.

  • Parameters: None

  • Returns: List of active projects with ID and title

get-courses

Fetches active courses from your Notion workspace.

  • Parameters: None

  • Returns: List of active courses with ID, title, and description

uv run python src/__main__.py

Motivation

Tasks MCP was created to bridge the gap between AI assistants and personal productivity systems. By providing direct access to Notion task databases through the Model Context Protocol, it enables AI assistants to understand your task context and help manage your workflow more effectively.

Technical Overview

Tasks MCP is built using modern Python technologies and follows MCP best practices:

  • MCP Framework: Built on the official MCP Python SDK for reliable protocol compliance

  • Notion Integration: Uses the official Notion API client for robust database interactions

  • Starlette Web Framework: Provides HTTP endpoints with CORS support and authentication

  • Authentication: Bearer token authentication for secure API access

  • Environment Configuration: Flexible configuration through environment variables and .env files

  • Error Handling: Comprehensive error handling with detailed logging

  • Data Source Management: Automatic retrieval of Notion database data source IDs

Setup

  1. Environment Variables:

    API_AUTH_TOKEN=your-api-auth-token
    NOTION_AUTH_TOKEN=your-notion-integration-token
    TASK_DATABASE=your-notion-tasks-database-id
    PROJECT_DATABASE=your-notion-projects-database-id
    COURSE_DATABASE=your-notion-courses-database-id
  2. Installation:

    uv sync
  3. Running:

    uv run python -m src --port 8000

Docker Deployment

Prerequisites

# Login to gcloud
gcloud auth login

# Configure Docker to use gcloud credentials for Artifact Registry
gcloud auth configure-docker us-west1-docker.pkg.dev

Deploy Steps

  1. Build the image (for linux/amd64 since Cloud Run runs on Linux):

    docker buildx build --platform linux/amd64 . -t tasks-mcp
  2. Tag for Artifact Registry:

    docker tag tasks-mcp:latest us-west1-docker.pkg.dev/stanford-mcp/stanford-mcp/tasks-mcp:latest
  3. Push to Artifact Registry:

    docker push us-west1-docker.pkg.dev/stanford-mcp/stanford-mcp/tasks-mcp:latest

MCP Endpoint

The server is deployed and available at: https://tasks-mcp-280200773515.us-west1.run.app/mcp/

For MCP client configuration, use this endpoint with proper authentication headers.

Client Usage

For MCP Inspector

Use these headers when connecting to the MCP server:

{
  "Authorization": "Bearer YJAna9RQePF@-uVw7_qBQt*apMF4*bZZfbTcybLobw*nGKCwteJMGh",
  "Accept": "application/json, text/event-stream"
}

For Claude Desktop

Add this configuration to your Claude Desktop claude_desktop_config.json:

"mcpServers": {
    "stanford-mcp": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://tasks-mcp-280200773515.us-west1.run.app/mcp/",
        "--header", "Authorization: Bearer YJAna9RQePF@-uVw7_qBQt*apMF4*bZZfbTcybLobw*nGKCwteJMGh",
        "--header", "Accept: application/json, text/event-stream"
      ]
    }
  },

Made with 🫶 by @markmusic27

Available Tools

2 tools
create-taskC

Creates a new task in my Notion Tasks database

ParametersJSON Schema
NameRequiredDescriptionDefault
bodyNoOptional body content for additional details, relevant links, notes, or context about the task
titleYesTask description (what needs to be done. Example: 'Complete the project report')
due_dateYesTask due date in ISO format (YYYY-MM-DD or YYYY-MM-DDTHH:MM). Example: '2026-10-25' or '2026-10-25T15:00' to add time.
priorityYesTask priority: 1 (highest) .. 3 (lowest)

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations at all, the description carries the full behavioral burden, yet it only says a task is created in a named database. It says nothing about required permissions, whether the write is reversible, what happens on duplicate titles, or what the call returns. This is a significant gap for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single efficient sentence with the action front-loaded and no filler. It is appropriately sized for what it attempts, though the extreme brevity contributes to the missing behavioral detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a write tool with no annotations and no output schema, the description is too thin: it omits auth requirements, side effects, and return behavior. The rich schema covers inputs, but nothing compensates for the absent behavioral context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all four parameters (title, due_date, priority, body) are already well documented in the schema with formats and examples. The description adds no parameter meaning beyond that, which is the expected baseline when the schema does the work.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Creates a new task') and scopes the target ('my Notion Tasks database'), which is enough to distinguish it from the read-only get-tasks sibling. It is clear and unambiguous, though it does not explicitly name the sibling as a contrast.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no mention of the get-tasks alternative. Usage is only implied by the verb 'Creates'. An agent gets no routing help beyond the obvious create-vs-read distinction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get-tasksC

Fetches tasks from my Notion based on filtering criteria

ParametersJSON Schema
NameRequiredDescriptionDefault
time_rangeYesThe time range to get tasks for. One of 'today', 'tomorrow', or 'week_from_today'

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. 'Fetches' implies a read, but the description says nothing about pagination, result limits, ordering, or what happens when no tasks match the criteria — meaningful gaps for a retrieval tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence, front-loaded with the verb and resource, with no wasted words. It is efficient, though minimal rather than richly structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter tool with full schema coverage and no output schema, the description is minimally adequate. However, with no annotations and no behavioral detail on returns or limits, an agent lacks enough context to anticipate results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single enum parameter is fully documented in the schema, so the baseline is 3. 'filtering criteria' gestures at the time_range parameter but adds no syntax or semantic detail beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a clear verb ('fetches') and resource ('tasks') with the source ('Notion'), which lets an agent distinguish it from the sibling create-task. The qualifier 'based on filtering criteria' is vague, but the core operation is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this versus alternatives — the obvious sibling create-task is never mentioned, nor are any prerequisites or exclusions. The agent must infer usage from the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 2 tool updatesv0.1.0
    • First observedcreate-task
    • First observedget-tasks

TDQS

B3.2/5.0

Scored across 2 tools

Disambiguation5/5

The two tools have clearly distinct purposes: get-tasks retrieves/filters tasks, while create-task creates a new task. There is no overlap or ambiguity in selecting between them.

Naming Consistency4/5

Both names follow a consistent verb-noun hyphenated pattern (get-tasks, create-task). The only minor inconsistency is plural 'tasks' in get-tasks versus singular 'task' in create-task.

Tool Count3/5

Two tools is thin for a task management server, even if the scope is limited to fetching and creating tasks. It is usable but lacks the breadth expected for the domain.

Completeness3/5

The surface covers creating and retrieving tasks, but lacks update, delete, complete, or status-change operations. These are notable gaps for a task management lifecycle.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers