Skip to main content

line-desktop-mcp

ci pypi downloads

An MCP server that reads your own LINE chats. It logs in by scanning a QR code in a Tk window, lists chats, returns messages with their images, and can sign out again. It uses the unofficial OkLine SDK and FastMCP. Version 4.0.1. It is not affiliated with LINE Corporation or LY Corporation.

Read this first: Terms of Service. Automating a personal LINE account violates LINE's Terms of Service. Your account can be restricted or banned. Use only your own account, keep volumes human-like, and treat the session file as a password.

This server also keeps a plaintext local copy of the chats and images it reads.

What it does

  • login scans a QR code and saves the LINE session.
  • logout ends the session and deletes the saved login; the archive is kept.
  • list_chats lists chats with name, kind, unread count, and a last preview.
  • get_messages reads one chat and returns its messages, with images attached.
  • search_messages searches the local archive for text across chats.
  • unread summarises every chat with unread messages in one call.

It never writes to LINE: it does not send, mark anything as read, or delete anything. Every tool writes on this machine: the session, the message archive, and the image backups.

Quick start

You need Python 3.10+ with Tk and uv, Node.js 18+ on PATH, a LINE account with its phone signed in, and Windows, macOS, or Linux. The QR window needs a local desktop session.

Install from PyPI

Add the server to Claude Desktop's claude_desktop_config.json:

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

Or to opencode.json:

{
  "mcp": {
    "servers": {
      "line-desktop-mcp": {"type": "local", "command": ["uvx", "line-desktop-mcp@latest"]}
    }
  }
}

Run from a checkout

git clone https://github.com/onlygummy/line-desktop-mcp.git
cd line-desktop-mcp
uv sync

Point the client at the checkout:

{
  "mcpServers": {
    "line-desktop-mcp": {
      "command": "uv",
      "args": ["run", "--directory", "/absolute/path/to/line-desktop-mcp", "line-desktop-mcp"]
    }
  }
}
  1. Ask the client to call login.
  2. A window titled Line Desktop MCP opens on the machine running the server.
  3. Scan the code with the LINE app, and enter the PIN if LINE asks for one.
  4. Call list_chats to find the chat you want.
  5. Call get_messages with the chat mid or part of its name.

Documentation

Read the tool reference, configuration, local storage, troubleshooting, development, and version history. See CONTRIBUTING.md before opening a pull request.

Privacy and safety

  • Treat the session file as a password: it holds your tokens and Letter Sealing keys.
  • Treat the archive and the media directory as sensitive: both are plaintext copies.
  • Tool results become model context at the provider you chose, which is part of the trust boundary.

Read the security policy for the threat model and reporting process.

License

MIT. OkLine is MIT and unofficial. Not affiliated with LINE or LY Corporation.

Metadata

Release files for line-desktop-mcp 4.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for line-desktop-mcp 4.0.1
File Size Uploaded Provenance Actions
line_desktop_mcp-4.0.1.tar.gz 43.9 kB Without provenance Details for line_desktop_mcp-4.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for line-desktop-mcp 4.0.1
File Interpreter ABI Platform Actions
line_desktop_mcp-4.0.1-py3-none-any.whl Python 3 none any Details for line_desktop_mcp-4.0.1-py3-none-any.whl

Total release size: 96.9 kB

Release files / line_desktop_mcp-4.0.1.tar.gz

Download URL line_desktop_mcp-4.0.1.tar.gz
Size 43.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ce63a47da9caea34c3235af83b06d4b35b10193ada97de8eae78b4d406b7f0b9
BLAKE2b-256 checksum
How to use checksums
500ce28136f0be788f2a9d5db6761c88fd2a79aef5ea7e447440843a45ae36d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / line_desktop_mcp-4.0.1-py3-none-any.whl

Download URL line_desktop_mcp-4.0.1-py3-none-any.whl
Size 53.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35c8046871427bc4feb3bb74017ad13dbc5eae5052e219a504d826f9eb27bb4c
BLAKE2b-256 checksum
How to use checksums
4824662c6b34a8e4304fb10fb46ddc7eacf6275dfb28026aacae6e49fd6527b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for line-desktop-mcp 4.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page