nworks

Servidor CLI + MCP de NAVER WORKS. 26 herramientas para mensajes, calendario, drive, correo, tareas y tableros.

Documentación

nworks

npm version license npm downloads nworks MCP server

Destacado en awesome-mcp-servers

🇺🇸 English | 🇰🇷 한국어 | 🇯🇵 日本語

nworks demo

Servidor MCP completo para LINE WORKS (NAVER WORKS). CLI + servidor MCP — 36 herramientas que cubren mensajes, calendario, drive, correo, tareas y tableros.

nworks permite que agentes de IA externos (Claude, Cursor) y tu terminal operen LINE WORKS desde fuera — complementario a la IA integrada de LINE WORKS (AiStudio, WORKS AI), no un reemplazo. No oficial y mantenido por la comunidad; no está afiliado con LINE WORKS / NAVER WORKS.

Inicio rápido

npm install -g nworks
nworks login --user
nworks calendar list

¿Es tu primera vez? Primero necesitas una aplicación de Developer Console (Client ID/Secret), una URL de redirección registrada y — para mensajería de bots — aprobación del administrador. Consulta la guía de Onboarding y configuración de administrador.

Así lo usan realmente los agentes de IA

User: Show me today's schedule

Claude → nworks_calendar_list
  → 3 events: Standup (10:00), Lunch meeting (12:00), Code review (15:00)

User: Send a deploy complete message to the team channel

Claude → nworks_message_send
  { "channel": "C001", "text": "v1.2.0 deploy complete" }
  → Message sent

User: Check my unread emails and summarize them

Claude → nworks_mail_list (unread)
  → 3 unread emails
Claude → nworks_mail_read (each)
  → "3 unread: 1) Deploy approval from CTO, 2) Meeting invite for Friday, 3) Weekly report reminder"

Instalación

npx nworks             # Run directly
npm install -g nworks  # Global install

Inicio de sesión

# User OAuth (calendar, drive, mail, tasks, boards)
nworks login --user --scope "calendar calendar.read file file.read mail mail.read task task.read board board.read user.read"

# Bot messaging (Service Account)
nworks login

# Check auth status
nworks whoami

# Logout
nworks logout

nworks login --user solo requiere CLIENT_ID + CLIENT_SECRET. Los valores ya establecidos mediante variables de entorno o configuración existente no se volverán a solicitar.

Developer Console: Para usar User OAuth, registra http://localhost:9876/callback como URL de redirección en la Developer Console.


Integración con agentes de IA (servidor MCP)

Funciona con Claude Desktop, Cursor y otros clientes compatibles con MCP.

Configuración

Inicia sesión primero:

nworks login --user --scope "calendar calendar.read file file.read mail mail.read task task.read board board.read user.read"

Luego agrégalo a tu configuración de MCP (~/.config/claude/claude_desktop_config.json):

{
  "mcpServers": {
    "nworks": {
      "command": "nworks",
      "args": ["mcp"]
    }
  }
}

Un solo inicio de sesión habilita las 36 herramientas. No se necesita configuración adicional de entorno.

Sin inicio de sesión por CLI, un agente de IA puede llamar a nworks_setup → nworks_login_user para autenticarse directamente mediante el navegador. La Client Secret y la ruta de la Private Key deben estar preconfiguradas mediante el campo env de la configuración de MCP o variables de entorno del sistema.

Herramientas MCP (32)

HerramientaDescripciónAutenticación
Configuración / Autenticación
nworks_setupConfigurar credenciales de API (Client ID, etc.). La Client Secret se establece mediante env—
nworks_login_userInicio de sesión OAuth de usuario en el navegador (todos los alcances incluidos)—
nworks_logoutEliminar credenciales y tokens—
nworks_whoamiVerificar estado de autenticación—
nworks_doctorDiagnosticar conexión (autenticación, tokens, estado de la API)—
Mensajes
nworks_message_sendEnviar mensaje a usuario/canalService Account
nworks_message_membersListar miembros del canalService Account
nworks_directory_membersListar miembros de la organizaciónService Account
Calendario
nworks_calendar_listListar eventos de calendarioUser OAuth (calendar.read)
nworks_calendar_createCrear evento de calendarioUser OAuth (calendar + calendar.read)
nworks_calendar_updateActualizar evento de calendarioUser OAuth (calendar + calendar.read)
nworks_calendar_deleteEliminar evento de calendarioUser OAuth (calendar + calendar.read)
Drive
nworks_drive_listListar archivos/carpetas de driveUser OAuth (file.read)
nworks_drive_uploadSubir archivo a driveUser OAuth (file)
nworks_drive_downloadDescargar archivo (se guarda localmente si >5MB)User OAuth (file.read)
nworks_sharedrive_listListar drives compartidosUser OAuth (file.read)
nworks_sharedrive_filesListar archivos/carpetas en un drive compartidoUser OAuth (file.read)
nworks_sharedrive_downloadDescargar archivo de drive compartido (se guarda localmente si >5MB)User OAuth (file.read)
Correo
nworks_mail_sendEnviar correoUser OAuth (mail)
nworks_mail_listListar buzónUser OAuth (mail.read)
nworks_mail_readLeer detalle de correoUser OAuth (mail.read)
nworks_mail_download_attachmentDescargar adjunto de correo (se guarda localmente si >5MB)User OAuth (mail.read)
Tareas
nworks_task_listListar tareasUser OAuth (task.read)
nworks_task_createCrear tareaUser OAuth (task + user.read)
nworks_task_updateActualizar/completar tareaUser OAuth (task + user.read)
nworks_task_deleteEliminar tareaUser OAuth (task + user.read)
Tableros
nworks_board_listListar tablerosUser OAuth (board.read)
nworks_board_postsListar publicaciones de tableroUser OAuth (board.read)
nworks_board_readLeer detalle de publicación de tableroUser OAuth (board.read)
nworks_board_createCrear publicación de tableroUser OAuth (board)
Contactos
nworks_contact_listListar contactosUser OAuth (contact.read)
nworks_contact_getObtener detalle de contactoUser OAuth (contact.read)
nworks_contact_createCrear contactoUser OAuth (contact)
nworks_contact_updateActualizar contactoUser OAuth (contact)
nworks_contact_deleteEliminar contactoUser OAuth (contact)
nworks_contact_list_tagsListar etiquetas de contactoUser OAuth (contact.read)

