Logo vun LINE Desktop MCP

LINE Desktop MCP

Communautéit
dtwang

透過 MCP(Model Context Protocol),使 AI 工具能夠與 LINE Desktop 整合,並執行訊息的讀取與發送操作。Through the MCP (Model Context Protocol), AI tools can be integrated with LINE Desktop to perform message reading and sending operations.

Editeurdtwang
Repositoryline-desktop-mcp
SproochJavaScript
Forks
56
Stären
116
Disponibel Tools
0
Transporttypstdio, streamable-http
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    LINE Desktop MCP stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    116 Stären an 56 Forks aus dem verlinkte Repository.

LINE Desktop MCP

English | 繁體中文


繁體中文

透過 MCP(Model Context Protocol),使 AI 工具能夠與 LINE Desktop 整合,並執行訊息的讀取與發送操作。

LINE Desktop MCP Demo with Claude Desktop

LINE Desktop MCP Demo with n8n

⚠️ 重要說明

這個專案不是 LINE 官方的 line-bot-mcp-server

如果你要找的是官方版本,請前往:https://github.com/line/line-bot-mcp-server

與官方版本的差異

  • 官方 line-bot-mcp-server:透過 LINE Messaging API 操作 LINE Bot
  • 本專案 line-desktop-mcp:透過 MCP 在 Windows 或 Mac 上直接操作 LINE Desktop 應用程式

重要聲明

  1. 本專案與 LINE 官方無任何關聯
    This project is NOT officially affiliated with LINE.

  2. 無需申請 LINE Developers 或使用 Channel Access Token
    本專案透過已經完成登入的 LINE Desktop 應用程式進行操作,不需要申請開發者帳號或 API Token。

關於專案

LINE Desktop MCP 是一個基於 Model Context Protocol 的整合工具,讓 AI 工具(如 Claude Desktop, n8n ),能夠直接與 LINE Desktop 應用程式互動。透過此專案,您可以:

  • 📖 讀取 LINE 聊天訊息
  • ✉️ 發送 LINE 訊息(手動或自動)
  • 🤖 將 LINE 整合到您的 AI 工作流程中

功能特色

  • 🤖 AI 整合:透過 MCP 協議與 Claude Desktop、 n8n 等 AI 工具無縫整合
  • 💬 訊息操作:支援讀取和發送 LINE 訊息
  • 🖥️ 桌面整合:直接與 LINE Desktop 應用程式互動
  • 🔄 自動化支援:可選擇手動確認或自動發送訊息

系統需求

基本需求

  • LINE Desktop:v9.10 或以上版本
  • 作業系統:
    • Windows 10 或以上版本
    • macOS Ventura 13.0 或以上版本(需要 AppleScript 支援)

與 Claude Desktop 整合

  • Claude Desktop App:最新版本
  • Claude 訂閱方案:Pro 方案

與 n8n 整合

  • n8n:支援 MCP 的版本

安裝方式

Windows

  1. 安裝 Node.js

  2. 安裝 AutoHotkey v2

  3. 設定 Claude Desktop

    • 開啟 Claude Desktop 設定檔
    • 在 mcpServers 中加入以下設定:
json
{
  "mcpServers": {
    "line-desktop-mcp": {
      "command": "npx",
      "args": ["line-desktop-mcp@latest"]
    }
  }
}

macOS

  1. 安裝 Node.js

  2. (選擇性)安裝 cliclick

    • 如果有安裝 Homebrew,會於啟動時自動安裝
    • 或手動安裝:brew install cliclick
  3. 設定 Claude Desktop

    • 開啟 Claude Desktop 設定檔
    • 在 mcpServers 中加入以下設定:
json
{
  "mcpServers": {
    "line-desktop-mcp": {
      "command": "npx",
      "args": ["line-desktop-mcp@latest"]
    }
  }
}

進階設定

Streamable HTTP 模式

除了預設的 stdio 模式外,本專案也支援透過 Streamable HTTP 方式運行。此模式特別適合在 n8n 等支援 MCP 的平台中使用。

啟動 Streamable HTTP 模式:

bash
# 本機使用(僅 localhost)
npx line-desktop-mcp@latest --http-mode --port 3000

