Line MCP Server logo

Line MCP Server

Mirrors one personal LINE account into a local SQLite archive for searching, reading, and sending messages through MCP.

Install Line MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "line-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "line-mcp-server"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio line-mcp-server -- npx -y line-mcp-server

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y line-mcp-server

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

line-mcp-server mirrors one personal LINE account into a local SQLite archive and exposes it to coding agents through MCP. A background daemon synchronizes chats and serves tools over a local HTTP endpoint, while reads operate on the archive without marking messages as read. Agents can search conversations, inspect profiles and attachments, send messages, react, unsend messages, and check synchronization health. Reach for it when an agent needs access to personal LINE history or controlled messaging from a developer workstation.

Use cases

  • Search personal LINE conversations with read-only SQL
  • Retrieve message attachments for an agent workflow
  • Inspect group announcements and participant profiles
  • Send text, images, or files from a coding agent
  • Check synchronization health and archive coverage

Key features

  • Local SQLite archive with full-text message search
  • MCP access over a local HTTP endpoint
  • Attachment metadata and cached-file retrieval
  • Profile and pinned-announcement lookup
  • Idempotent sending, reactions, and message unsending
  • Background synchronization across macOS, Linux, and Windows

Tools8

What Line MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~144 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · line-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads333Package downloads in the last 30 days.
Last commit9d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed8Callable tools this server registers over MCP.

How Line MCP Server works

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:

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

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Line MCP Server

line-mcp-server is an MCP server that connects a personal LINE account to coding agents through a local SQLite archive. Its main tools query chats and messages, report sync status, retrieve attachments, inspect profiles and announcements, send messages, react to messages, and unsend the user's messages.

Install it with `npm i -g line-mcp-server`, then run `line-mcp login`, `line-mcp install`, and `line-mcp doctor`. Login uses a QR code scanned with the LINE app. Node.js 24.18+ on Node 24, or Node.js 26+, is required.

Yes, line-mcp-server works with Claude Code through its plugin or a manual HTTP MCP configuration. The plugin connects to the default local daemon port; manual setup uses `http://127.0.0.1:47822/mcp` unless `LINE_MCP_PORT` changes the port.

Yes, line-mcp-server provides a Codex plugin and can also be configured manually with the local MCP URL. The Codex configuration supports a longer tool timeout for attachment downloads.

Yes, it can send text, images, or files, optionally as replies, react to messages, and unsend the user's own messages for everyone. Each write action requires an idempotency key, and an `unknown` result should be verified before retrying.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLine MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/line-mcp-server?style=directory)](https://allmcps.com/mcp/line-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/line-mcp-server"><img src="https://allmcps.com/api/badge/line-mcp-server?style=directory" alt="Line MCP Server on AllMCPs" /></a>