Ejemplo de uso con agente de IA

User: Schedule a meeting tomorrow at 2pm and notify the team channel

Claude → nworks_calendar_create
  { "summary": "Meeting", "start": "2026-03-15T14:00:00", "end": "2026-03-15T15:00:00" }
  → Event created

Claude → nworks_message_send
  { "channel": "C001", "text": "Meeting scheduled tomorrow at 14:00" }
  → Message sent

User: Check my unread emails and summarize them

Claude → nworks_mail_list (unread)
  → 3 unread emails
Claude → nworks_mail_read (each)
  → "3 unread: 1) Deploy approval from CTO, 2) Meeting invite for Friday, 3) Weekly report reminder"

Uso de CLI

Todos los comandos admiten --json para análisis con pipes/scripts/agentes. message send, mail send y drive upload admiten --dry-run para pruebas sin envío.

Mensajes (API de bot)

# Send text to user
nworks message send --to <userId> --text "Hello"

# Send text to channel
nworks message send --channel <channelId> --text "Announcement"

# Button message
nworks message send --to <userId> --type button --text "PR review request" \
  --actions '[{"type":"message","label":"Approve","postback":"approve"}]'

# List message
nworks message send --to <userId> --type list --text "Today's tasks" \
  --elements '[{"title":"Code review","subtitle":"PR #382"}]'

# List channel members
nworks message members --channel <channelId>

Directorio

nworks directory members   # List organization members

Calendario (User OAuth)

# List today's events
nworks calendar list

# Specify date range
nworks calendar list --from "2026-03-14T00:00:00+09:00" --until "2026-03-14T23:59:59+09:00"

# Create event
nworks calendar create --title "Meeting" --start "2026-03-14T14:00+09:00" --end "2026-03-14T15:00+09:00"

# With location/description
nworks calendar create --title "Lunch" --start "2026-03-14T12:00+09:00" --end "2026-03-14T13:00+09:00" \
  --location "Conference Room" --description "Quarterly review"

# With attendees + notification
nworks calendar create --title "Team meeting" --start "2026-03-14T10:00+09:00" --end "2026-03-14T11:00+09:00" \
  --attendees "user1@example.com,user2@example.com" --notify

# Update event
nworks calendar update --id <eventId> --title "Updated title"

# Delete event
nworks calendar delete --id <eventId>

Drive (User OAuth)

# List files/folders
nworks drive list

# Upload file
nworks drive upload --file ./report.pdf

# Upload to specific folder
nworks drive upload --file ./report.pdf --folder <folderId>

# Download file
nworks drive download --file-id <fileId>

# Specify output path/name
nworks drive download --file-id <fileId> --out ./downloads --name report.pdf

# List shared drives
nworks drive sharedrive-list

# List files in a shared drive (root)
nworks drive sharedrive-files --sharedrive <sharedriveId>

# List files in a shared drive folder
nworks drive sharedrive-files --sharedrive <sharedriveId> --folder <fileId>

# Download a shared drive file
nworks drive sharedrive-download --sharedrive <sharedriveId> --file-id <fileId>

Correo (User OAuth)

# Send mail
nworks mail send --to "user@example.com" --subject "Subject" --body "Body"

# With CC/BCC
nworks mail send --to "user@example.com" --cc "cc@example.com" --subject "Subject" --body "Body"

# List inbox
nworks mail list

# Unread only
nworks mail list --unread

# Read mail detail
nworks mail read --id <mailId>

# Download a mail attachment
nworks mail download-attachment --id <mailId> --attachment-id <attachmentId>

# Specify output path/name
nworks mail download-attachment --id <mailId> --attachment-id <attachmentId> --out ./downloads --name invoice.pdf

Tareas (User OAuth)

# List tasks
nworks task list

