zendbot-line-mcp-server
Allows interaction with LINE Official Account messaging through an existing console proxy, providing tools to inspect quota, usage, followers, and estimated cost; list known contacts; look up user profiles; and send text messages to one user, multiple users, or all followers (broadcast requires explicit confirmation).
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.
zendbot-line-mcp-server
Remote MCP server that lets Claude (Cowork / claude.ai) send and inspect LINE OA
messages for ทัวริสอัส, by proxying the already-deployed zendbot-line-console
Worker instead of talking to the LINE Messaging API directly.
Claude / Cowork ──MCP (Streamable HTTP)──▶ zendbot-line-mcp-server (this repo)
│ HTTPS + X-Console-Password
▼
zendbot-line-console Worker (existing)
│ Bearer <LINE token>
▼
LINE Messaging APINo new LINE channel token, no duplicated sending logic — this is a thin, auth-gated adapter in front of the console you already run in production.
Tools exposed
Tool | Type | What it does |
| read-only | Quota/usage/followers/estimated cost |
| read-only | Known contacts (userId, name, last seen) |
| read-only | Look up one user's display name by userId |
| write | Text message to ONE user |
| write | Text message to a specific list of userIds |
| write, destructive | Text message to ALL followers — requires |
All five map onto the console's existing /api/dashboard, /api/contacts,
/api/profile, and /api/send (push/multicast/broadcast) routes.
Related MCP server: Cloudflare Workers MCP Server
1. Configure
Edit wrangler.jsonc → vars.CONSOLE_BASE_URL to your deployed
zendbot-line-console Worker URL (the same one the console's frontend calls),
e.g.:
"vars": {
"CONSOLE_BASE_URL": "https://zendbot-line-console.<your-account>.workers.dev"
}2. Install & set secrets
npm install
# Bearer token Cowork/claude.ai will present to THIS server.
# Generate one yourself, e.g.: openssl rand -hex 32
npx wrangler secret put MCP_AUTH_TOKEN
# Same value as the CONSOLE_PASSWORD secret already set on zendbot-line-console.
npx wrangler secret put CONSOLE_PASSWORDThese are two different secrets on purpose:
MCP_AUTH_TOKENprotects this MCP server from anyone else calling it.CONSOLE_PASSWORDis what this server forwards to the console — it never touches the LINE channel access token itself, which stays only on the console Worker as today.
3. Deploy
npx wrangler deployNote the URL it prints, e.g. https://zendbot-line-mcp-server.<account>.workers.dev.
The MCP endpoint is the Worker root (no /mcp suffix needed — the whole
fetch handler is the MCP handler).
4. Test locally (optional but recommended)
npx wrangler devIn another terminal:
npx @modelcontextprotocol/inspectorPoint the Inspector at http://localhost:8787 with a Streamable HTTP
transport and an Authorization: Bearer <MCP_AUTH_TOKEN> header, then try
line_get_dashboard first (read-only, safe) before any send tool.
5. Register as a custom connector in claude.ai / Cowork
claude.ai → Settings → Connectors → Add custom connector
URL: the Worker URL from step 3
Auth: Bearer token = the
MCP_AUTH_TOKENyou set in step 2Save, then enable it for the chat/session you want to use it in
Cowork will then list line_get_dashboard, line_send_push_message, etc. as
callable tools.
Safety notes
line_send_broadcast_messagewill refuse to send unlessconfirm: trueis explicitly passed — treat this the same as any other "post publicly" action: get explicit approval for the exact message text before approving that confirm flag.Nothing here reads or stores the LINE channel access token — it stays on
zendbot-line-consoleexactly as today (CLEARKEY principle preserved).Rotate
MCP_AUTH_TOKENany time by re-runningnpx wrangler secret put MCP_AUTH_TOKENand updating the connector in claude.ai.
Extending
Natural next tools to add (same pattern — wrap another /api/* route):
line_send_flex_message (booking/quote/invoice worksheets), line_send_sticker
(official or brand stickers), line_list_followers. Add each as a
server.registerTool(...) block in src/index.ts following the existing ones.
This server cannot be deployed
Maintenance
Related MCP Connectors
The bridge from K2 agents through Wrangler to your master AI - safe, approval-gated Cloudflare ops.
Your own WhatsApp in Claude and ChatGPT: read chats, draft replies, send messages you approve.
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
Read and answer your team's WhatsApp and email inbox from Claude or ChatGPT. OAuth sign-in.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables sending LINE messages (push, multicast, broadcast), retrieving user profiles, checking quotas, and sending flex messages via Claude using the LINE Messaging API.256 npmApache 2.0
- AlicenseAqualityDmaintenanceEnables managing Cloudflare Workers through Claude, with read-only tools for listing and viewing workers, and planned deployment of static sites and worker scripts via natural language.2218 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables controlling Lovense toys from the Claude app in natural language by forwarding commands through Lovense's official cloud API from a stateless Cloudflare Worker, with tools for pairing, vibration, thrusting, presets, custom patterns, and emergency stop. Deployment requires only a one-time setup, after which no computer needs to stay on.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to operate one or many LINE Official Accounts through natural language — sending broadcasts, Flex/Rich/card messages, building rich menus, coupons, audiences, insights, and LINE Shopping operations, with pre-flight quota checks and quiet-hour guardrails.1,491 npmMIT