line-desktop-mcp
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.0. 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
loginscans a QR code and saves the LINE session.logoutends the session and deletes the saved login; the archive is kept.list_chatslists chats with name, kind, unread count, and a last preview.get_messagesreads one chat and returns its messages, with images attached.search_messagessearches the local archive for text across chats.unreadsummarises 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"]
}
}
}
- Ask the client to call
login. - A window titled
Line Desktop MCPopens on the machine running the server. - Scan the code with the LINE app, and enter the PIN if LINE asks for one.
- Call
list_chatsto find the chat you want. - Call
get_messageswith 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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| line_desktop_mcp-4.0.0.tar.gz | 43.1 kB | Without provenance | Details for line_desktop_mcp-4.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| line_desktop_mcp-4.0.0-py3-none-any.whl | Python 3 | none | any | Details for line_desktop_mcp-4.0.0-py3-none-any.whl |
Total release size: 95.4 kB
Release files / line_desktop_mcp-4.0.0.tar.gz
| Download URL | line_desktop_mcp-4.0.0.tar.gz |
|---|---|
| Size | 43.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
372fa3d5afe9e77dfe644ddfdd8447d5d0691156f1830122797c63e61f28f2b8
|
|
BLAKE2b-256 checksum How to use checksums |
d0ccac13994c16965f7a4f3ef16d05c3987221fafa6ee65d89ff32a8f8e666b1
|
| 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.0-py3-none-any.whl
| Download URL | line_desktop_mcp-4.0.0-py3-none-any.whl |
|---|---|
| Size | 52.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
80d5e0b740169a839d1bc2bc998b37f38a664bf30a1b21f7503e15cd9040ccd2
|
|
BLAKE2b-256 checksum How to use checksums |
b8cd9f3e686d4e81ac83078baeeac7ed19ff0b7a6d627a66bb8d599d55a02e4c
|
| 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.0
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.