lineMCP
Provides tools for interacting with a personal LINE account, including checking account status, listing chats, retrieving recent messages, and sending text messages through a two-step prepared-draft confirmation flow.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
lineMCP
Personal, single-account LINE MCP server for Cloudflare Workers. It uses
linejs and is intentionally restricted
to an allowlisted GitHub user.
Included tools
line_account_statusline_list_chatsline_get_recent_messagesline_prepare_text_messageline_send_prepared_message
Messages are text-only. Sending is always a two-step operation: prepare a draft, then consume its five-minute, one-time confirmation token.
Related MCP server: line-desktop-mcp
First deployment
The required dedicated KV namespaces are already configured in
wrangler.jsonc; do not reuse them for another application.Create a GitHub OAuth App. Its callback URL is
https://<worker-domain>/oauth/github/callback; the same app also secures/admin/login.Copy
.dev.vars.exampleto.dev.varsfor local development. For each Cloudflare environment, setGITHUB_CLIENT_ID,GITHUB_CLIENT_SECRET,LINE_STATE_ENCRYPTION_KEY,LINE_EMAIL, andLINE_PASSWORDusingwrangler secret put. The LINE email and password are Cloudflare secrets and are never accepted through the admin page or stored in Durable Object storage.Run
npm installandnpm run check. Cloudflare deployment is performed through the Cloudflare MCP, not GitHub Actions.Open
https://<worker-domain>/admin/login, authenticate with the allowlisted GitHub user, and begin LINE email/password login. If LINE asks for it, confirm the displayed PIN in the LINE app. Do not expose this URL to untrusted users.
Connect an MCP client to https://<worker-domain>/mcp. The server publishes
OAuth discovery endpoints automatically; authorize with the configured GitHub
account.
Operations and security
LINE authentication tokens, certificates, and E2EE state are encrypted with
LINE_STATE_ENCRYPTION_KEYinside the single Durable Object. The initial LINE email and password remain Cloudflare secrets.Only audit metadata is stored: action, actor, time, hashed chat ID, text length, and outcome. Message bodies and credentials are not logged.
The send limit is 20 messages per 10 minutes. Confirmation tokens are bound to the GitHub user and cannot be reused.
linejsis a SelfBot library. Use only an account you control and review LINE's current terms and account-risk implications before deploying.
Related MCP Connectors
WhatsApp (Web + Business API), SMS, contacts, and call records via 2Chat's MCP server.
Managed MCP gateway with OAuth, per-agent permissions, shared accounts and activity logs.
Unified messaging MCP server: WhatsApp, Instagram, Telegram, SMS, Messenger & email support inbox
Hosted MCP messaging across owners, tools, and machines, with readable transcripts.
Related MCP Servers
AlicenseAqualityAmaintenanceMCP server that integrates the LINE Messaging API to enable AI agents to send messages and manage LINE Official Accounts.122,633 npm797Apache 2.0- AlicenseAqualityBmaintenanceEnables automation of LINE messaging through the Chrome extension, allowing users to check status, list chat rooms, read messages, search conversations, and manage login sessions via MCP tools.6MIT
- FlicenseNot gradedqualityAmaintenanceEnables sending text, photo, and video messages, browsing and searching conversations, retrieving user details, downloading shared or uploaded media, and managing message status through MCP clients.-
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to operate a personal LINE account through MCP, listing friends and groups, retrieving and searching message history, and sending text, mentions, and registered media. Also supports group creation, display-name changes, and reply drafting based on owner-approved conversation history.1MIT