google-tasks-mcp-server
google-tasks-mcp-server
Google Tasks を操作する MCP サーバー(stdio)。タスクリストとタスクの CRUD、完了トグル、並べ替え・移動、完了タスクの一括非表示を提供する。
Google 公式の Workspace MCP サーバー群(Gmail / Calendar / Drive など)には Tasks が含まれていないため、その穴を埋める目的で作った。
設計方針
認証情報はファイルで渡す。 GCP からダウンロードした
client_secret_*.jsonのパスを環境変数で指定する。MCP の設定ファイルに Client Secret を平文で書かずに済む初回認証は独立した CLI で行う。 MCP サーバーは stdout を JSON-RPC で占有しているため、ブラウザ起動やログが混ざるとプロトコルが壊れる。認証を
npm run authに切り出すことで衝突を避け、失敗時の切り分けも容易にしたスコープは Tasks のみ。
https://www.googleapis.com/auth/tasksだけを要求する更新は
patch。updateは未指定フィールドを消してしまうため、部分更新には常にpatchを使う
Related MCP server: Mini Task MCP Server
セットアップ
1. GCP の準備
APIs & Services → Library で Google Tasks API を有効化する
Credentials で OAuth 2.0 クライアント ID を作成する。アプリケーションの種類は デスクトップアプリ
デスクトップアプリ型は任意のループバックポートをリダイレクト先にできるため、リダイレクト URI の登録は不要
JSON をダウンロードする(
client_secret_xxx.json)OAuth 同意画面が「テスト」ステータスの場合、自分の Google アカウントをテストユーザーに追加する
2. ビルド
npm install
npm run build3. 初回認証
client_secret_*.json のパスを指定して認証する。ブラウザが開くので同意する。
GOOGLE_TASKS_CLIENT_SECRET_PATH=~/path/to/client_secret_xxx.json npm run authトークンは ~/.config/google-tasks-mcp-server/token.json に権限 0600 で保存される。以降はリフレッシュトークンで自動更新されるため、この作業は初回のみ。
4. MCP クライアントに登録
Claude Code の場合:
claude mcp add google-tasks \
-e GOOGLE_TASKS_CLIENT_SECRET_PATH=$HOME/path/to/client_secret_xxx.json \
-- node /absolute/path/to/google-tasks-mcp-server/dist/index.js.mcp.json に直接書く場合:
{
"mcpServers": {
"google-tasks": {
"command": "node",
"args": ["/absolute/path/to/google-tasks-mcp-server/dist/index.js"],
"env": {
"GOOGLE_TASKS_CLIENT_SECRET_PATH": "/absolute/path/to/client_secret_xxx.json"
}
}
}
}環境変数
変数 | 必須 | 既定値 | 説明 |
| ○ | — | GCP からダウンロードした |
|
| 認証トークンの保存先 |
ツール
tasklist は省略時 @default(既定のタスクリスト)を使う。
タスクリスト
ツール | 説明 |
| タスクリストを一覧する。他ツールに渡す ID はここで得る |
| タスクリスト 1 件を取得する |
| タスクリストを作成する |
| タスクリスト名を変更する |
| タスクリストを削除する(中のタスクも消える) |
タスク
ツール | 説明 |
| タスクを一覧する。期限・更新日時での絞り込みに対応 |
| タスク 1 件を取得する |
| タスクを作成する。 |
| タスクを部分更新する(指定した項目のみ変更) |
| 完了・未完了を切り替える |
| 並べ替え、サブタスク化、別リストへの移動 |
| タスクを削除する |
| 完了済みタスクを一括で非表示にする |
仕様上の注意
期限に時刻は保存されない。
dueは RFC 3339 で渡すが、Google Tasks は日付部分のみ保持する完了タスクの取得には
showHiddenが要る。showCompleted: trueだけでは他クライアントで完了したタスクが返らないため、本サーバーはshowCompleted: trueのときshowHiddenを自動で補うclear-completed-tasksは削除ではない。 非表示になるだけで、showHidden: trueで取得できる期限フィルタは「指定日を含む」に補正している。 Google Tasks API の
dueMaxは日付単位で排他的で、当日 23:59:59 を渡しても当日期限のタスクが 1 件も返らない(翌日 0 時を渡す必要がある)。直感に反するため、本サーバーはdueMin/dueMaxを日付境界に正規化し、どちらも指定日を含む挙動に揃えている
開発
npm run typecheck # 型チェックのみ
npm run build # dist/ に出力
npm run auth # 初回認証ライセンス
MIT
セットアップスクリプト
GCP コンソールでの操作(Tasks API の有効化、デスクトップアプリ型 OAuth クライアントの作成と JSON のダウンロード)を済ませたあと、残りをまとめて実行できる。
./scripts/setup.sh~/Downloads から client_secret*.json を自動的に探し、種別を検証したうえで ~/.config/google-tasks-mcp-server/ に権限 600 で配置し、ビルド・初回認証・MCP サーバー登録まで行う。ファイルが別の場所にある場合はパスを渡す。
./scripts/setup.sh /path/to/client_secret.jsonMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceIntegrates 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
- FlicenseBqualityCmaintenanceEnables task management via MCP tools for creating, listing, updating, completing, and deleting tasks with JSON file storage.6
- AlicenseNot gradedqualityCmaintenanceEnables managing Google Tasks through natural language, including listing, creating, completing, deleting, and updating tasks.251MIT
- AlicenseNot gradedqualityBmaintenanceProvides an MCP interface to Google Tasks, enabling reading, creating, updating, and completing tasks and task lists, with support for date filtering to generate weekly reports.25MIT
Related MCP Connectors
Tailscale device, route, DNS, key, user, and ACL management over MCP and CLI.
Project management MCP for AI agents with safe task reads and writes.
ClickUp MCP — wraps the ClickUp REST API v2 (BYO API key)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kouta-i5/google-tasks-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server