Google Tasks MCP 服务器
用于管理 Google Tasks 的模型上下文协议 (MCP) 服务器。
这款基于 TypeScript 的 MCP 服务器通过与 Google Tasks API 集成,演示了 MCP 的核心概念。它允许以结构化且高效的方式管理任务。
特征
资源
默认任务列表:通过 URI
tasks://default访问默认 Google 任务列表中的任务。任务详情:提供有关任务的元数据,例如标题、注释和完成状态。
JSON Mime 类型:任务以机器可读的 JSON 格式表示。
工具
create_task:在默认任务列表中创建新任务。参数:
title(字符串,可选):任务的标题。notes(字符串,可选):任务的附加注释。taskId(字符串,可选):任务的唯一 ID。status(字符串,可选):任务的状态(例如“needsAction”或“completed”)。
响应:返回已创建任务的详细信息。
list_tasks:列出默认任务列表中的所有任务。参数:无。
响应:返回默认任务列表中所有任务的 JSON 数组。
delete_task:从默认任务列表中删除一项任务。参数:
taskId(字符串,必需):要删除的任务的 ID。
响应:确认成功删除任务。
update_task:更新默认任务列表中的现有任务。参数:
taskId(字符串,必需):要更新的任务的 ID。title(字符串,可选):任务的新标题。notes(字符串,可选):任务的新注释。
响应:返回任务的更新详情。
complete_task:切换任务的完成状态。参数:
taskId(字符串,必需):用于切换完成状态的任务的 ID。
响应:返回更新的任务详细信息,包括新状态。
功能
通过 MCP 轻松与大型语言模型 (LLM) 或其他应用程序集成。
结构化的工具定义使任务管理变得直观且易于访问。
全面支持创建、列出、删除、更新和切换任务的完成状态。
用法
运行服务器
要启动服务器:
可用命令
create_task:使用可选参数创建新任务。{ "title": "Complete project", "notes": "Finalize module 3", "status": "needsAction" }list_tasks:检索默认任务列表中的所有任务。无需任何参数。
返回任务数组。
delete_task:通过 ID 删除任务。{ "taskId": "unique-task-id" }update_task:通过任务 ID 更新任务的标题、注释或其他详细信息。{ "taskId": "unique-task-id", "title": "Updated task title", "notes": "Updated task notes" }complete_task:切换任务的完成状态。{ "taskId": "unique-task-id" }
complete_task的示例响应
完成之前
完成后
调试
由于 MCP 服务器通过 stdio 进行通信,因此调试需要额外的工具。我们建议使用MCP Inspector 。
启动检查器:
检查器将提供一个 URL 来访问浏览器中的调试工具,从而更轻松地测试和调试服务器。
执照
此 MCP 服务器遵循 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
与 Google Tasks API 集成的 TypeScript 模型上下文协议服务器,允许用户创建、列出、更新、删除和切换任务的完成状态。
Related Resources
Related MCP Servers
- Asecurity-licenseAqualityNode.js server implementing Model Context Protocol that enables interaction with TaskWarrior through natural language to view, filter, add, and complete tasks.Last updated -32130MIT License
- -security-license-qualityModel Context Protocol server that provides seamless access to Google Calendar API with asynchronous operation support, enabling efficient calendar management through a standardized interface.Last updated -1
- Asecurity-licenseAqualityA Model Context Protocol server that bridges Claude with Google Tasks, allowing users to manage task lists and tasks directly through Claude interface.Last updated -1523MIT License
- -security-license-qualityA Model Context Protocol server providing comprehensive task management capabilities with support for project organization, task tracking, and automatic PRD parsing into actionable items.Last updated -26MIT License