# Incomplete only
nworks task list --status TODO

# Create task
nworks task create --title "Code review" --body "Review PR #382"

# With due date
nworks task create --title "Deploy" --due 2026-03-20

# Mark as done
nworks task update --id <taskId> --status done

# Delete task
nworks task delete --id <taskId>

Tableros (User OAuth)

# List boards
nworks board list

# List posts
nworks board posts --board <boardId>

# Read post detail
nworks board read --board <boardId> --post <postId>

# Create post
nworks board create --board <boardId> --title "Announcement" --body "Content"

# With notification + disable comments
nworks board create --board <boardId> --title "Notice" --body "Content" --notify --no-comment

Contactos (User OAuth)

# List contacts
nworks contact list

# Filter by tag
nworks contact list --tag <contactTagId>

# Get contact detail
nworks contact get --id <contactId>

# Create contact
nworks contact create --payload '{"contactName":{"lastName":"Kim","firstName":"Chulsoo"},"emails":[{"email":"chulsoo@example.com","primary":true}],"permission":{"accessibleRange":"MEMBER","isCoEditing":false,"accessibleMembers":[{"id":"<yourUserId>","type":"USER"}]}}'

# Update contact
nworks contact update --id <contactId> --payload '{"telephones":[{"type":"CELLPHONE","telephone":"010-1234-5678","primary":true}]}'

# Delete contact
nworks contact delete --id <contactId>

# List contact tags
nworks contact list-tags

contact create requiere contactName y permission; permission.accessibleMembers debe listar al menos un miembro (normalmente tú mismo). Obtén tu propio ID de usuario desde nworks whoami.

Notificación de despliegue CI/CD

# Notify team channel after deployment in GitHub Actions
nworks message send --channel $CHANNEL_ID --text "v${VERSION} deployed"

Script de automatización de equipo

# Send daily standup reminder to all members
for userId in $(nworks directory members --json | jq -r '.users[].userId'); do
  nworks message send --to "$userId" --text "Standup at 10:00 today"
done

Alcances de OAuth

Agrega los alcances requeridos en la LINE WORKS Developer Console.

AlcancePropósitoAutenticaciónRequerido para
botMensajería de botService Accountmessage send
bot.readLectura de canal/miembros de botService Accountmessage members
calendarEscritura de calendarioUser OAuthcalendar create/update/delete (requiere calendar.read)
calendar.readLectura de calendarioUser OAuthcalendar list, también necesario para escritura de calendario
fileLectura/escritura de driveUser OAuthdrive list/upload/download
file.readDrive solo lecturaUser OAuthdrive list/download
mailLectura/escritura de correoUser OAuthmail send/list/read
mail.readCorreo solo lecturaUser OAuthmail list/read
taskLectura/escritura de tareasUser OAuthtask create/update/delete (requiere user.read)
task.readTareas solo lecturaUser OAuthtask list
user.readLectura de información de usuarioService Account / User OAuthdirectory members, también necesario para escritura de tareas
boardLectura/escritura de tablerosUser OAuthboard list/posts/read/create
board.readTableros solo lecturaUser OAuthboard list/posts/read
contactLectura/escritura de contactosUser OAuthcontact create/update/delete (requiere contact.read)
contact.readContactos solo lecturaUser OAuthcontact list/get/list-tags

Los ajustes preestablecidos son más simples que listar alcances:

nworks login --user --preset all       # predeterminado: funcionalidad completa en un solo inicio de sesión
nworks login --user --preset readonly  # alcances de solo lectura

default es un alias de all. El envío de mensajes usa la Service Account (bot), por lo que funciona independientemente del ajuste preestablecido. Volver a iniciar sesión nunca reduce el acceso — los alcances recién solicitados se fusionan con el token existente, por lo que cambiar de ajuste preestablecido solo agrega capacidad. Para un conjunto seleccionado manualmente usa --scope "calendar calendar.read".


Variables de entorno

Establece variables de entorno para usar nworks sin nworks login (útil para CI/agentes).

# Required
NWORKS_CLIENT_ID=
NWORKS_CLIENT_SECRET=

# Bot messaging only (not needed for User OAuth)
NWORKS_SERVICE_ACCOUNT=
NWORKS_PRIVATE_KEY_PATH=
NWORKS_BOT_ID=

# Optional
NWORKS_DOMAIN_ID=
NWORKS_SCOPE=              # default: bot bot.read user.read
NWORKS_VERBOSE=1           # debug logging

Servidor MCP con variables de entorno

Los valores sensibles (Client Secret, ruta de Private Key) deben establecerse mediante el campo env de la configuración de MCP. Los valores no sensibles como Client ID pueden configurarse mediante el agente de IA a través de la herramienta nworks_setup.

{
  "mcpServers": {
    "nworks": {
      "command": "npx",
      "args": ["-y", "nworks", "mcp"],
      "env": {
        "NWORKS_CLIENT_SECRET": "<Client Secret>",
        "NWORKS_PRIVATE_KEY_PATH": "<Private Key file absolute path (for Service Account)>"
      }
    }
  }
}

Licencia

Apache-2.0