Logo van LINE Desktop MCP

LINE Desktop MCP

Community
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.

Uitgeverdtwang
Repositoryline-desktop-mcp
TaalJavaScript
Forks
56
Sterren
116
Beschikbare tools
0
Transporttypestdio, streamable-http
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    LINE Desktop MCP biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    116 sterren en 56 forks in de gekoppelde 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

Installatie

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

Gebruik LINE Desktop MCP MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra LINE Desktop MCP is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Je kunt MCP lokaal op je apparaat uitvoeren of verbinding maken met de URL van een externe MCP-server.

Optie 1: Gebruik de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg LINE Desktop MCP toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van LINE Desktop MCP.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "line-desktop-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "line-desktop-mcp"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van LINE Desktop MCP in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van LINE Desktop MCP in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je LINE Desktop MCP gebruiken om me hiermee te helpen?
LINE Desktop MCP
Zeker. Ik heb het gelezen.
Dit vond ik met LINE Desktop MCP.

Optie 2: Voeg een MCP-server-URL toe

Gebruik dit als LINE Desktop MCP al extern wordt gehost of als je team één gedeelde connector wil die meerdere gebruikers kunnen gebruiken.

1

Open MCP-connectoren

Ga in TypingMind naar Plug-ins, open MCP-connectoren en kies URL toevoegen.

  1. Open TypingMind in je browser.
  2. Ga naar Plug-ins.
  3. Open MCP-connectoren.
  4. Klik op URL toevoegen.
TypingMind-formulier om een eigen MCP-server-URL toe te voegen
2

Plak de server-URL

Voer de MCP-server-URL van de aanbieder in het veld Server-URL in. Voeg een verbindingsnaam, beschrijving, icoon, aangepaste HTTP-headers of OAuth-clientinstellingen toe als de server die vereist.

  1. Plak de MCP-server-URL van de aanbieder in het veld Server-URL.
  2. Voer een verbindingsnaam in voor LINE Desktop MCP.
  3. Voeg een beschrijving en een icoon toe om de verbinding makkelijker te herkennen.
  4. Voeg aangepaste HTTP-headers of OAuth-clientgegevens toe als de server authenticatie vereist.
3

Maak de verbinding

Klik op Verbinding maken, ga terug naar de lijst met plug-ins en controleer of de nieuwe MCP-verbinding actief is.

  1. Klik op Verbinding maken.
  2. Ga terug naar de lijst met MCP-connectoren.
  3. Controleer of de verbinding met LINE Desktop MCP als actief wordt weergegeven.
  4. Vernieuw de lijst met plug-ins als de verbinding niet meteen verschijnt.
4

Wissel van model zonder opnieuw verbinding te maken

Start een chat met je favoriete model, schakel de tools van LINE Desktop MCP in via Plug-ins en wissel van model wanneer dat nodig is. De MCP-verbinding blijft beschikbaar in de TypingMind-werkruimte.

  1. Start een nieuwe chat in TypingMind.
  2. Selecteer het AI-model dat je wilt gebruiken.
  3. Schakel de tools van LINE Desktop MCP in via Plug-ins.
  4. Vraag het model om de tool te gebruiken wanneer dat nodig is.
  5. Schakel over naar een ander AI-model en gebruik dezelfde MCP-verbinding opnieuw.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je LINE Desktop MCP gebruiken om me hiermee te helpen?
LINE Desktop MCP
Zeker. Ik heb het gelezen.
Dit vond ik met LINE Desktop MCP.

Veelgestelde vragen

Waarvoor wordt de MCP-server LINE Desktop MCP gebruikt?

LINE Desktop MCP is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik LINE Desktop MCP MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je LINE Desktop MCP gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom LINE Desktop MCP MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als LINE Desktop MCP verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik LINE Desktop MCP MCP met TypingMind?

Je kunt LINE Desktop MCP met TypingMind verbinden via de lokale MCP-connector of door de URL van een externe MCP-server toe te voegen. Gebruik de lokale connector als de server toegang nodig heeft tot bestanden, apps of privébronnen op je apparaat. Gebruik een server-URL als de MCP-server extern wordt gehost.

Welke tools biedt LINE Desktop MCP MCP in TypingMind?

LINE Desktop MCP biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om LINE Desktop MCP MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als LINE Desktop MCP authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