Google Tasks MCP Server
Provides tools for managing Google Tasks task lists and tasks, including creating, listing, retrieving, updating, deleting, completing, and uncompleting tasks and task lists.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Google Tasks MCP Server
A Model Context Protocol (MCP) server that provides Google Tasks integration for AI assistants. The MCP server is created from a FastAPI backend using FastMCP.from_fastapi(), automatically generating MCP tools from FastAPI routes.
Architecture
AI Assistant → MCP Server (from FastAPI) → Google Tasks APIRelated MCP server: google-tasks-mcp
Features
Task List Management
List all task lists
Create new task lists
Get task list details
Update task list titles
Delete task lists
Task Management
List tasks in a task list
Create new tasks
Get task details
Update tasks (title, notes, due date, status)
Delete tasks
Mark tasks as completed/incomplete
Setup
1. Google API Credentials
Create a tokens.json file in the fastapi_backend/ directory with your OAuth tokens:
{
"refresh_token": "your_refresh_token",
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"token_uri": "https://oauth2.googleapis.com/token"
}The system will automatically use these tokens to authenticate with Google Tasks API. No additional credentials.json file is needed.
2. Install Dependencies
Install all dependencies from the root directory:
pip install -r requirements.txt3. Run the MCP Server
The MCP server now includes the FastAPI backend, so you only need to run one service:
cd mcp_server
python server.pyThe first time you run this, it will open a browser for Google OAuth authentication. Complete the authentication flow and the tokens will be saved.
Note: The FastAPI backend is now embedded within the MCP server and accessible at /api/* endpoints.
Configuration
Environment Variables
You can configure the following environment variables:
FASTAPI_URL: URL of the FastAPI backend (default:http://localhost:8000)GOOGLE_CREDENTIALS_PATH: Path to Google credentials.json file (default:credentials.json)GOOGLE_TOKEN_PATH: Path to save Google OAuth tokens (default:tokens.json)
MCP Configuration
Add the following to your MCP settings file (e.g., cline_mcp_settings.json):
{
"mcpServers": {
"google-tasks": {
"command": "python",
"args": ["/path/to/google_tasks_mcp/mcp_server/server.py"],
"env": {
"FASTAPI_URL": "http://localhost:8000",
"GOOGLE_TOKEN_PATH": "/path/to/google_tasks_mcp/fastapi_backend/tokens.json"
}
}
}
}Important: Update the paths in the configuration to match your actual file locations. The GOOGLE_TOKEN_PATH should point to your tokens.json file.
Available Tools
Task List Tools
list_task_lists()- List all task listscreate_task_list(title)- Create a new task listget_task_list(tasklist_id)- Get task list detailsupdate_task_list(tasklist_id, title)- Update task list titledelete_task_list(tasklist_id)- Delete a task list
Task Tools
list_tasks(tasklist_id)- List tasks in a task listcreate_task(tasklist_id, title, notes?, due?)- Create a new taskget_task(tasklist_id, task_id)- Get task detailsupdate_task(tasklist_id, task_id, title?, notes?, due?, status?)- Update a taskdelete_task(tasklist_id, task_id)- Delete a taskcomplete_task(tasklist_id, task_id)- Mark task as completeduncomplete_task(tasklist_id, task_id)- Mark task as needs action
API Endpoints
The FastAPI backend provides the following REST endpoints:
Task Lists
GET /tasklists- List all task listsPOST /tasklists- Create a task listGET /tasklists/{id}- Get task list detailsPUT /tasklists/{id}- Update task listDELETE /tasklists/{id}- Delete task list
Tasks
GET /tasklists/{list_id}/tasks- List tasks in a task listPOST /tasklists/{list_id}/tasks- Create a taskGET /tasklists/{list_id}/tasks/{task_id}- Get task detailsPUT /tasklists/{list_id}/tasks/{task_id}- Update a taskDELETE /tasklists/{list_id}/tasks/{task_id}- Delete a task
Development
Testing the FastAPI Backend
cd fastapi_backend
curl http://localhost:8000/healthTesting the MCP Server
You can test the MCP server using the MCP Inspector or by integrating it with your AI assistant.
Troubleshooting
Authentication Issues
Ensure
tokens.jsoncontains valid OAuth credentials with refresh_token, client_id, and client_secretDelete or update
tokens.jsonif tokens are invalid or expiredCheck that the Google Tasks API is enabled in your Google Cloud project
Connection Issues
Ensure the FastAPI backend is running on the expected port
Check the
FASTAPI_URLenvironment variable in the MCP serverVerify network connectivity between MCP server and FastAPI backend
API Errors
Check the FastAPI logs for detailed error messages
Ensure your Google API quotas are not exceeded
Verify that task list and task IDs are valid
License
This project is licensed under the MIT License - see the LICENSE file for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage Superlist tasks and lists in plain language from any MCP-compatible AI agent.
MCP server for Google Tasks: review, plan and tidy your tasks by asking. Deletes always ask first.
Local-first task manager: create, edit, and complete tasks, projects, and checklists via MCP.
Manage tasks, Focus Zone, notes, projects, and task history from compatible AI assistants.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceIntegrates with Google Tasks to enable searching, listing, creating, updating, and deleting tasks through MCP tools. It provides a comprehensive interface for managing task lists and individual task details via the Google Tasks API.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Google Tasks, including listing, creating, updating, deleting, and completing tasks via the Google Tasks API.53 npm1MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to manage Google Tasks (list, create, complete, delete tasks) through the Model Context Protocol.2MIT
- AlicenseAqualityBmaintenanceEnables AI agents to read and manage a user's Google Tasks, including creating, editing, completing, moving, and deleting tasks and task lists via the Google Tasks API.14MIT