# 開放外部連線(需搭配 token)
npx line-desktop-mcp@latest --http-mode --host 0.0.0.0 --port 3000 --token YOUR_SECRET

參數說明:

  • --http-mode:啟用 Streamable HTTP 模式,使用 HTTP streaming 而非 stdio
  • --port <port>:指定 HTTP 伺服器的 port(預設:3000)
  • --host <host>:指定綁定的網路介面(預設:127.0.0.1)
  • --token <secret>:設定 Bearer Token 驗證密鑰。當 --host 設為非 loopback 位址時為必填,以確保安全性

MCP 端點配置:

本機連接:

http://127.0.0.1:3000/mcp

Docker 中的 n8n 連接(同一台機器):

http://host.docker.internal:3000/mcp

傳輸方式:

  • POST 請求:發送 JSON-RPC 訊息並透過 SSE stream 接收回應
  • 支援 session 管理,每個連接會獲得唯一的 session ID

n8n 工作流程範例:

如果您想在 n8n 中使用 LINE Desktop MCP,可以下載我們提供的範例工作流程檔案:

此範例展示如何在 n8n 中整合 LINE Desktop MCP 建立聊天機器人工作流程。

使用方式

在 Claude Desktop 的對話中,您可以使用以下方式操作 LINE:

1. 讀取聊天內容

請幫我讀取 LINE 群組『專案討論』的訊息,並作出總結

2. 發送訊息(手動確認)

請幫我撰寫一個問候,發送到 LINE 群組『專案討論』中

Claude 會先撰寫訊息內容,等待您確認後再發送。

3. 發送訊息(自動送出)

請幫我撰寫一個問候,發送到 LINE 群組『專案討論』中,並自動發送

Claude 會撰寫訊息並自動完成發送動作。

使用注意事項

重要提醒

  1. 避免干擾自動化操作
    本工具透過圖形使用者介面(GUI)進行自動化操作。在自動化程式執行期間,請勿同時使用滑鼠進行其他操作,以免干擾程式運作。

  2. LINE Desktop 視窗配置要求
    請確保 LINE Desktop 使用「展開聊天視窗」模式。在此模式下,聊天視窗會固定顯示在聊天室清單的右側,而非以獨立視窗方式開啟。

  3. 多顯示器環境配置
    若您使用多個顯示器,請將 LINE Desktop 應用程式放置於主要顯示器(第一個顯示器)上,以確保自動化功能正常運作。

授權條款

本專案採用 MIT 授權條款 - 詳見 LICENSE.md 檔案

作者

Geoffrey Wang


English

Integrate AI tools with LINE Desktop through MCP (Model Context Protocol) to enable message reading and sending operations.

LINE Desktop MCP Demo with Claude Desktop

LINE Desktop MCP Demo with n8n

⚠️ Important Notice

This project is NOT the official LINE line-bot-mcp-server

If you're looking for the official version, please visit: https://github.com/line/line-bot-mcp-server

Differences from Official Version

  • Official line-bot-mcp-server: Operates LINE Bot through LINE Messaging API
  • This project line-desktop-mcp: Directly operates LINE Desktop application on Windows or Mac through MCP

Important Disclaimer

  1. This project is NOT officially affiliated with LINE
    本專案與 LINE 官方無任何關聯。

  2. No need to apply for LINE Developers or use Channel Access Token
    This project operates through the already logged-in LINE Desktop application, without requiring developer account registration or API tokens.

About

LINE Desktop MCP is an integration tool based on the Model Context Protocol that allows AI tools (such as Claude Desktop, n8n ) to interact directly with the LINE Desktop application. With this project, you can:

  • 📖 Read LINE chat messages
  • ✉️ Send LINE messages (manual or automatic)
  • 🤖 Integrate LINE into your AI workflows

Features

  • 🤖 AI Integration: Seamlessly integrate with AI tools like Claude Desktop, n8n through the MCP protocol
  • 💬 Message Operations: Support for reading and sending LINE messages
  • 🖥️ Desktop Integration: Direct interaction with the LINE Desktop application
  • 🔄 Automation Support: Choose between manual confirmation or automatic message sending

System Requirements

