worksmobile-mcp
Unofficial MCP server for NAVER WORKS Drive admin tasks, enabling shared-drive governance, permission management, and file operations via service-account delegation.
README
worksmobile-mcp
Unofficial NAVER WORKS (LINE WORKS) Drive admin CLI + MCP server, built on the
Developer API's service-account delegation (JWT delegated_user).
Existing WORKS MCP servers focus on the end-user plane (your own mail/calendar/files via User OAuth). This project covers the admin plane that they don't:
- act as any member of your tenant via delegation (like Google domain-wide delegation)
- shared-drive governance: list drives, inspect
accessibleRange/permissionType, grant/revoke drive- and folder-level permissions, toggle folder inheritance (enable/disable) - share-create ("shared with me" shortcuts), My Drive scaffolding, upload/download, search
- directory audit: account-hygiene rules and reconciliation against an external roster — find ex-employees who still hold live mail/drive access
Not affiliated with NAVER / WORKS MOBILE Corp. "NAVER WORKS", "LINE WORKS" and worksmobile.com are their trademarks/properties. Official API docs: https://developers.worksmobile.com/
Safety design
WORKS Drive permission APIs have sharp edges. This tool encodes them:
- Every mutating operation requires explicit confirmation — CLI:
--yes(non-interactive runs refuse without it); MCP:confirm=trueparameter. Agents are expected to ask the human before setting it. - Bulk permission delete ("all-delete") is not exposed at all — its semantics flipped between WORKS versions (masters-only vs open to everyone).
- Destructive semantics are spelled out in tool docs: drive
accessibleRangePATCH transitions wipe granted permissions; folderenablebreaks inheritance;disabledrops folder grants.
Setup
- In the Developer Console, create an app with
service-account delegation, note Client ID/Secret, create the service account, and
download the private key. Grant OAuth scopes (
file,user.read). - Configure credentials:
pip install worksmobile-mcp # or: uv tool install worksmobile-mcp
mkdir -p ~/.config/worksmobile
cp .env.example ~/.config/worksmobile/.env # then fill in values
Config resolution: process env (WORKS_*) > $WORKS_ENV_FILE > ./.env >
~/.config/worksmobile/.env.
CLI
worksmobile doctor # what credentials/scopes actually work
worksmobile users --dept 연구 # members (joint appointments preserved)
worksmobile find 홍길동 # search by any substring
worksmobile audit --ignore shared-accounts.txt # account-hygiene findings
worksmobile drift roster.tsv --name-col name # reconcile against an external roster
worksmobile drives # list shared drives
worksmobile drive @2001000000xxxxxx # accessibleRange / permissionType
worksmobile ls --sd @2001000000xxxxxx # list files
worksmobile perms @2001000000xxxxxx --folder FID
worksmobile grant @2001000000xxxxxx --target pm@corp.com --type WRITE --folder FID --yes
worksmobile share FID --owner host@corp.com --to pm@corp.com --type WRITE --yes
worksmobile download FID --sd @2001000000xxxxxx -o report.hwp
worksmobile call GET /users/me/drive/files # raw API escape hatch
All read commands accept --user someone@corp.com to act as that member.
MCP server
stdio (local agents — Claude Code, Codex, Cursor, Gemini CLI):
claude mcp add worksmobile -- worksmobile-mcp
{ "mcpServers": { "worksmobile": { "command": "worksmobile-mcp" } } }
Streamable HTTP (remote / chat surfaces):
worksmobile-mcp --transport streamable-http --port 8123
⚠️ The delegated service account can act as any member. If you expose the HTTP transport beyond localhost, put real authentication in front of it, or don't.
Tools
| Tool | Mutating | Description |
|---|---|---|
works_drives_list / works_drive_get |
shared drives & settings | |
works_files_list |
files of a shared drive or a member's My Drive | |
works_perms_list |
drive/folder permissions | |
works_perm_grant / works_perm_revoke |
⚠ | grant / delete one permission |
works_folder_enable / works_folder_disable |
⚠ | folder inheritance gate |
works_file_download / works_file_upload |
storage-redirect download / 2-step upload | |
works_folder_create |
My Drive folder | |
works_share_create / works_share_delete |
⚠ | "shared with me" shortcuts (My Drive only) |
works_sharedfolders_list |
a member's received shares | |
works_search |
drive search | |
works_users_list / works_user_find |
tenant members (needs user.read) |
|
works_directory_audit |
account-hygiene findings + dormant-check report | |
works_directory_drift |
reconcile accounts against an external roster | |
works_api_call |
⚠ | raw API escape hatch |
⚠ = requires confirm=true.
Directory audit: dormant checks
works_directory_audit returns dormant_rules alongside findings. A rule is dormant when
the field it reads is empty across the whole tenant — e.g. if nobody's leaveOfAbsence is
ever set, "on leave but not suspended" can never fire. An empty findings list is not a
clean bill of health, so the tool says which checks were powerless instead of implying
everything passed. coverage shows the fill rate per field.
This matters in practice: on the tenant this was built against, employeeNumber was 0/136
and hiredDate 1/136 — the HR fields simply were not populated, which is exactly the kind
of thing an audit tool must tell you rather than paper over.
API notes (hard-won)
accessibleRangeis 3-valued:TENANT/DOMAIN/MEMBER. New drives default to DOMAIN+WRITE. PATCH transitions are destructive (MEMBER→DOMAIN deletes all grants; →MEMBER fails while folder-level grants exist).- Folder-level permissions accept individual users only (no org units); the target must already be a drive member (undocumented, observed).
- Folder
enable= masters-only until you grant;disable= grants dropped, inheritance back. - share-create works on My Drive folders only — team-drive folders can't produce "shared with me" shortcuts.
- A pure service-account token has no My Drive (403); hosting requires delegation to a real account.
- Upload is 2-step (metadata POST →
uploadUrlPUT); download is a 302 whose storage location also requires the Bearer token. GET /sharedrivesresponds{"sharedrives": [...]}(docs imply a bare array).
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。