yomi
OfficialYomi (読み) — 개인용 LINE MCP 서버
Yomi는 개인 계정을 위한 오픈소스 LINE MCP 서버입니다. 브라우저, 봇 계정, LINE 공식 클라이언트 없이도 Claude나 로컬 AI 에이전트에서 모든 대화를 읽고, 답장하고, 이미지를 보내고, 검색할 수 있습니다.
이 이름은 여러 가지로 읽힙니다. 読み(요미) — 읽기: 메시지를 파싱하는 것만이 아니라, 당신이 하듯 상황을 읽는 것. 詠み(요미) — 읊다: 조용히 읽기만 하지 않고, 당신에게 다시 읽어 들려줍니다. 그리고 黄泉(요미) — 닿을 수 없는 저승; 黄泉帰り(요미가에리), "요미에서 돌아오다"의 바로 그 요미. 두 세계 사이를 오가는 전령처럼, Yomi는 봉인과 침묵을 통과하여 대화 속 깊은 곳에서 아직 읽을 수 있는 메시지를 빛으로 다시 가져옵니다. 이미 잃어버린 역사를 소환하지 않으며, 사라지지 않은 것을 다시 볼 수 있게 도와줍니다.
LINE의 공식 Bot MCP 서버가 Messaging API를 통해 AI 에이전트를 LINE 공식 계정에 연결하는 것과 달리, Yomi는 보조 기기로써 기존 개인 LINE 계정과 대화에 연결됩니다.
Yomi는 LINE의 TCompact-over-HTTPS 프로토콜을 직접 구사하고, Letter-Sealing(E2EE) 메시지와 미디어를 복호화하며, 그 결과를 작은 stdio MCP 서버를 통해 모든 AI 에이전트에 노출합니다. Claude Desktop(또는 모든 MCP 클라이언트)에서 이를 가리키면 에이전트가 당신처럼 LINE을 따라잡을 수 있습니다 — 읽기, 답장, 이미지 보내기, 멘션, 전체 기록 로컬 검색 — 그리고 get_insight로 상황을 읽을 수 있습니다: 어떤 대화가 당신의 답장을 기다리고 있는지, 누가 당신의 세계를 연결하는지, 무엇이 기한을 넘겼는지.
공식 API도, 봇 계정도, 웹훅도 없습니다. Yomi는 당신 계정의 보조 기기로 로그인합니다.
가이드: LINE MCP 서버란 무엇인가요? · LINE MCP 是什麼?Yomi、官方 Bot 與桌面自動化的差異.
비공식. Yomi는 LINE과 제휴하거나 보증하지 않는 독립적인 개인 프로젝트입니다. 이를 사용하면 LINE의 서비스 약관에 위배될 수 있으며, 계정에 추가 클라이언트를 실행하면 속도 제한이나 정지의 위험이 있습니다. 자신의 계정을 읽기 위한 용도입니다. 사용에 따른 책임은 본인에게 있습니다. 면책 조항을 참조하세요.
시작하기
네이티브 데스크톱 미리보기
Yomi Desktop은 LINE 받은 편지함과 로컬 에이전트 작업 공간을 하나의 네이티브 앱에 담습니다. 자체 런타임을 번들로 포함하므로 사용자는 Node를 설치하거나, 터미널을 열거나, 이 저장소를 클론하거나, YOMI_RUN_MJS를 구성할 필요가 없습니다. 네이티브 데스크톱은 아래 설명된 Claude Desktop MCPB 확장과는 별개입니다.
플랫폼 | 일반 사용자 패키지 | 서명 상태 | 설치 경험 |
macOS 14+, Apple Silicon |
| Developer ID 서명 및 Apple 공증 완료 | DMG 열기 → Yomi를 응용 프로그램으로 드래그 → Yomi 열기 |
Windows 10/11 x64 |
| 신뢰할 수 있는 OSS 서명 애플리케이션 진행 중 | 서명 및 설치 프로그램 스모크 테스트 통과 전까지 다운로드 불가 |
macOS 패키지는 실제 다운로드 앱 경로로 테스트되었습니다: 격리된 DMG, /Applications 설치, Gatekeeper 평가, 첫 실행, 번들 런타임 메시지 새로고침, 터미널 없는 LINE 로그인 양식. Windows 설치 프로그램에는 동일한 인앱 전화/PIN 로그인 흐름이 포함되어 있으며 릴리스 전에 네이티브 Windows 러너에서 테스트됩니다.
데스크톱 빌드는 실험적이며 비공식입니다. LINE 변경으로 인해 작동이 중단될 수 있으며, 추가 클라이언트를 실행하면 계정이 위험에 처할 수 있습니다. 테스트 계정을 사용하고 최신 백업을 유지하세요. 미리보기 설치 프로그램은 플랫폼 서명이 가능해진 후에만 GitHub 사전 릴리스로 게시됩니다.
데스크톱 릴리스 프로세스, 코드 서명 정책, 개인정보 보호정책을 참조하세요.
MCP 서버 및 데스크톱 확장
Node.js와 LINE 계정이 필요합니다. Yomi는 npx를 통해 로컬에서 실행됩니다. 이 저장소를 클론하거나, Bun을 설치하거나, 빌드할 필요가 없습니다. 먼저 node --version을 실행하고, 명령이 없거나 버전이 지원되지 않으면 현재 LTS를 설치하세요.
Yomi의 로컬 검색 인덱스는 Node 내장 node:sqlite를 사용하므로 v22.13 이상이 필요합니다 — 단, v23.0–v23.3은 제외됩니다. 이 버전들은 v22.13보다 최신이지만 해당 모듈이 아직 없습니다 (22.13.0과 23.4.0에서 모두 플래그가 해제되었습니다). 현재 LTS는 모두 괜찮습니다. 이것은 package.json의 engines.node입니다. Yomi의 나머지 기능은 이전 Node에서도 실행되지만, 검색, 범위, 캡처는 그렇지 않습니다.
⚠️ Yomi는 사용자 자신의 머신에서 실행하는 클라이언트가 필요합니다. 클라우드 전용 도구(ChatGPT, Claude.ai 웹)는 Yomi를 실행할 수 없습니다. Claude Desktop 또는 Claude Code에서 Yomi를 구성하면 채팅과 Cowork 모두에서 작동합니다. Desktop은 사용자 머신에서 Yomi를 시작하고 Cowork의 로컬 세션이 이를 로드하기 때문입니다. Cowork에게 Yomi를 설치하라고 요청하지 마세요: Cowork의 셸은 사용자 머신이 아닌 일회용 VM 내부에서 실행되므로, 거기에 설치된 것은 세션이 끝나면 사라집니다. 아래 단계를 직접, 자신의 터미널에서 따르세요.
실제로 사용하는 클라이언트를 선택하고 해당 섹션만 따르세요. Claude Code와 Claude Desktop은 별도의 MCP 설정을 가지며, 하나를 구성해도 다른 하나가 구성되지 않습니다.
가장 쉬운 방법이며, 명령줄이 전혀 필요 없는 유일한 방법입니다. Claude Desktop에는 자체 Node 런타임이 포함되어 있으므로 다른 것을 설치할 필요가 없습니다.
최신 릴리스에서 사용자 머신용 번들을 다운로드하세요:
머신
파일
Windows (Intel/AMD)
yomi-win32-x64.mcpbMac (Apple Silicon)
yomi-darwin-arm64.mcpbLinux (x64)
yomi-linux-x64.mcpbClaude Desktop에서 설정 → 확장 프로그램을 열고, 다운로드한 파일을 해당 페이지로 드래그하세요(또는 파일을 더블클릭하세요).
요청하는 내용을 확인하고 설치를 클릭하세요.
대화를 시작하고 *"LINE에 로그인"*이라고 말하세요. Yomi가 양식을 표시하고, 전화번호를 입력하면 휴대폰에서 확인합니다. 어떤 시점에도 터미널이 필요 없습니다.
이 방법은 구성 파일을 완전히 건너뛰므로 아래 설명된 Windows MSIX 버그도 피할 수 있습니다.
Cowork 사용자 참고: Cowork에게 Yomi를 설치하도록 요청하지 마세요. Cowork의 셸은 사용자 머신이 아닌 일회용 VM 내부에서 실행되며, 실제 터미널에 입력하지 않습니다. 위의 세 번의 클릭으로 번들을 직접 설치하세요. 설치되면 Cowork의 로컬 세션에서 다른 도구처럼 Yomi를 사용할 수 있습니다.
npx의 전체 경로를 찾으세요:
macOS / Linux: which npx
Windows: where npxClaude Desktop 구성 파일을 여세요:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json⚠️ Windows: 문서화된 경로가 Claude가 실제로 읽는 경로가 아닐 수 있습니다. Claude Desktop은 MSIX 패키지로 제공되며, 파일 시스템이 가상화되어 있습니다. 앱은 다음 위치에서 구성을 읽습니다:
%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json반면 설정 → 개발자 → 구성 편집은 가상화되지 않은
%APPDATA%\Claude\파일을 엽니다. 이 둘은 동기화되지 않는 서로 다른 파일이므로, 문서화된 경로에 작성된 올바른 Yomi 구성은 조용히 무시됩니다 — 오류도, 로그도 없이 Yomi는 그저 나타나지 않습니다. 이것은 claude-code#26073로, 아직 열려 있습니다. 다시 시작한 후에도 Yomi가 나타나지 않으면 위의LocalCache경로에도 동일한 구성을 작성하세요. (Claude Code 또는 MSIX 외부에 설치된 Desktop에는 해당되지 않습니다.)
mcpServers아래에 Yomi를 추가하고, 예시command를 1단계에서 출력된 전체 경로로 바꾸세요. Windows에서는 JSON에서 경로의 각\를\\로 작성해야 합니다:
{
"mcpServers": {
"yomi": {
"command": "/opt/homebrew/bin/npx",
"args": ["@rikaidev/yomi"]
}
}
}예를 들어 Windows 경로는 "C:\\Program Files\\nodejs\\npx.cmd"처럼 보일 수 있습니다. 두 예시를 맹목적으로 복사하지 말고 자신의 머신에서 보고된 경로를 사용하세요.
⚠️ 여기에 지정한
npx가 Yomi를 실행할 Node를 결정하지 않습니다. macOS와 Linux에서npx는#!/usr/bin/env node로 시작하는 스크립트이므로, 방금 가리킨npx옆에 설치된 Node가 아니라 Claude Desktop의PATH에서 가장 먼저 오는node로 실행됩니다. Desktop은 데스크톱 세션에서PATH를 상속받는데, 이는 종종 터미널의 것과 다르며, 버전 관리자(nvm, fnm, asdf, volta 등)는 자신의node를 다른 모든 것보다 앞에 둡니다. 따라서which npx가 완벽하게 최신 설치를 보고해도 Yomi는 여전히 이전 Node에서 시작될 수 있습니다.증상은 구체적입니다: 로그인, 읽기, 보내기는 모두 작동하지만 검색, 범위, 캡처가 실패하고 로그에
No such built-in module: node:sqlite라고 표시됩니다. Yomi는 해당 오류에서 실제로 사용된 런타임을 출력합니다 — 추측하지 말고 읽어보세요.해결책은 서버에 첫 번째 항목이 지원되는
node를 보유한PATH를 제공하는 것입니다:"yomi": { "command": "<the npx path from step 1>", "args": ["-y", "@rikaidev/yomi"], "env": { "PATH": "<dir holding a supported node><sep><a base PATH>" } }구분자: macOS/Linux에서는
:, Windows에서는;. 그 뒤에 사용 가능한 기본 경로(/usr/local/bin:/usr/bin:/bin또는 플랫폼에 해당하는 것)를 유지하세요 — 이는 서버의PATH에 추가하는 것이 아니라 대체하는 것이며,npx는 일반 도구가 필요합니다.
command에 절대 경로node를 지정하는 것은 아무리 그럴듯해 보여도 작동하지 않습니다:npx는 패키지의 자체 bin을 자식 프로세스로 생성하고 다시PATH에서node를 확인하므로,command는 누가npx를 실행하는지만 결정할 뿐 누가 Yomi를 실행하는지는 결정하지 않습니다. 실제로 서버에 도달하는 것은PATH를 설정하는 것입니다.
AI 에이전트로 구성하시나요? MCP 구성은 이제 손으로 작성하기보다 대부분 에이전트가 작성하므로, 위 단계는 자신의 머신을 읽는 사람을 위해 설명된 것입니다. 에이전트는 자리 표시자를 출력하는 대신 값을 확인해야 하며, 이 설정에는 명확히 언급할 가치가 있는 함정이 하나 있습니다: command에 npx를 지정하는 것은 런타임을 고정하지 않습니다. 절차:
Yomi의 인덱스가 실제로 필요로 하는 모듈을 가진 Node를 찾으세요 — 버전 번호로 추론하지 마세요:
node -e 'require("node:sqlite")' && command -v node # POSIX node -e "require('node:sqlite')" && where node # Windows오류가 발생하면 해당 Node는 검색/범위/캡처에 사용할 수 없습니다. 다른 설치(
which -a node,nvm ls,fnm list, …)를 시도하여 통과하는 것을 찾을 때까지 계속하세요. 그 후에만 계속 진행하세요.위 JSON에 따라 해당 Node의 디렉터리를
env.PATH에 쓰고, 그 뒤에 기본PATH를 유지하세요. 대상 머신에서 디렉터리를 확인하세요(1단계 경로의dirname). 이 README의 예시를 복사하지 마세요 — Apple Silicon Homebrew 경로이며 거의 모든 곳에서 틀립니다.대신
command에 절대 경로node를 넣지 마세요. 더 강력한 수정처럼 보이지만 그렇지 않습니다:npx는 패키지의 bin을 자식 프로세스로 실행하고 그 자식에 대해PATH에서node를 다시 해석하므로,command는 누가npx를 실행할지만 결정합니다. 이는 추측이 아니라 측정된 결과입니다 —PATH의 첫 번째가 Node 20일 때,command고정으로도 서버에 Node 20이 전달되었습니다.command -v는 실제 바이너리 대신 래퍼를 반환할 수도 있습니다 — 힙 셰임, 로컬 우선npx래퍼, 버전 관리자 스텁이 모두 흔하며, 일부는 클라이언트의 작업 디렉터리에 따라 다르게 동작합니다. "진짜" 바이너리를 추론하려 하지 마세요. 3단계가 해결합니다.인덱스에 접근하는 도구로 검증하세요.
yomi version은 검증이 아닙니다 — SQLite를 열지 않고 문자열을 출력하므로 검색을 실행할 수 없는 Node에서도 성공합니다.get_scope_policy를 호출하세요: SQLite가 필요하며 LINE 로그인이 필요 없습니다. 정책 텍스트를 반환하면 런타임이 올바른 것입니다. 실패하면 오류가 실제로 실행된 Node와 필요한 것을 알려줍니다.Claude Desktop을 완전히 종료하고 다시 엽니다. 다른 것보다 먼저 Settings → Developer에서 Yomi가 로드되었는지 확인하세요: Yomi가 목록에 없으면 Claude가 구성을 읽지 않은 것입니다 — Windows에서는 2단계의 MSIX 경고를 참조하세요. 목록에 표시되면 도구는 채팅과 Cowork의 로컬 세션 모두에서 사용할 수 있습니다.
이 설정에 Claude Code를 설치할 필요는 없습니다.
claude mcp add yomi -- npx @rikaidev/yomi새 claude 세션을 시작하세요. Yomi 도구가 자동으로 나타나야 합니다. 이 명령은 Claude Code만 구성합니다. Claude Desktop은 구성하지 않습니다.
이 형식은 런타임을 PATH에 맡깁니다. claude 세션이 해석하는 node가 지원되는 버전이라면 괜찮습니다 — Claude Desktop과 달리 볼 수 있는 것과 같은 PATH입니다. node -e 'require("node:sqlite")'로 확인하세요. 오류가 발생하거나 PATH에 의존하고 싶지 않다면 Node를 명시적으로 지정하세요:
claude mcp add yomi -e PATH="$(dirname "$(command -v node)"):$PATH" -- npx -y @rikaidev/yomi어느 쪽이든 yomi version 대신 get_scope_policy로 검증하세요: 버전 명령은 SQLite를 열지 않고 문자열을 출력하므로 검색을 실행할 수 없는 Node에서도 통과합니다.
이 저장소의 클론 안에서 Claude Code를 실행 중인가요? 스펙을
@rikaidev/yomi@latest로 지정하세요. 태그가 없으면npx가 로컬 bin을 먼저 찾는데, 이 저장소의package.json은"bin": {"yomi": ...}을 선언하지만node_modules/.bin에 링크하지 않으므로npx가 설치를 건너뛰고sh: yomi: command not found로 실패합니다. 명시적 태그를 사용하면 게시된 패키지를 가져옵니다. Yomi 자체의 작업 복사본에만 영향을 줍니다. 다른 곳에서는 태그 없는 형식이 괜찮습니다.
이 표준 구성은 대부분의 MCP 클라이언트에서 작동합니다:
{
"mcpServers": {
"yomi": {
"command": "npx",
"args": ["@rikaidev/yomi"]
}
}
}Cursor Settings → MCP → Add new MCP Server → 이름을 yomi로 지정, 명령 유형, 값: npx @rikaidev/yomi
또는 프로젝트 루트의 .cursor/mcp.json에 추가하세요.
.vscode/mcp.json에 추가:
{
"servers": {
"yomi": {
"command": "npx",
"args": ["@rikaidev/yomi"]
}
}
}~/.config/opencode/opencode.json에 추가:
{
"mcp": {
"yomi": {
"type": "local",
"command": ["npx", "@rikaidev/yomi"],
"enabled": true
}
}
}codex mcp add yomi npx @rikaidev/yomi또는 ~/.codex/config.toml에 추가:
[mcp_servers.yomi]
command = "npx"
args = ["@rikaidev/yomi"]cline_mcp_settings.json에 추가:
{
"mcpServers": {
"yomi": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@rikaidev/yomi"]
}
}
}~/.codeium/windsurf/mcp_config.json에 추가 — 표준 구성과 동일한 JSON입니다.
amp mcp add yomi -- npx @rikaidev/yomiAdvanced settings → Extensions → Add custom extension → 이름 yomi, 유형 STDIO, 명령: npx @rikaidev/yomi
grok mcp add yomi -- npx @rikaidev/yomi첫 로그인
연결되면 에이전트에게 말하세요:
"LINE에 로그인해 줘 — 내 번호는 +8869XXXXXXXX야."
휴대폰에서 기기를 승인하고(Logging in 참조), 다음을 말하세요:
"읽지 않은 LINE을 요약하고 누가 답장을 기다리고 있는지 알려줘."
Related MCP server: line-desktop-mcp
할 수 있는 일
Yomi는 MCP를 통해 20개의 도구를 제공합니다(이름을 붙일 가치가 있는 것들; 표 참조). 큰 읽기 결과는 토큰 효율적인 TOON을 사용하고, 작은 상태 및 쓰기 결과는 간결한 JSON을 사용합니다. 오류는 일반 텍스트로 유지되며 미디어는 네이티브 MCP 이미지/오디오/리소스 콘텐츠를 사용합니다.
아래 "정직한 오류"는 문제를 명명하는 명시적 실패(예: missing_decrypt_material)를 의미합니다 — Yomi는 대체, 자리 표시자, 가짜 성공을 절대 만들지 않습니다.
읽기
도구 | 기능 |
| 일회성: 읽지 않은 메시지가 있는 모든 대화, 각각의 최신 메시지, E2EE 복호화, 발신자 이름 확인. "읽지 않은 메시지 요약하고 다음 단계 제안"에 적합. 읽기 전용 — 아무것도 읽음으로 표시하지 않음. |
| 읽지 않은 수와 복호화된 마지막 메시지 미리보기가 있는 채팅/그룹/룸. 최신 활동 순. |
| 하나의 대화, 복호화됨. |
| 복호화된 모든 첨부 파일(이미지/비디오/오디오/파일). 비미디어에 대한 정직한 오류. |
| 이름 부분 문자열로 친구 목록 검색 또는 전체 목록. 원시 LINE 데이터 — 퍼지 점수, 친밀도 순위 없음. |
| 영구 그룹의 구성원. 그룹 레코드가 없는 임시 룸은 가짜 빈 목록을 반환하는 대신 정직하게 실패. |
인사이트 (메시지뿐 아니라 상황 읽기)
도구 | 기능 |
| 로컬 인덱스에 대한 간결한 컨텍스트 네트워크 — 에이전트가 추론하는 구조이지 메시지 덤프가 아님. |
쓰기 (실제로 전송 — 초안 아님)
도구 | 기능 |
| 지금 E2EE 텍스트 메시지를 전송(1:1은 쌍 키, 그룹/룸은 그룹 키). 선택적 |
| 암호화, LINE OBS에 업로드, 지금 E2EE 이미지를 전송. 1:1, 그룹, 룸 모두 작동. 호출당 한 번 전송. 키를 확인할 수 없거나 업로드가 거부되면 정직한 실패. |
| 상대방이 볼 수 있는 읽음 확인을 전송. 명시적일 때만 — 메시지 읽기 및 백그라운드 캡처는 아무것도 읽음으로 표시하지 않음. |
검색 (로컬, 대화 간 — LINE에는 그러한 기본 기능이 없음)
도구 | 기능 |
| 모든 인덱싱된 대화에 대한 하이브리드 검색. 최초 사용 시 자동 수집하고, 채팅 전반에 걸쳐 결과를 다양화하며, 각 검색 결과 주변의 작은 컨텍스트 창을 반환합니다. 아무것도 숨겨지지 않도록 |
| 로컬 DB에 명시적으로 대량 인덱싱하고 의미 검색을 위해 임베딩합니다. 대량 가져오기가 허용된 유일한 도구이며, 호출당 한 번만 실행되고 타이머로 실행되지 않습니다. |
범위 및 개인정보 보호(모든 작업은 오프라인으로 수행되며 LINE 세션 불필요)
도구 | 기능 |
| 대화를 차단 목록에 추가하고 이미 인덱싱된 데이터를 삭제합니다. 단순히 향후 캡처만 막는 것이 아닙니다. 이전 데이터를 인덱스에 남겨두는 차단 목록은 가짜 개인정보 보호일 뿐입니다. |
| 대화를 다시 허용합니다(삭제된 데이터는 복원하지 않음). |
| 차단 목록 / 전체 개인정보 보호 정책을 표시합니다( |
세션
도구 | 기능 |
| 비밀번호 없는 보조 기기 로그인. 아래 참조. |
로그인
전제 조건: 기본 휴대폰에서 設定 › 我的帳號 › 允許自其他裝置登入 (설정 › 내 계정 › 다른 기기에서 로그인 허용)을 활성화하세요. 이 설정이 없으면 LINE은 이 기기에 로그인 프롬프트를 제공하지 않습니다. 이는 첫 로그인이 멈춘 것처럼 보이는 가장 흔한 원인입니다.
⚠️ 데스크톱 세션 1개 제한: LINE은 계정당 데스크톱 클라이언트 세션을 하나만 허용합니다. Yomi는 데스크톱 보조 기기(
DESKTOPMAC)로 연결되므로, Yomi에 로그인하면 공식 LINE 데스크톱 앱이 로그아웃됩니다(그리고 LINE 데스크톱에 다시 로그인하면 Yomi의 세션이 무효화됩니다). Yomi와 공식 LINE 데스크톱 클라이언트를 동시에 사용할 수 없습니다.
에이전트에게 E.164 형식의 전화번호만 제공하면 됩니다. 도구를 호출할 때 에이전트가
지역을 직접 제공합니다(예: +886 번호의 경우 TW).
Yomi는 LINE의 비밀번호 없는(보조 기기) 흐름을 구동합니다. 로그인이 표시되는 방식은 MCP 클라이언트에 따라 다릅니다:
MCP
elicitation기능이 있는 클라이언트 —login은 전화번호/지역을 입력하라는 프롬프트를 표시하고, 대화 상자에 PIN을 표시하며, 완료될 때까지 차단합니다. 한 번의 호출로 PIN이 모델을 통해 전달되지 않습니다. 전화번호가 대화 기록에 입력되지 않습니다.이 기능이 없는 클라이언트(예: 현재 Claude Desktop) — 두 번의 호출.
login(전화번호 + 지역 포함)은 결과에 PIN을 반환합니다. 기본 휴대폰의 LINE에 PIN을 입력하고 기기를 승인한 다음login_complete을 호출하면 휴대폰이 확인할 때까지 차단됩니다. 에이전트는login_complete을 즉시 호출해야 합니다. 대기 작업을 수행하므로 보고할 내용이 없습니다.터미널에서 —
npx @rikaidev/yomi login은 PIN을 포함한 전체 흐름을 stdout에서 실행합니다. 항상 대체 수단으로 사용할 수 있습니다.
중요한 마감은 LINE의 것입니다: PIN이 표시된 시점부터 입력하고 기기를 승인하는 데 약 3분이 주어집니다. Yomi 자체 클라이언트는 그 이후에도 수 분 동안 계속 수신하므로 느린 휴대폰이 문제가 되는 경우는 없습니다. LINE의 3분 코드 유효 기간만이 유일한 제한입니다.
로그인하면 로그인 인증서를 포함한 세션이 유지되며(아래 참조), 이후 로그인은 PIN을 완전히 건너뜁니다.
대화형 보기를 렌더링하는 클라이언트를 위한 실험적인 MCP Apps UI (
ui://yomi/login카드)도 있습니다. 사양에 맞게 구현되었으며 MCP Inspector에서 렌더링되지만, 일부 호스트는 보기 핸드셰이크를 완료하지 않고 리소스를 가져오므로 표시 전용이며 중요한 경로에 포함되지 않습니다 — 위의 흐름은 항상 작동합니다.
세션 및 자격 증명
Yomi는 자체 로그인을 관리합니다. 시작 시 resumeSession()을 한 번 호출하여
macOS 키체인(서비스 dev.rikai.yomi.credentials, 계정 line)에서 LINE 세션을 읽고
필요한 경우 토큰을 자동으로 갱신합니다.
자사 자격 증명. 비밀번호 없는 로그인은 인증 토큰, 갱신 토큰, 인증서, MID, E2EE 키페어 자체를 유지한 다음 이를 다시 읽어 기록이 실제로 저장되었는지 확인합니다. 유지할 수 없는 로그인은 다음 재시작 시 조용히 실패하지 않고 로그인 시점에 명확하게 실패합니다.
공유 세션. 세션은 표준
dev.rikai.yomi.credentials키체인 항목(또는 로컬 자격 증명 저장소)에 저장되므로 Yomi MCP와 Yomi Desktop이 정확히 동일한 LINE 로그인 세션을 원활하게 공유할 수 있습니다.플랫폼 참고 사항. macOS에서는 세션이 로그인 키체인에 저장됩니다. Linux 및 Windows에서는 Yomi가 현재 로컬 JSON 파일로 대체합니다. 기능은 하지만 OS 비밀 저장소보다 보호 수준이 낮고 macOS 경로보다 덜 검증되었습니다. 네이티브 보안 저장소 백엔드(libsecret / DPAPI)가 계획되어 있습니다. 그때까지는 비-macOS 설치를 그에 맞게 취급하세요.
login과 오프라인 범위/검색 도구를 제외한 모든 도구는 세션이 없을 때 정직한 오류를
반환합니다. Yomi는 그 외에는 순수한 쿼리 서버입니다. 폴링하지 않고 백그라운드에서
백필하지 않으며, 각 도구 호출은 필요한 LINE 요청만 정확히 수행하고 collect_messages만
여러 채팅을 한 번에 가져오는 유일한 경로입니다.
검색
LINE에는 대화 간 검색이 없습니다. Yomi는 로컬에 검색 기능을 구축합니다. 인덱스는
저장소의 gitignore된 SQLite 데이터베이스(data/search-index.db)입니다. 어떤 것도
기기를 떠나지 않습니다.
검색은 설계상 하이브리드입니다. 항상 FTS5 키워드 검색(단어 경계가 없는 CJK 하위 문자열도
포함하도록 bigram 전처리된 텍스트에 대한 bm25)을 실행하고, 임베딩이 존재할 때 의미 검색을
실행한 다음 Reciprocal Rank Fusion으로 두 순위 목록을 융합합니다. 순수 의미 검색은
임베딩되지 않은 메시지에 있는 정확한 일치 항목을 조용히 놓치고, 순수 키워드는 의역을
놓칩니다. 둘을 융합하면 정확한 용어와 의미 일치가 함께 표시됩니다. 응답의 mode 필드는
항상 어떤 방법이 기여했는지 보고합니다.
의미 순위는 각 메시지를 자체 벡터로 유지합니다. 실제 인덱싱된 LINE 대화에 대한 테스트에서 겹치는 대화 창을 임베딩하면 중심 메시지가 희석되고 검색 품질이 저하되는 것을 발견했습니다. 따라서 컨텍스트는 순위가 매겨진 후에만 추가됩니다. Yomi는 한 채팅이 상위 결과를 도배하지 못하도록 제한하고 각 우승 메시지의 양쪽에 두 개의 메시지를 확장하여 에이전트가 검색 결과에 의미를 부여한 대화를 볼 수 있게 하면서도 임베딩 자체는 약화시키지 않습니다.
의미 순위는 transformers.js를 통해 Xenova/bge-small-zh-v1.5(BAAI 범용 임베딩,
소형, 중국어 우선이지만 다국어)를 사용합니다. 임베딩 추론은 완전히 프로세스 내 CPU에서
실행됩니다. 메시지 텍스트가 외부로 전송되지 않습니다.
유일한 주의 사항은 일회성 모델 다운로드입니다. 첫 collect_messages 또는
search_messages에서 transformers.js가 **huggingface.co**에서 모델(~90MB)을 가져와
로컬에 캐시합니다. 이후 모든 실행은 완전히 오프라인입니다. 이 첫 번째 가져오기는
모델 가중치에 대한 HuggingFace로의 아웃바운드 HTTPS 요청입니다. IP 주소와 어떤 모델이
다운로드되는지가 전달되지만 메시지 내용이나 LINE 데이터는 포함되지 않습니다. Yomi를
완전히 에어갭 환경에서 사용해야 한다면 첫 검색 전에 transformers.js 캐시를 미리 채우거나
(또는 로컬 모델 디렉터리를 가리키도록) 설정하여 네트워크 호출이 전혀 발생하지 않도록 하세요.
보조 기기의 현실( "이전 메시지를 가져올 수 없다"는 말을 믿기 전에 읽으세요)
Yomi는 계정의 보조 기기로 실행됩니다. 이는 Yomi가 볼 수 있는 범위를 결정합니다:
Letter Sealing이 없는 그룹 채팅은 LINE 서버에서 평문입니다 — 전체 기록 및 미디어, 제한 없음.
Letter Sealing이 있는 그룹 채팅은 E2EE이며, 여기서 epoch가 중요합니다. 이러한 그룹은 공유 그룹 키로 암호화되며(멤버십 변경 시 또는 클라이언트가 새 키를 프로비저닝할 때) 회전합니다. LINE은 기기에 현재 그룹 키만 제공합니다. 대체된 키를 가져오는 API는 없습니다. 따라서 보조 기기는 보유한 키의 epoch부터 메시지를 해독합니다. Yomi가 현재 키를 얻기 전의 이전 epoch에서 보낸 메시지는 해독 불가능하게 반환될 수 있습니다. 이전 기록을 읽을 수 있는 그룹에서도 마찬가지입니다. 이는 Letter Sealing의 epoch별 그룹 키에 내재된 특성이며 여기의 버그가 아닙니다. 또한 측면으로도 작용할 수 있습니다. 휴대폰이 보유한 epoch와 Yomi가 보유한 epoch가 같을 필요는 없으므로 두 기기가 동일한 그룹의 서로 다른 조각을 각각 읽을 수 있습니다.
Yomi 설치 자체는 아무것도 회전시키지 않으므로 "Yomi 설치 전"은 잘못된 경계입니다. Yomi는 기존 그룹 키를 해석만 하며 새 키를 등록(생성)하지 않습니다. 생성은 그룹의 공유 비밀을 모든 멤버에 대해 회전시키고 이전 키로 암호화된 모든 메시지를 읽을 수 없게 만들기 때문입니다. 따라서 새 설치 시 현재 키를 가져와 마지막 회전 시점까지 읽습니다. 이는 설치보다 수 개월 전일 수 있습니다. 경계는 설치 날짜가 아니라 마지막 재키 변경입니다. 그리고 Yomi가 epoch를 보면 해당 키를 유지하므로 설치 후 회전이 발생해도 양쪽을 모두 읽을 수 있습니다. 그룹이 오늘까지 전부 해독 불가능하게 반환된다면 이는 이 제한이 아닙니다. 보고해 주세요.
1:1 미디어는 계정 수준 E2EE 키체인을 사용하며, 보조 기기가 완전히 보유합니다 (LINE이 페어링 중에 동기화). Yomi는 볼 수 있는 1:1 이미지/파일을 해독할 수 있습니다.
**1:1 기록 백필이 유일한 실제 제한입니다.** LINE은 그룹의 경우처럼 보조 기기에 과거 1:1 메시지 기록을 제공하지 않습니다. Yomi가 연결된 동안 수신된 메시지는 정상적으로 해독되지만, 페어링 이전의 1:1 기록을 깊이 스크롤하면 비어 있을 수 있습니다. 이는 LINE 서버 측 제한이며 여기의 버그가 아닙니다.
해독이 실제로 실패하면 Yomi는 가짜 카드나 자리 표시자가 아닌 명시적인
missing_decrypt_material 오류를 반환합니다. 침묵은 정직한 것이고, 조작된 결과는 그렇지 않습니다.
개발
Yomi 소스 코드에 기여하는 개발자를 위한 내용입니다(bun
또는 Node.js 24+ 필요 — .nvmrc는 CI가 설치하는 것과 동일한 24를 고정하므로 이 디렉터리에서
nvm use를 실행하면 해당 버전을 사용합니다. nvm은 engines를 읽지 않으므로 두 항목이
별도로 명시되고 테스트로 보호됩니다):
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빌드는 타입 검사와 컴파일만 수행합니다. 이 저장소는 자체 빌드의 일부로 실제 LINE
서버와 통신하지 않습니다. MCP 클라이언트를 연결하고 login을 호출하는 것이 실제로
세션을 시작하는 방법입니다.
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).Yomi가 사람을 위해 작성하는 모든 것은 stderr로 출력됩니다. stdout은 MCP JSON-RPC
스트림 전용입니다. 잘못된 console.log는 프로토콜을 손상시킵니다. 서버가 도달할 수 있는
경로에는 추가하지 마세요.
개인정보 보호
기본적으로 Yomi는 모든 대화를 로컬 온디바이스 검색 인덱스에 색인하여 에이전트가 대화 전체를 검색할 수 있게 합니다 — 기본값은 전체 수집이며, 채팅별로 제외할 수 있습니다. 어떤 데이터도 업로드되지 않습니다. 기기를 떠나는 유일한 데이터는 에이전트가 답변에서 직접 노출하는 내용뿐입니다. (Yomi 자체가 수행하는 유일한 비-LINE 네트워크 호출은 첫 검색 시 HuggingFace에서 임베딩 모델을 일회성으로 다운로드하는 것입니다 — 모델 가중치만 들어오고 메시지 내용은 나가지 않습니다. 검색 참조.) PRIVACY.md가 표준 정책이며, Yomi는 연결 시(그리고 get_scope_policy를 통해) 에이전트에게 동일한 텍스트를 제공하여 대량 읽기 전에 기본값을 공개할 수 있게 합니다.
고지 사항
Yomi는 독립적이고 비공식적인 개인 프로젝트로, 학습과 자신의 LINE 계정 접근을 위해 만들어졌습니다. LINE Corporation과 제휴, 승인, 보증 관계가 없습니다. "LINE"은 해당 소유주의 상표입니다.
Yomi를 실행하면 LINE의 서비스 약관을 위반할 수 있으며, 계정에서 추가 클라이언트를 운영하면 해당 계정의 속도 제한 또는 정지가 발생할 수 있습니다. Yomi는 자신의 계정과 데이터에 접근하기 위한 용도로 제작되었습니다. 사용 방법에 대한 책임은 전적으로 사용자에게 있습니다. 이 소프트웨어는 어떠한 종류의 보증도 없이 "있는 그대로" 제공됩니다 — LICENSE 참조.
감사의 말
Yomi의 LINE 프로토콜 구현은 세 가지 오픈소스 프로젝트를 참고하여 작성되었으며, 해당 프로젝트의 필드 레이아웃, E2EE 청크 순서, 요청 형태, Thrift 정의가 이 독립 구현에 기반이 되었습니다:
evex-dev/linejs (MIT) — 요청 형태와 Letter-Sealing E2EE 페이로드 레이아웃.
DeachSword/CHRLINE (BSD-3-Clause) — 프로토콜 필드 레이아웃과 비밀번호 없는 로그인 흐름.
er1ce/LINE-Protocol (Apache-2.0) — Thrift 열거형 정의(ContentType, MessageRelationType, ServiceCode).
해당 라이선스가 요구하는 대로 저작권 고지와 전체 라이선스 전문이 NOTICE에 재현되어 있습니다.
라이선스
MIT
Available Tools
41 toolsaccept_invitationA
Accepts a group/chat invitation for your LINE account — you join the chat. Use for a group you were invited to (its chatId appears with invited status). One accept per call.
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | LINE group/room MID whose invitation to accept, as returned by list_conversations. |
add_friendA
Adds a person to your LINE friends by their MID (e.g. from get_group_members or find_contact). One add per call.
| Name | Required | Description | Default |
|---|---|---|---|
| mid | Yes | MID of the person to add as a friend, e.g. from get_group_members. |
block_contactA
Blocks a contact for your LINE account — they can no longer message you. Reversible with unblock_contact. One block per call.
| Name | Required | Description | Default |
|---|---|---|---|
| mid | Yes | MID of the contact to block. |
cancel_reactionA
Removes this account's reaction from a LINE message. Undoes a react_message. One cancellation per call.
| Name | Required | Description | Default |
|---|---|---|---|
| messageId | Yes | LINE message id whose reaction to remove, as returned by get_chat_messages. |
collect_messagesA
Bulk-fetch recent messages from LINE conversations into Yomi's local cross-conversation search index (LINE has no native cross-chat search). Fetches up to perChat per chat (default 100) for chatIds, or all conversations when omitted, and best-effort embeds them for semantic search — re-running also repairs any messages still missing a vector. A background capture loop keeps the index current on its own, so call this only to force a reconcile or backfill specific chats. Undecryptable messages are skipped, not fabricated.
| Name | Required | Description | Default |
|---|---|---|---|
| chatIds | No | LINE chat/group/room MIDs to collect from, as returned by list_conversations. Omit to collect from all conversations. | |
| perChat | No | Maximum recent messages to fetch per chat (default 100). |
create_groupA
Creates a new LINE group/room immediately with the given members (no message is sent). chatType 0 = group (invitees must accept before joining), 1 = room (members added directly); default 1. Provide name and mids (initial members, e.g. from find_contact). One create per call.
| Name | Required | Description | Default |
|---|---|---|---|
| mids | Yes | MIDs of the initial members to add. | |
| name | Yes | Name for the new group. | |
| chatType | No | LINE chat type: 0 = group (invite-based), 1 = room (direct add). Default 1. |
exclude_chatsA
Add conversations to Yomi's privacy denylist. Excluded chats are (1) skipped by future collect_messages/search_messages auto-collect — never fetched or indexed — and (2) PURGED now: their already-indexed messages and embeddings are deleted from the local index in the same call. A real privacy action, not just a future filter. Local-index operation; works without a live LINE session.
| Name | Required | Description | Default |
|---|---|---|---|
| chatIds | Yes | LINE chat/group/room MIDs to exclude, as returned by list_conversations. |
find_contactA
Find LINE friends whose display name contains name (case-insensitive substring). Returns each match's mid for send_message. Raw friend-list lookup — no ranking, no fuzzy scoring.
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Substring to match against friends' display names, case-insensitive. |
get_chat_messagesA
Fetch messages from one LINE conversation. Text is E2EE-decrypted when keys are available; each message has fromName (resolved sender), a mediaType flag (image/video/audio/file) plus messageId for get_message_media, and mentions (LINE's raw contentMetadata.MENTION, or null — a literal "@name" in text is not itself a mention). Without before, returns the most recent count. With before (id/deliveredTime of the oldest message already seen), returns one older page — repeat to page further back.
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Maximum number of messages to return (default 50). | |
| before | No | Cursor to fetch messages older than this point. Use the id and/or deliveredTime of the oldest message already seen. | |
| chatId | Yes | LINE chat/group/room MID, as returned by list_conversations. |
get_group_membersA
List the members of one LINE group (mid + displayName each). Resolves persistent groups (c...); ad-hoc rooms (r...) without a group record return an honest error, never a fabricated empty list.
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | LINE group chat MID, as returned by list_conversations. |
get_insightA
A compact "what needs my attention" context network over the local index — you make the final call, this assembles the evidence cheaply. Nodes: connectors (people across ≥2 of your chats, with structural bridges) and relationships (per-conversation engagement, reply rhythm, recency). open: conversations whose latest message is NOT yours, ranked by how overdue they are relative to your usual reply rhythm there, each with fromName (last speaker), a preview of the latest message, overdueRatio/typicality, and a lastMessageId pointer. It carries NO message threads and makes NO judgement about addressee, nicknames, or open-request vs closing-ack — those are language understanding you do by reading each preview (a group message may be addressed to someone else, who then owns it), fetching the full thread with get_chat_messages only for the few worth it. Reads across all conversations (denylist-excluded dropped). Empty only when the index is empty.
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | No | Optional focus: restrict `relationships` and `pending` to this chat (as returned by list_conversations). Omit to scan all conversations. | |
| sinceHours | No | Lookback window in hours, measured back from the newest captured message (not wall-clock). Default 504 (21 days). |
get_message_imageA
Download and decrypt one LINE image message. Legacy alias of get_message_media restricted to images; prefer get_message_media for video/audio/file.
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | LINE chat/group/room MID the message belongs to. Required to locate E2EE key material. | |
| preview | No | Fetch the smaller preview object instead of the full-resolution original. | |
| messageId | Yes | LINE message id, as returned by get_chat_messages. |
get_message_mediaA
Download and decrypt one LINE media message of any downloadable type (image, video, audio, file). Returns image/audio MCP content, or an embedded resource blob (with filename when known) for video/file. Non-media messages (text, sticker refs, unsupported types) return an honest error naming the content type — never fabricated bytes.
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | LINE chat/group/room MID the message belongs to. Required to locate E2EE key material. | |
| preview | No | Fetch the smaller preview object instead of the full-resolution original (images/video only). | |
| messageId | Yes | LINE message id, as returned by get_chat_messages. |
get_scope_policyA
Return Yomi's data-capture privacy policy (the disclosure to show the user) plus the current list of excluded conversations. Call this to show the user, in concrete terms, what Yomi captures by default and how to exclude conversations.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
get_unread_digestA
One-shot unread digest: every LINE conversation with unread messages (all pages of the inbox, newest activity first), each with its most recent messages (default 10), E2EE-decrypted, with resolved sender names. Saves calling list_conversations then get_chat_messages per chat. Read-only: never marks anything read, never touches the search index; denylist-excluded conversations are omitted. Returns an empty list when nothing is unread — never fabricated.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of unread conversations to return, most recently active first (default: all of them). | |
| perChat | No | Maximum recent messages to include per unread conversation (default 10). |
include_chatsA
Remove conversations from Yomi's denylist, re-allowing future capture. Does NOT restore data purged when the chat was excluded — capture resumes from empty history going forward. Local-index operation; works without a live LINE session.
| Name | Required | Description | Default |
|---|---|---|---|
| chatIds | Yes | LINE chat/group/room MIDs to re-include. |
invite_memberA
Invites members into a LINE group immediately. Invitees must accept before joining. Provide mids (from find_contact or get_group_members). One call per invite batch.
| Name | Required | Description | Default |
|---|---|---|---|
| mids | Yes | MIDs of the people to invite. | |
| chatId | Yes | LINE group/room MID to invite into, as returned by list_conversations. |
kick_memberA
Removes (kicks) members from a LINE group immediately — they lose access at once (re-adding needs a fresh invite); visible to every member. Provide mids (from get_group_members). One call per removal batch.
| Name | Required | Description | Default |
|---|---|---|---|
| mids | Yes | MIDs of the members to remove. | |
| chatId | Yes | LINE group/room MID to remove members from, as returned by list_conversations. |
leave_groupA
Makes THIS LINE account leave a group immediately — it loses access to the group and its history. One leave per call.
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | LINE group/room MID to leave, as returned by list_conversations. |
list_contactsA
List the authenticated user's full LINE friend list as-is (mid + displayName). No ranking, no interaction-frequency ordering.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
list_conversationsA
List LINE conversations (chats, groups, rooms) with unread counts, a preview of the last message, and a human-readable name (group title, or the other party's display name for a 1:1).
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of conversations to return (default 20). |
list_excluded_chatsA
List the conversations currently on Yomi's privacy denylist. Returns [{ chatId, name }]; name is best-effort resolved when a live LINE session exists, otherwise null — never a fabricated placeholder. Local-index operation; works without a live LINE session.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
list_stickersA
List the sticker packages this LINE account OWNS — the only stickers it can send. Returns each package's packageId (STKPKGID), title, and version (STKVER). Get individual sticker ids via search_stickers, then send_sticker. Read-only.
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Locale for package titles, e.g. 'en' or 'zh-Hant'. Defaults to 'en'. |
loginA
Log in to LINE via the passwordless secondary-device flow. Requires 設定 > 我的帳號 > 允許自其他裝置登入 enabled on the primary phone — with it off LINE never prompts that phone and NO login can succeed, so raise this with the human up front rather than after a failure. On MCP clients with form elicitation, this call first confirms that setting, then prompts for phone/region and PIN and completes login by itself; if the human says the setting is off, it returns the enabling steps without starting a login (relay them verbatim, then call login again). On clients without it (e.g. Claude Desktop), phone/region come from the arguments or a persisted login, and this returns as soon as LINE issues the PIN (or reports none needed) — then call login_complete IMMEDIATELY (do not wait for the human). LINE gives ~3 minutes from PIN display to confirm on the phone; login_complete blocks past that, so calling it late only wastes that window.
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | Phone number in E.164 form, e.g. +8869XXXXXXXX. Omit to be prompted (elicitation) or to reuse a persisted number. | |
| region | No | Region code, e.g. TW, JP, TH, ID, US. Omit to be prompted (elicitation) or to reuse a persisted region. |
login_completeA
Finish a passwordless login that login started on a client without form elicitation (not needed on form-elicitation-capable clients). No arguments. Call immediately after login returns — do not wait for the human. Blocks while they enter the PIN (skipped if a stored certificate is valid) and approve the device, then returns the profile. LINE's real deadline is ~3 minutes from PIN display. Errors if no login is pending.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
mark_readA
Send a LINE read receipt (mark a conversation read up to messageId, or the latest when omitted) — a real action the other party can see. Use ONLY when the user explicitly wants to mark a chat read; reading (get_chat_messages, get_unread_digest) and background capture never mark read. Fails honestly if there is nothing to mark.
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | LINE chat/group/room MID to mark read, as returned by list_conversations. | |
| messageId | No | Optional message id to mark read up to. Omit to mark read up to the latest message. |
preview_stickerA
Show sticker preview images (MCP image content from the public sticker CDN) so you and the user can SEE them before sending. Give a packageId (from list_stickers/search_stickers) to preview its first stickers, or add a stickerId to preview just one. Each image is labeled with its stickerId + packageId for send_sticker. Read-only.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max stickers to preview when no stickerId is given (default 8). | |
| packageId | Yes | Sticker package id (STKPKGID) to preview. | |
| stickerId | No | Optional specific sticker id (STKID) to preview just that sticker. |
react_messageA
Adds a reaction to a LINE message, visible to the conversation. reactionType: 2 = 👍 LIKE, 3 = ❤️ LOVE, 4 = 😆 LAUGH, 5 = 😮 SURPRISE, 6 = 😢 SAD, 7 = 😡 ANGRY (default 2). One reaction per call.
| Name | Required | Description | Default |
|---|---|---|---|
| messageId | Yes | LINE message id to react to, as returned by get_chat_messages. | |
| reactionType | No | Predefined reaction: 2=👍LIKE, 3=❤️LOVE, 4=😆LAUGH, 5=😮SURPRISE, 6=😢SAD, 7=😡ANGRY. Default 2. |
rename_groupA
Renames a LINE group/chat immediately; the new name is visible to every member. Works on groups/rooms (chatId starting with c/r). One rename per call.
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New group name. | |
| chatId | Yes | LINE group/room MID to rename, as returned by list_conversations. |
search_messagesA
Search across your LINE messages. Hybrid ranking: FTS5 keyword search (covers every indexed message, so exact matches are never dropped) fused with semantic similarity when embeddings are available — the mode field reports which contributed (hybrid | semantic | keyword). If the index is empty and a session is live, it auto-collects all conversations first; a populated index searches locally with no network. Empty index with no session returns an honest notice, never a fabricated match list.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return (default 20). | |
| query | Yes | Search query. Plain keywords and natural-language descriptions both work — keyword matching catches exact terms, semantic matching catches paraphrases. |
search_stickersA
Search the account's OWNED sticker packages by title and expand each match into its individual sticker ids (STKID), ready for send_sticker. Case-insensitive substring match on the package title. Read-only.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max matching packages to expand with sticker ids (default 8). | |
| query | Yes | Substring to match against owned package titles (case-insensitive). | |
| language | No | Locale for package titles to match against, e.g. 'en' or 'zh-Hant'. Defaults to 'en'. |
send_audioA
Sends an E2EE audio message to a LINE conversation immediately (same pipeline as send_file). Provide exactly one of filePath or audioBase64; optional durationMs sets the recipient player length. Works for 1:1/group/room. One send per call.
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | LINE chat/group/room MID to send to, as returned by list_conversations. | |
| fileName | No | Optional original filename (used for the upload name; defaults to the basename of filePath or audio.m4a). | |
| filePath | No | Local filesystem path to the audio file. Mutually exclusive with audioBase64. | |
| durationMs | No | Optional audio duration in milliseconds, for the recipient player progress bar. | |
| audioBase64 | No | Base64-encoded audio bytes. Mutually exclusive with filePath. |
send_contactA
Shares a LINE contact card to a conversation immediately — the recipient sees a tappable card for contactMid (e.g. from find_contact or get_group_members). displayName is optional (resolved from the mid when omitted). Works for 1:1/group/room. One send per call.
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | LINE chat/group/room MID to send to, as returned by list_conversations. | |
| contactMid | Yes | MID of the person whose contact card to share, as returned by find_contact or get_group_members. | |
| displayName | No | Optional display name for the card. Resolved from contactMid when omitted. |
send_fileA
Sends an E2EE file attachment (any type — .docx, .pdf, .zip, …) to a LINE conversation immediately (same pipeline as send_image; the original filename is sealed end-to-end). Works for 1:1/group/room; fails honestly if the key cannot be resolved or the upload is rejected. One send per call. Provide exactly one of filePath or fileBase64; fileName is required with fileBase64 (and overrides the basename when given with filePath).
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | LINE chat/group/room MID to send to, as returned by list_conversations. | |
| fileName | No | Original filename shown to the recipient (sealed E2EE). Required with fileBase64; optional with filePath (defaults to its basename). | |
| filePath | No | Local filesystem path to the file. Mutually exclusive with fileBase64. | |
| fileBase64 | No | Base64-encoded file bytes. Mutually exclusive with filePath; requires fileName. |
send_imageA
Sends an E2EE image to a LINE conversation immediately (encrypt → upload to OBS → send). Works for 1:1/group/room; fails honestly if the key cannot be resolved or the upload is rejected. One send per call. Provide exactly one of imagePath or imageBase64.
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | LINE chat/group/room MID to send to, as returned by list_conversations. | |
| imagePath | No | Local filesystem path to the image file. Mutually exclusive with imageBase64. | |
| imageBase64 | No | Base64-encoded image bytes. Mutually exclusive with imagePath. |
send_locationA
Sends a location (map pin) to a LINE conversation immediately — latitude/longitude plus optional title (place name) and address. Works for 1:1/group/room. One send per call.
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional place name shown on the pin. | |
| chatId | Yes | LINE chat/group/room MID to send to, as returned by list_conversations. | |
| address | No | Optional address shown under the pin. | |
| latitude | Yes | Latitude in decimal degrees. | |
| longitude | Yes | Longitude in decimal degrees. |
send_messageA
Sends a text message to a LINE conversation immediately (not a draft). Always E2EE (pairwise for 1:1, group key for group/room); fails honestly rather than sending plaintext if the key cannot be resolved. One send per call. To @mention someone, put the visible "@name " into text AND pass a matching mentions entry — without mentions, "@name" is plain text and notifies no one. Resolve MIDs via get_group_members or find_contact first.
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Plain-text message body, including the literal "@name" text for any mentions — mentions only mark up text that is already there. | |
| chatId | Yes | LINE chat/group/room MID to send to, as returned by list_conversations. | |
| mentions | No | Optional @mentions. Each entry marks a span of `text` as a mention of one user, which LINE highlights and notifies. Omit to send `text` as plain, non-notifying text. | |
| replyToMessageId | No | Optional message id (from get_chat_messages) this replies to — LINE renders a quoted reply. Omit for a normal message. |
send_stickerA
Sends a LINE sticker to a conversation immediately, named by stickerId (STKID) + packageId (STKPKGID). Only OWNED stickers can be sent — get ids from search_stickers/list_stickers. Works for 1:1/group/room. One send per call.
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | LINE chat/group/room MID to send to, as returned by list_conversations. | |
| version | No | Sticker version (STKVER). Defaults to "1". | |
| packageId | Yes | LINE sticker package id (STKPKGID). | |
| stickerId | Yes | LINE sticker id (STKID). |
send_videoA
Sends an E2EE video to a LINE conversation immediately (same pipeline as send_file; uses LINE chunked video encryption so it plays and integrity-verifies on official clients). Provide exactly one of filePath or videoBase64; optional durationMs sets the scrubber length. Works for 1:1/group/room. One send per call.
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | LINE chat/group/room MID to send to, as returned by list_conversations. | |
| fileName | No | Optional original filename (used for the upload name; defaults to the basename of filePath or video.mp4). | |
| filePath | No | Local filesystem path to the video file. Mutually exclusive with videoBase64. | |
| durationMs | No | Optional video duration in milliseconds, for the recipient player scrubber. | |
| videoBase64 | No | Base64-encoded video bytes. Mutually exclusive with filePath. |
unblock_contactA
Unblocks a previously blocked contact for your LINE account. Undoes block_contact. One unblock per call.
| Name | Required | Description | Default |
|---|---|---|---|
| mid | Yes | MID of the contact to unblock. |
unsend_messageA
Retracts (unsends) one of YOUR OWN LINE messages for everyone — deletes it from the conversation for all participants and CANNOT be undone. LINE allows unsending only your own messages. SAFETY GATE: you must pass confirm: true, or the call refuses so it can never fire by accident. One unsend per call.
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true to proceed. Retraction is irreversible; the call refuses unless this is explicitly true. | |
| messageId | Yes | LINE message id to retract (must be your own), as returned by get_chat_messages. |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v0.6.2- Changed
get_unread_digest1 field changed- changed
Input schema / properties / limit / descriptionPrevious value: -"Maximum number of conversations to scan for unread (default 20)."New value: +"Maximum number of unread conversations to return, most recently active first (default: all of them)."
39 tool updates
v0.4.1- Added
accept_invitation - Added
add_friend - Added
cancel_reaction - Added
collect_messages - Added
create_group - Added
exclude_chats - Added
find_contact - Added
get_chat_messages - Added
get_group_members - Added
get_insight - Added
get_message_image - Added
get_message_media - Added
get_scope_policy - Added
get_unread_digest - Added
include_chats - Added
invite_member - Added
kick_member - Added
leave_group - Added
list_contacts - Added
list_conversations - Added
list_excluded_chats - Added
list_stickers - Added
login_complete - Added
mark_read - Added
preview_sticker - Added
react_message - Added
rename_group - Added
search_messages - Added
search_stickers - Added
send_audio - Added
send_contact - Added
send_file - Added
send_image - Added
send_location - Added
send_message - Added
send_sticker - Added
send_video - Added
unblock_contact - Added
unsend_message
38 tool updates
v0.3.0- Removed
accept_invitation - Removed
add_friend - Removed
cancel_reaction - Removed
collect_messages - Removed
create_group - Removed
exclude_chats - Removed
find_contact - Removed
get_chat_messages - Removed
get_group_members - Removed
get_message_image - Removed
get_message_media - Removed
get_scope_policy - Removed
get_unread_digest - Removed
include_chats - Removed
invite_member - Removed
kick_member - Removed
leave_group - Removed
list_contacts - Removed
list_conversations - Removed
list_excluded_chats - Removed
list_stickers - Removed
login_complete - Removed
mark_read - Removed
preview_sticker - Removed
react_message - Removed
rename_group - Removed
search_messages - Removed
search_stickers - Removed
send_audio - Removed
send_contact - Removed
send_file - Removed
send_image - Removed
send_location - Removed
send_message - Removed
send_sticker - Removed
send_video - Removed
unblock_contact - Removed
unsend_message
40 tool updates
v0.2.0- First observed
accept_invitation - First observed
add_friend - First observed
block_contact - First observed
cancel_reaction - First observed
collect_messages - First observed
create_group - First observed
exclude_chats - First observed
find_contact - First observed
get_chat_messages - First observed
get_group_members - First observed
get_message_image - First observed
get_message_media - First observed
get_scope_policy - First observed
get_unread_digest - First observed
include_chats - First observed
invite_member - First observed
kick_member - First observed
leave_group - First observed
list_contacts - First observed
list_conversations - First observed
list_excluded_chats - First observed
list_stickers - First observed
login - First observed
login_complete - First observed
mark_read - First observed
preview_sticker - First observed
react_message - First observed
rename_group - First observed
search_messages - First observed
search_stickers - First observed
send_audio - First observed
send_contact - First observed
send_file - First observed
send_image - First observed
send_location - First observed
send_message - First observed
send_sticker - First observed
send_video - First observed
unblock_contact - First observed
unsend_message
TDQS
Scored across 41 tools
Most tools target a distinct resource+action, and descriptions actively disambiguate the tricky clusters (get_unread_digest vs list_conversations vs get_insight; find_contact vs list_contacts; search_stickers vs list_stickers). The only real overlaps are the explicitly-flagged legacy alias get_message_image vs get_message_media and collect_messages vs search_messages' auto-collect, both of which are documented so an agent won't misselect.
Nearly every tool follows a clean snake_case verb_noun pattern (get_*, list_*, send_*, search_*, create_/rename_/invite_/kick_/leave_group, block_/unblock_contact). The send_* family, group-management family, and privacy family are each internally uniform. Only 'login' / 'login_complete' deviate slightly, which is negligible.
41 tools is heavy and sits well above the comfortable 3-15 range, largely because seven distinct send_* variants (message/image/file/audio/video/location/contact/sticker) plus a full login pair inflate the surface. Each tool is genuinely distinct and earns its place in a rich LINE domain, but some consolidation (e.g. a single send_media with a type param) would be reasonable.
The surface covers the full lifecycle: auth (login/login_complete), conversation listing/search/digest/insight, message fetch and media download, all outbound message types, group CRUD and membership, contact add/block/find, reactions/unsend, stickers, and a complete privacy denylist lifecycle (exclude/include/list/policy). No obvious dead ends for the stated purpose.
Maintenance
Related MCP Connectors
Read, search and reply to your WhatsApp chats from your AI, using your own number.
Email for AI agents: read, search and send from your Gmail, Outlook, Yahoo, iCloud or IMAP inbox.
WhatsApp for Claude, ChatGPT or any AI agent: search, reply and send. Personal or Business API.
Read-only WhatsApp MCP for your AI agent: it reads the chats you choose. Try the public demo.
Related MCP Servers
- AlicenseAqualityCmaintenanceOperate your LINE Official Account from any AI agent through natural language.37339 npm102MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI tools to read and send messages through LINE Desktop via MCP, supporting manual or automatic sending without official LINE API tokens.118 npm127MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI tools to read and send LINE messages by automating the LINE Desktop application, with macOS OCR-based reading and idle-aware scheduling.118 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to read, search, and reply to personal LINE messages, including end-to-end-encrypted chats and media, all decrypted locally.MIT