Basic Requirements

  • LINE Desktop: v9.10 or above
  • Operating System:
    • Windows 10 or above
    • macOS Ventura 13.0 or above (requires AppleScript support)

Integration with Claude Desktop

  • Claude Desktop App: Latest version
  • Claude Subscription: Pro plan

Integration with n8n

  • n8n: Version with MCP support

Installation

Windows

  1. Install Node.js

  2. Install AutoHotkey v2

  3. Configure Claude Desktop

    • Open Claude Desktop configuration file
    • Add the following to mcpServers:
json
{
  "mcpServers": {
    "line-desktop-mcp": {
      "command": "npx",
      "args": ["line-desktop-mcp@latest"]
    }
  }
}

macOS

  1. Install Node.js

  2. (Optional) Install cliclick

    • If Homebrew is installed, it will be automatically installed on startup
    • Or install manually: brew install cliclick
  3. Configure Claude Desktop

    • Open Claude Desktop configuration file
    • Add the following to mcpServers:
json
{
  "mcpServers": {
    "line-desktop-mcp": {
      "command": "npx",
      "args": ["line-desktop-mcp@latest"]
    }
  }
}

Advanced Configuration

Streamable HTTP Mode

In addition to the default stdio mode, this project also supports running via Streamable HTTP. This mode is particularly suitable for use with platforms like n8n that support MCP.

Start Streamable HTTP Mode:

bash
# Local use (localhost only)
npx line-desktop-mcp@latest --http-mode --port 3000

# Allow external connections (token required)
npx line-desktop-mcp@latest --http-mode --host 0.0.0.0 --port 3000 --token YOUR_SECRET

Parameters:

  • --http-mode: Enable Streamable HTTP mode, using HTTP streaming instead of stdio
  • --port <port>: Specify the HTTP server port (default: 3000)
  • --host <host>: Specify the network interface to bind (default: 127.0.0.1)
  • --token <secret>: Set Bearer Token authentication secret. Required when --host is set to a non-loopback address for security

MCP Endpoint Configuration:

Local connection:

http://127.0.0.1:3000/mcp

n8n in Docker (same machine):

http://host.docker.internal:3000/mcp

Transport Method:

  • POST requests: Send JSON-RPC messages and receive responses via SSE stream
  • Supports session management with unique session IDs for each connection

n8n Workflow Example:

If you want to use LINE Desktop MCP in n8n, you can download our sample workflow file:

This example demonstrates how to integrate LINE Desktop MCP in n8n to create a chatbot workflow.

Usage

In Claude Desktop conversations, you can interact with LINE in the following ways:

1. Read Chat Messages

Please read the messages from LINE group 'Project Discussion' and summarize them

2. Send Messages (Manual Confirmation)

Please write a greeting and send it to LINE group 'Project Discussion'

Claude will compose the message and wait for your confirmation before sending.

3. Send Messages (Automatic)

Please write a greeting and send it to LINE group 'Project Discussion', and send it automatically

Claude will compose the message and automatically complete the sending action.

Usage Precautions

Important Reminders

  1. Avoid Interfering with Automation
    This tool performs automation through the graphical user interface (GUI). During automated operations, please refrain from using the mouse for other tasks to prevent interference with the program's execution.

  2. LINE Desktop Window Configuration
    Please ensure that LINE Desktop is configured in "Expanded Chat Window" mode. In this mode, the chat window remains docked to the right side of the chat list, rather than opening as a separate independent window.

  3. Multi-Monitor Setup
    If you are using multiple monitors, please ensure that the LINE Desktop application is positioned on the primary display (first monitor) for the automation to function correctly.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Author

Geoffrey Wang

Installatioun

TypingMind
{
  "mcpServers": {
    "line-desktop-mcp": {
      "command": "npx",
      "args": [
        "line-desktop-mcp@latest"
      ]
    }
  }
}

LINE Desktop MCP MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal LINE Desktop MCP verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dir kënnt MCP lokal op Ärem Apparat ausféieren oder Iech mat enger Remote-MCP-Server-URL verbannen.

Optioun 1: De lokale Connector benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

