Yomi
БесплатноНе проверенEnables AI agents to read, reply, send images, and search LINE messages by logging in as a secondary device, without official API or browser.
Описание
Enables AI agents to read, reply, send images, and search LINE messages by logging in as a secondary device, without official API or browser.
README
Yomi (読み)
Read your LINE from an AI agent — and reply, send images, and search across every conversation — without a browser and without LINE's own client.
The name reads more than one way. 読み (yomi) — a reading: not just parsing your messages, but reading the situation, the way you do. 詠み (yomi) — to recite: it doesn't read in silence, it reads things back to you. And 黄泉 (yomi) — the realm of what's buried and out of reach; the very yomi in 黄泉帰り (yomigaeri), "the return from it," the root of the Japanese word for revival. Yomi reaches into what is sealed or forgotten and brings it back to light.
Yomi speaks LINE's TCompact-over-HTTPS protocol directly, decrypts Letter-Sealing (E2EE) messages and media, and exposes the result to any AI agent through a small stdio MCP server. Point Claude Desktop (or any MCP client) at it and the agent can catch up on your LINE the way you do — read, reply, send an image, mention someone, and search your whole history locally.
No official API, no bot account, no webhook. Yomi logs in as a secondary device on your own account.
Unofficial. Yomi is an independent personal project, not affiliated with or endorsed by LINE. Using it may be against LINE's Terms of Service, and running an additional client on your account carries a risk of rate-limiting or suspension. It is intended for reading your own account. Use it at your own risk. See Disclaimer.
Getting started
You need Node.js v24+ and a LINE account. Yomi runs locally
through npx; you do not need to clone this repository, install Bun, or build
anything. Run node --version first: if the command is missing or reports a version
below 24, install the current Node.js release and reopen your terminal before
continuing.
⚠️ Yomi needs a client that runs it on your own machine. Cloud-only tools (ChatGPT, Claude.ai web) cannot run Yomi. Configure Yomi in Claude Desktop or Claude Code and it works in both chat and Cowork, because Desktop starts Yomi on your machine and Cowork's local sessions load it. Do not ask Cowork to install Yomi for you: Cowork's shell runs inside a throwaway VM, not on your machine, so anything it installs there is gone when the session ends. Follow the steps below yourself, in your own terminal.
Choose the client you actually use and follow only that section. Claude Code and Claude Desktop have separate MCP settings; configuring one does not configure the other.
Claude Desktop — one-click install (no terminal, no Node)
The easiest path, and the only one that needs no command line at all. Claude Desktop ships its own Node runtime, so nothing else has to be installed.
Download the bundle for your machine from the latest release:
Machine File Windows (Intel/AMD) yomi-win32-x64.mcpbMac (Apple Silicon) yomi-darwin-arm64.mcpbLinux (x64) yomi-linux-x64.mcpbIn Claude Desktop, open Settings → Extensions, and drag the downloaded file onto that page (or just double-click the file).
Review what it asks for, click Install.
Start a conversation and say "log in to LINE". Yomi shows a form, you enter your phone number, and you confirm on your phone. No terminal at any point.
This skips the config file entirely, which also sidesteps the Windows MSIX bug described below.
Note for Cowork users: do not ask Cowork to install Yomi for you. Cowork's shell runs inside a throwaway VM — not on your machine — and it will not type into your real terminal. Install the bundle yourself with the three clicks above; once installed, Cowork's local sessions can use Yomi like any other tool.
Claude Desktop — manual config (npx)
Find the full path to
npx:macOS / Linux: which npx Windows: where npxOpen the Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json⚠️ Windows: the documented path may not be the one Claude actually reads. Claude Desktop ships as an MSIX package, whose filesystem is virtualized. The app reads its config from
%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.jsonwhile Settings → Developer → Edit Config opens the unvirtualized
%APPDATA%\Claude\file. They are two different files that never sync, so a correct Yomi config written to the documented path is **silently ignored** — no error, no log, Yomi simply never appears. This is claude-code#26073, still open. If Yomi does not show up after a restart, write the same config to theLocalCachepath above as well. (Not applicable to Claude Code, or to Desktop installed outside MSIX.)Add Yomi under
mcpServers, replacing the examplecommandwith the full path printed in step 1. On Windows, JSON requires each\in the path to be written as\\:
{
"mcpServers": {
"yomi": {
"command": "/opt/homebrew/bin/npx",
"args": ["@rikaidev/yomi"]
}
}
}
For example, a Windows path may look like
"C:\\Program Files\\nodejs\\npx.cmd". Use the path reported on your own
machine rather than copying either example blindly.
- Fully quit and reopen Claude Desktop. Confirm Yomi is loaded under Settings → Developer before anything else: if Yomi is not listed there, Claude never read your config — on Windows, see the MSIX warning in step 2. Once it is listed, the tools are available in chat and in Cowork's local sessions alike.
You do not need to install Claude Code for this setup.
Claude Code
claude mcp add yomi -- npx @rikaidev/yomi
Start a new claude session. The Yomi tools should appear automatically. This
command configures Claude Code only; it does not configure Claude Desktop.
Other MCP clients
This standard config works in most MCP clients:
{
"mcpServers": {
"yomi": {
"command": "npx",
"args": ["@rikaidev/yomi"]
}
}
}
Cursor
Cursor Settings → MCP → Add new MCP Server → name it yomi, command type, value: npx @rikaidev/yomi
Or add to .cursor/mcp.json in your project root.
VS Code (GitHub Copilot)
Add to .vscode/mcp.json:
{
"servers": {
"yomi": {
"command": "npx",
"args": ["@rikaidev/yomi"]
}
}
}
opencode
Add to ~/.config/opencode/opencode.json:
{
"mcp": {
"yomi": {
"type": "local",
"command": ["npx", "@rikaidev/yomi"],
"enabled": true
}
}
}
Codex
codex mcp add yomi npx @rikaidev/yomi
Or add to ~/.codex/config.toml:
[mcp_servers.yomi]
command = "npx"
args = ["@rikaidev/yomi"]
Cline
Add to cline_mcp_settings.json:
{
"mcpServers": {
"yomi": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@rikaidev/yomi"]
}
}
}
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json — same JSON as standard config.
Amp
amp mcp add yomi -- npx @rikaidev/yomi
Goose
Advanced settings → Extensions → Add custom extension → name yomi, type STDIO, command: npx @rikaidev/yomi
Grok
grok mcp add yomi -- npx @rikaidev/yomi
First login
Once connected, tell the agent:
"Log into LINE — my number is +8869XXXXXXXX."
Approve the device on your phone (see Logging in), and:
"Summarize my unread LINE and tell me who's waiting on a reply."
What you can do
Yomi exposes 19 tools over MCP. All return JSON. "Honest error" below means an
explicit failure naming the problem (e.g. missing_decrypt_material) — Yomi never
fabricates a fallback, a placeholder, or a fake success.
Reading
| Tool | Does |
|---|---|
get_unread_digest |
One-shot: every conversation with unread messages, each with its latest messages, E2EE-decrypted, sender names resolved. Built for "summarize my unread and suggest next steps." Read-only — never marks anything read. |
list_conversations |
Chats/groups/rooms with unread counts and a decrypted last-message preview. Newest-active first. |
get_chat_messages |
One conversation, decrypted. Paginate deeper with a before cursor. Each message carries any raw MENTION metadata so you can see who was @-mentioned (a literal @name in the text is not a mention). |
get_message_media / get_message_image |
Any decrypted attachment (image/video/audio/file). Honest error on non-media. |
find_contact / list_contacts |
Friend-list lookup by name substring, or the full list. Raw LINE data — no fuzzy scoring, no affinity ranking. |
get_group_members |
Members of a persistent group. Ad-hoc rooms without a group record fail honestly rather than returning a fake empty list. |
Writing (these really send — not drafts)
| Tool | Does |
|---|---|
send_message |
Sends an E2EE text message now (pairwise key for 1:1, group key for groups/rooms). Optional mentions attach real @-mentions that LINE highlights and notifies; omit them and a literal @name is just text that notifies no one. One send per call, no retries. |
send_image |
Encrypts, uploads to LINE OBS, and sends an E2EE image now. Works for 1:1, groups, and rooms. One send per call. Honest failure if the key can't be resolved or the upload is rejected. |
mark_read |
Sends a read receipt the other party can see. Explicit only — reading messages and background capture never mark anything read. |
Search (local, cross-conversation — LINE has no such primitive)
| Tool | Does |
|---|---|
search_messages |
Hybrid search across all indexed conversations. Auto-collects on first use. Returns mode (hybrid/semantic/keyword) so nothing is hidden. |
collect_messages |
Explicit bulk-index into the local DB + embed for semantic search. The only tool allowed to bulk-fetch; runs once per call, never on a timer. |
Scope & privacy (all work offline, no LINE session needed)
| Tool | Does |
|---|---|
exclude_chats |
Denylist a conversation and purge its already-indexed data. Not just future capture — a denylist that left old data in the index would be fake privacy. |
include_chats |
Re-allow a conversation (does not restore purged data). |
list_excluded_chats / get_scope_policy |
Show the denylist / the full privacy policy (read from PRIVACY.md). |
Session
| Tool | Does |
|---|---|
login / login_complete |
Passwordless secondary-device login. See below. login is the only tool callable without an existing session. |
Logging in
Prerequisite: on your primary phone, enable 設定 › 我的帳號 › 允許自其他裝置登入 (Settings › Account › Allow login on other devices). Without it LINE never offers this device a sign-in prompt — this is the single most common reason a first login appears to hang.
You only need to give the agent your phone number in E.164 form — it supplies the
region itself (e.g. TW for a +886 number) when it calls the tool.
Yomi drives LINE's passwordless (secondary-device) flow. How the login surfaces depends on your MCP client:
Clients with the MCP
elicitationcapability —loginprompts you for your phone/region, shows the PIN in a dialog, and blocks to completion. One call, no PIN relayed through the model. Your phone number never enters the transcript.Clients without it (e.g. Claude Desktop today) — two calls.
login(with your phone + region) returns the PIN in its result; enter it in LINE on your primary phone and approve the device; then calllogin_complete, which blocks until the phone confirms. The agent should calllogin_completeimmediately — it does the waiting, so there is nothing for you to report back.From a terminal —
npx @rikaidev/yomi loginruns the whole flow on stdout, PIN and all. Always available as a fallback.
The one deadline that matters is LINE's: you have about 3 minutes from when the PIN is shown to enter it and approve the device. Yomi's own client keeps listening for many minutes beyond that, so a slow phone is never the failure — only LINE's 3-minute code lifetime is.
Once you've logged in, the session — including a login certificate — is persisted (see below), and future logins skip the PIN entirely.
There is also an experimental MCP Apps UI (a
ui://yomi/logincard) for clients that render interactive views. It is spec-correct and renders under the MCP Inspector, but some hosts fetch the resource without completing the view handshake, so it is display-only and never on the critical path — the flows above always work regardless.
Sessions and credentials
Yomi owns its own login. On startup it calls resumeSession() once, reading the
LINE session from the macOS Keychain (service com.yomi.credentials, account
line) and silently refreshing the token if needed.
- First-party credentials. The passwordless login persists the auth token, refresh token, certificate, MID, and the E2EE keypair itself — then reads them back to verify the write actually landed. A login that can't be persisted fails loudly at login, not silently at the next restart.
- Backward compatibility. If no session is found under
com.yomi.credentials, Yomi reads the legacycom.inboxd.credentialsentry once, migrates it forward, and never deletes it. An existing session keeps working with no re-login. - Platform note. On macOS the session lives in the login Keychain. On Linux and Windows Yomi currently falls back to a local JSON file — functional, but less protected than an OS secret store, and less exercised than the macOS path. Native secure-storage backends (libsecret / DPAPI) are planned; until then, treat a non-macOS install accordingly.
Every tool except login and the offline scope/search tools returns an honest error
when there is no session. Yomi is otherwise a pure query server — it never polls,
never backfills in the background; each tool call makes exactly the LINE requests it
needs, and collect_messages is the only path that fetches across many chats at once.
Search
LINE has no cross-conversation search; Yomi builds one locally. The index is a
gitignored SQLite database (data/search-index.db) in the repo — nothing leaves
your machine.
Search is hybrid by design. It always runs FTS5 keyword search (bm25 over
bigram-preprocessed text, so CJK substrings with no word boundaries are covered) and,
when embeddings exist, semantic search, then fuses the two ranked lists by
Reciprocal Rank Fusion. Pure semantic search silently drops exact matches that
live in un-embedded messages; pure keyword misses paraphrases; fusing both surfaces
an exact term and a meaning-match together. The response's mode field always
reports which methods contributed.
Semantic ranking uses Xenova/bge-small-zh-v1.5 (BAAI general embedding, small,
Chinese-primary but multilingual) via transformers.js. Embedding inference runs
fully in-process on CPU — your message text is never sent anywhere.
The one caveat is a one-time model download: on the first collect_messages or
search_messages, transformers.js fetches the model (~90 MB) from huggingface.co
and caches it locally; every run afterwards is fully offline. That first fetch is an
outbound HTTPS request to HuggingFace for the model weights — it carries your IP and
which model is being downloaded, but no message content and no LINE data. If you
need Yomi fully air-gapped, pre-populate the transformers.js cache (or point it at a
local model directory) before the first search so no network call is ever made.
The secondary-device reality (read before trusting "I can't get old messages")
Yomi runs as a secondary device on your account. That shapes what it can see:
- Group chats without Letter Sealing are plaintext at the LINE server — full history and media, no restriction.
- Group chats with Letter Sealing are E2EE, and there the epoch matters. Such a group is encrypted with a shared group key that rotates (on membership changes, or when a client provisions a new one). LINE only ever hands a device the current group key — there is no API to fetch a superseded one. So a secondary device decrypts messages from the epoch whose key it holds onward; messages sent under an older epoch — before Yomi obtained the current key — can come back undecryptable, even in a group whose earlier history it can read. This is inherent to Letter Sealing's per-epoch group keys, not a bug here. It can also cut sideways: the epoch your phone holds and the epoch Yomi holds need not be the same, so the two devices can each read a different slice of the very same group.
- 1:1 media uses the account-level E2EE keychain, which a secondary device fully possesses (LINE syncs it during pairing) — Yomi can decrypt 1:1 images/files it can see.
- 1:1 history backfill is the one real limitation. LINE does not hand a secondary device the past 1:1 message history the way it does for groups. Messages received while Yomi is connected decrypt normally; deep-scrolling into 1:1 history that predates pairing may come back empty. This is a LINE server-side restriction, not a bug here.
When decryption genuinely fails, Yomi returns an explicit missing_decrypt_material
error — never a fake card or placeholder. Silence is honest; a fabricated result is not.
Development
For contributors working on the Yomi source code (requires bun or Node.js 24+):
bun install # install dependencies (or npm install)
bun run.mjs # run the stdio MCP server
bun run.mjs login # run the login flow in a terminal
npm run build # tsc --noEmit — type-check only (Yomi ships & runs from src/)
npm test # bun test
The build only type-checks and compiles; this repo does not talk to live LINE
servers as part of its own build. Connecting an MCP client and calling login is
what actually starts a session.
src/
line/ LINE protocol core: TCompact/Thrift codec, E2EE (Letter-Sealing,
group keys, media), Talk/Auth/Sync service clients, session state,
passwordless login flow.
auth/ Credential store (macOS Keychain, JSON-file fallback off-darwin).
search/ Local cross-conversation index (SQLite + FTS5) and the offline
embedding pipeline (transformers.js).
mcp/ The stdio server: tool schemas, handlers, the privacy-policy loader,
and the experimental MCP Apps login view (mcp/ui/).
util/ [TAG]-prefixed logger (stderr only — stdout is the MCP JSON-RPC stream).
Everything Yomi writes for humans goes to stderr; stdout is reserved for the
MCP JSON-RPC stream. A stray console.log corrupts the protocol — don't add one on
any path the server can reach.
Privacy
By default Yomi indexes all your conversations into the local, on-device search
index so an agent can search across them — a capture-all default, opt-out per chat.
Nothing is ever uploaded; the only data that leaves your device is whatever the agent
itself surfaces in its replies. (The one non-LINE network call Yomi itself makes is the
one-time embedding-model download from HuggingFace on the first search — model
weights in, no message content out; see Search.) PRIVACY.md
is the canonical policy,
and Yomi surfaces that same text to the agent on connect (and via get_scope_policy)
so it can disclose the default before any bulk read.
Disclaimer
Yomi is an independent, unofficial personal project, built for learning and for accessing one's own LINE account. It is not affiliated with, authorized, or endorsed by LINE Corporation. "LINE" is a trademark of its respective owner.
Running Yomi may violate LINE's Terms of Service, and operating an additional client on an account can result in rate-limiting or suspension of that account. Yomi is intended for accessing your own account and data. You are solely responsible for how you use it. The software is provided "as is", without warranty of any kind — see LICENSE.
Acknowledgments
Yomi's LINE protocol implementation was written with reference to three open-source projects, whose field layouts, E2EE chunk ordering, request shapes, and Thrift definitions informed this independent implementation:
- evex-dev/linejs (MIT) — request shapes and the Letter-Sealing E2EE payload layout.
- DeachSword/CHRLINE (BSD-3-Clause) — protocol field layouts and the passwordless login flow.
- er1ce/LINE-Protocol (Apache-2.0) — Thrift enum definitions (ContentType, MessageRelationType, ServiceCode).
Their copyright notices and full license texts are reproduced in NOTICE, as their licenses require.
License
MIT
Установка Yomi
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/RikaiDev/yomiFAQ
Yomi MCP бесплатный?
Да, Yomi MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Yomi?
Нет, Yomi работает без API-ключей и переменных окружения.
Yomi — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Yomi в Claude Desktop, Claude Code или Cursor?
Открой Yomi на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Playwright
Browser automation, scraping, screenshots
автор: MicrosoftPuppeteer
Browser automation and web scraping.
автор: modelcontextprotocolopentabs-dev/opentabs
Plugin-based MCP server + Chrome extension that gives AI agents access to web applications through the user's authenticated browser session. 100+ plugins with a
автор: opentabs-devrobhunter/agentdeals
1,500+ developer infrastructure deals, free tiers, and startup programs across 54 categories. Search deals, compare vendors, plan stacks, and track pricing chan
автор: robhunterCompare Yomi with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории browse
