How curzer1995-777/line-local-mcp-user-key works
LINE Local MCP is a read-only macOS MCP server for searching a user's local LINE Desktop history. An AI client connects through the CLI-launched MCP server, uses tools to check readiness, find chats, read conversations, search messages, or gather recent activity, and receives results with sensitive text redacted by default. Repository operations query disposable encrypted database snapshots using a user-provided Keychain key; the project does not send messages or modify LINE data. The README documents STDIO and loopback HTTP transports. Repository excerpts are partial, so connections among unsampled implementation details are omitted.
Main entry points: repository.py History repository · server.py MCP server · cli.py CLI launcher · database.py Snapshot database
Components 14
MCP entry
- CLI launcher
src/line_local_mcp/cli.py - MCP server
src/line_local_mcp/server.py
Read tools
- LINE status
src/line_local_mcp/server.py - List chats
src/line_local_mcp/server.py - Get messages
src/line_local_mcp/server.py - Search messages
src/line_local_mcp/server.py - Recent activity
src/line_local_mcp/server.py
History access
- History repository
src/line_local_mcp/repository.py - Snapshot database
src/line_local_mcp/database.py
Key and privacy
- Sensitive text filter
src/line_local_mcp/redaction.py - Runtime settings
src/line_local_mcp/config.py
Other components
- AI client
- LINE local database
- macOS Keychain
Connections 20
- AI client → CLI launcher: starts
- CLI launcher → MCP server: launches
- MCP server → LINE status: dispatches
- MCP server → List chats: dispatches
- MCP server → Get messages: dispatches
- MCP server → Search messages: dispatches
- MCP server → Recent activity: dispatches
- LINE status → History repository: calls status
- List chats → History repository: lists chats
- Get messages → History repository: reads messages
- Search messages → History repository: searches text
- Recent activity → History repository: loads activity
- History repository → Snapshot database: queries
- Snapshot database → LINE local database: copies snapshot
- Snapshot database → macOS Keychain: reads key
- History repository → Sensitive text filter: filters text
- History repository → Runtime settings: uses settings
- CLI launcher → History repository: checks status
- CLI launcher → macOS Keychain: stores key
- MCP server → AI client: serves results