# line-mcp-server [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/stickerdaniel/line-mcp-server  
**GitHub Stars:** 1  
**npm Downloads (last month):** 333  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/line-mcp-server

## Description
Local MCP server that mirrors a personal LINE account for coding agents

## Tools
Capabilities this server exposes over MCP:

- **query** — Read-only SQL over the local archive: chats, names, messages, read state, full-text search.
- **status** — Session health, last sync times, coverage gaps, backfill progress and the archive time zone.
- **get_attachment** — Metadata of an image, video, audio or file message, or the file saved to a private cache.
- **get_announcements** — Pinned announcements of a group, room or OpenChat.
- **get_profile** — Your own profile, another LINE user's, or an OpenChat member's.
- **send_message** — Sends text, an image or a file, optionally as a reply.
- **react** — Reacts to a message.
- **unsend** — Unsends one of your messages for everyone.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "line-mcp-server": {
    "command": "npx",
    "args": ["-y","line-mcp-server"]
  }
}
```

## Documentation

## What line-mcp-server does

line-mcp-server connects one personal LINE account as a secondary device and maintains a local SQLite copy of its chats. The archive covers conversations, participant names, messages, read state, full-text search, attachments, announcements, profiles, and synchronization details.

Its MCP interface supports both investigation and account actions. Agents can run read-only SQL queries, inspect sync status, retrieve attachment metadata or cached files, view pinned announcements, look up profiles, send text or media, add reactions, and remove the user's own messages for everyone. The command-line interface exposes the same operations through the running daemon and returns JSON.

## How it works

Install the npm package, authenticate by scanning a QR code with the LINE mobile app, and install the background service. The phone remains the primary device while line-mcp-server joins as a secondary device. The daemon synchronizes chats and serves MCP at `http://127.0.0.1:47822/mcp` by default.

On macOS it runs as a LaunchAgent, on Linux as a systemd user service, and on Windows as a scheduled task. If the LINE session ends, the daemon continues serving the local archive and waits for another login. Linux users without systemd can run the daemon in the foreground.

Read operations use the local archive and do not mark messages as read. Sending, reacting, and unsending require an idempotency key. Reusing the same key with the same arguments prevents a retry from performing the action twice; an `unknown` result should be checked against the chat before retrying.

## Setup and configuration

Node.js 24.18 or a later Node 24 release, or Node.js 26 or later, is required. Supported environments include macOS, Linux with systemd, and Windows. A typical installation is:

```bash
npm i -g line-mcp-server
line-mcp login
line-mcp install
line-mcp doctor
```

Claude Code and Codex can use the repository plugins, which connect to the default daemon port. Other configurations can add the MCP endpoint manually with HTTP transport. The port can be changed with `LINE_MCP_PORT` when configuring a client directly.

The archive and attachment cache are stored under the user's application or data directory, with the SQLite database protected as user-readable storage on macOS and Linux. Linux requires a local filesystem for the state directory because SQLite WAL mode needs shared memory. The service also depends on a stable Node installation and, for persistent operation after logout, a configured systemd user manager with lingering enabled.

## Limitations and notes

This is an unofficial LINE client using LINE's private protocol through LINEJS. Use may conflict with LINE's terms and could lead to account restrictions or bans.

Any local process able to reach the daemon can call its tools, so access to the machine and local endpoint should be treated as access to the LINE account. Message content is not written to the daemon log, but the archive and attachment cache remain on disk.

Synchronization coverage can have gaps, and the `status` tool reports last sync times, backfill progress, coverage gaps, session health, and the archive time zone. When the remote session is unavailable, locally synchronized data remains available, but new account changes cannot be fetched until login is restored.

_Full upstream README: https://allmcps.com/mcp/line-mcp-server/readme_