LINE Desktop MCP als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu LINE Desktop MCP an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "line-desktop-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "line-desktop-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu LINE Desktop MCP. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu LINE Desktop MCP.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat LINE Desktop MCP?
LINE Desktop MCP
Jo. Ech hunn et gelies.
Dat hunn ech mat LINE Desktop MCP fonnt.

Optioun 2: Eng MCP-Server-URL derbäisetzen

Benotzt dës Optioun, wann LINE Desktop MCP scho remote gehost gëtt oder Är Ekipp ee gemeinsame Connector wëllt, op dee méi Benotzer kënnen zougräifen.

1

MCP-Connectoren opmaachen

Gitt an TypingMind op „Plugins“, maacht „MCP-Connectoren“ op a wielt dann „URL derbäisetzen“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Gitt op „Plugins“.
  3. Maacht „MCP-Connectoren“ op.
  4. Klickt op „URL derbäisetzen“.
TypingMind-Formulaire fir eng benotzerdefinéiert MCP-Server-URL derbäizesetzen
2

D'Server-URL apeschen

Gitt d'MCP-Server-URL vum Ubidder am Feld „Server-URL“ an. Setzt e Verbindungsnumm, eng Beschreiwung, e Symbol, benotzerdefinéiert HTTP-Headeren oder OAuth-Clientastellungen derbäi, wann de Server se erfuerdert.

  1. Pescht d'MCP-Server-URL vum Ubidder an d'Feld „Server-URL“.
  2. Gitt en Numm fir d'Verbindung mat LINE Desktop MCP an.
  3. Setzt eng Beschreiwung an e Symbol derbäi, fir d'Verbindung méi einfach erëmzeerkennen.
  4. Setzt benotzerdefinéiert HTTP-Headeren oder OAuth-Clientdetailer derbäi, wann de Server eng Authentifizéierung erfuerdert.
3

D'Verbindung erstellen

Klickt op „Verbindung erstellen“, gitt dann zeréck op d'Plugin-Lëscht a kontrolléiert, ob déi nei MCP-Verbindung aktiv ass.

  1. Klickt op „Verbindung erstellen“.
  2. Gitt zeréck op d'Lëscht vun de MCP-Connectoren.
  3. Kontrolléiert, ob d'Verbindung mat LINE Desktop MCP als aktiv ugewise gëtt.
  4. Aktualiséiert d'Plugin-Lëscht, wann d'Verbindung net direkt ugewise gëtt.
4

Modeller wiesselen ouni nei ze verbannen

Start e Chat mat Ärem bevorzugte Modell, aktivéiert d'Tools vu LINE Desktop MCP ënner „Plugins“ a wiesselt bei Bedarf op en anere Modell. D'MCP-Verbindung bleift am TypingMind-Aarbechtsberäich disponibel.

  1. Start en neie Chat an TypingMind.
  2. Wielt de KI-Modell, deen Dir benotze wëllt.
  3. Aktivéiert d'Tools vu LINE Desktop MCP ënner „Plugins“.
  4. Biet de Modell, den Tool ze benotzen, wann néideg.
  5. Wiesselt op en anere KI-Modell a benotzt déiselwecht MCP-Verbindung weider.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat LINE Desktop MCP?
LINE Desktop MCP
Jo. Ech hunn et gelies.
Dat hunn ech mat LINE Desktop MCP fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server LINE Desktop MCP benotzt?

LINE Desktop MCP ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech LINE Desktop MCP MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir LINE Desktop MCP mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat LINE Desktop MCP MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann LINE Desktop MCP verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech LINE Desktop MCP MCP mat TypingMind?

Dir kënnt LINE Desktop MCP iwwer de lokale MCP-Connector oder iwwer d'URL vun engem Remote-MCP-Server mat TypingMind verbannen. Benotzt de lokale Connector, wann de Server Zougrëff op Fichieren, Apps oder privat Ressourcen op Ärem Apparat brauch, an eng Server-URL, wann de MCP-Server op Distanz gehost gëtt.

Wéi eng Tools stellt LINE Desktop MCP MCP an TypingMind zur Verfügung?

LINE Desktop MCP stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir LINE Desktop MCP MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann LINE Desktop MCP eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