Google Tasks MCP Server

Google Tasks MCP Server

为Claude提供的谷歌任务模型上下文协议服务器。

简介

这是一个与 Google Tasks 集成的 MCP 服务器,允许您列出、搜索、创建、更新和删除任务。

smithery 徽章

设置步骤

1. 准备 Google Cloud 设置

  1. 创建 Google Cloud 项目
  2. 启用 Google Tasks API
  3. 配置 OAuth 同意屏幕(选择"内部")
  4. 添加作用域 https://www.googleapis.com/auth/tasks
  5. 创建 OAuth 客户端 ID(选择"桌面应用")
  6. 下载密钥文件并重命名为 gcp-oauth.keys.json,放置在仓库根目录

2. 安装

通过 Smithery 安装(推荐)

npx -y @smithery/cli install @zcaceres/gtasks --client claude

手动安装

  1. 构建服务器: npm run build
  2. 认证: npm run start auth(将在浏览器中打开认证流程)

3. 与桌面应用集成

在应用程序的服务器配置中添加:

{
  "mcpServers": {
    "gtasks": {
      "command": "/opt/homebrew/bin/node",
      "args": [
        "{ABSOLUTE PATH TO FILE HERE}/dist/index.js"
      ]
    }
  }
}

功能

服务器提供以下工具:

工具描述主要输入参数
search搜索任务query (字符串)
list列出所有任务cursor (字符串,可选)
create创建新任务title (必填), notes, due
update更新现有任务id, uri (必填), title, notes, status, due
delete删除任务taskListId, id (必填)
clear清除已完成任务taskListId (必填)

资源

服务器提供访问 Tasks 资源 (gtasks:///<task_id>),表示 Google Tasks 中的单个任务。


有关详细信息,请访问 Smithery 页面