line-bot-ops-mcp
line-bot-ops-mcp lets you operate and debug your own LINE bot from any MCP client, covering LINE Official Account info, messaging, Rich Menus, followers, users, and the webhook job queue.
Check Official Account info and monthly push/broadcast quota.
View daily follower insights: followers, targeted reaches, blocks.
Get a LINE user's profile.
List Rich Menus and identify the default menu.
Send text to one user, group, or room (push), or broadcast to all friends if explicitly enabled.
Link or remove a Rich Menu for a specific user.
Inspect webhook queue health: status counts, oldest pending job, stuck processing.
List recent failed jobs with errors, event type, and message text.
Retry failed jobs back to pending.
Search linked users by display name or role.
Provides tools for operating a LINE bot via the LINE Messaging API, including retrieving bot info, messaging quota, follower insights, and user profiles; listing and linking Rich Menus; pushing text messages to users, groups, or rooms; and optionally broadcasting to all friends.
Provides tools for monitoring and managing a LINE bot's webhook job queue stored in Supabase, including checking queue health, listing recent failed jobs, retrying failed jobs back to pending, and searching linked users by display name or role.
line-bot-ops-mcp
MCP server for running your own LINE bot from Claude, Cursor or any MCP client. It covers the part generic LINE MCP servers can't: your bot's webhook queue. Ask why a message was never answered, see the failed jobs, and put them back in the queue.
"Why did the bot stop replying?" →
line_queue_health,line_failed_jobs,line_retry_job"How many followers did we gain yesterday, and how much push quota is left?" "Switch user U123… to the seller menu."
Tools
Tool | What it does | Needs |
| Display name, basic ID, chat mode of the Official Account | LINE |
| Monthly push quota and how much is used | LINE |
| Followers, targeted reaches and blocks for one day | LINE |
| Profile of one user who added the bot | LINE |
| All Rich Menus, and which is the default | LINE |
| Send a text to one user, group or room | LINE |
| Show a specific Rich Menu to one user, or remove it | LINE |
| Jobs per status, age of the oldest pending job, jobs stuck in processing | Supabase |
| Most recent failed jobs with their error and message text | Supabase |
| Put a failed job back to pending | Supabase |
| Search linked users by display name or role | Supabase |
| Send to every friend. Only registered when | LINE |
The LINE tools work with any Messaging API channel. The queue tools expect the line_jobs and
line_users tables in schema.sql, which is the schema every project generated by
create-line-bot already has. If your bot
doesn't use a queue, leave the Supabase variables unset and use the LINE tools only.
Related MCP server: LINE Bot MCP Server
Setup
{
"mcpServers": {
"line-bot-ops": {
"command": "npx",
"args": ["-y", "line-bot-ops-mcp"],
"env": {
"LINE_CHANNEL_ACCESS_TOKEN": "...",
"SUPABASE_URL": "https://<project>.supabase.co",
"SUPABASE_SERVICE_ROLE_KEY": "..."
}
}
}
}With Claude Code:
claude mcp add line-bot-ops -e LINE_CHANNEL_ACCESS_TOKEN=... -e SUPABASE_URL=... -e SUPABASE_SERVICE_ROLE_KEY=... -- npx -y line-bot-ops-mcpOr as a Claude Code plugin, which asks for the values below and adds a triage skill:
claude plugin marketplace add MankhongGarden/line-bot-ops-mcp
claude plugin install line-bot-ops@mankhonggardenVariable | Required | |
| for LINE tools | Long-lived channel access token |
| for queue tools |
|
| for queue tools | Server-side only. Never ship it to a browser |
| no |
|
The server starts without any of these. A tool whose credentials are missing returns an error naming the variable.
Safety
Broadcast is off unless you opt in, because it messages every friend and can't be undone.
Every tool declares all four MCP hints (read-only, destructive, idempotent, open-world). Only push, Rich Menu changes, retries and broadcast are marked as writes, and all but push are marked destructive.
LINE IDs are validated (
U/C/R+ 32 hex,richmenu-+ 32 hex) before anything is sent, so tool input can't reach other LINE API paths.The channel access token is only ever sent to
https://api.line.me; the service role key only to your ownSUPABASE_URL.line_retry_jobonly moves jobs that arefailed. Reply tokens expire soon after the event, so a retried job that replies may fail again; push is the fallback.
Development
npm install
npm test # builds, then runs the tool contract tests with a mocked LINE APIRelated
create-line-bot: scaffolds the bot this server is built to operate (fast-ack webhook, queue, idempotency, LIFF).
Surviving LINE's 5-second webhook timeout on Vercel: why the queue exists.
Privacy
Runs locally and collects nothing. See PRIVACY.md for exactly what is sent where.
License
MIT
Available Tools
12 toolsline_bot_infoARead-only
Basic info about the LINE Official Account this bot runs on: display name, basic ID, chat mode.
Inputs: no named parameters.
line_broadcastADestructive
Send a text message to EVERY friend of the account. Uses one message of quota per recipient and cannot be undone.
Inputs: message (required).
line_failed_jobsBRead-only
Most recent failed jobs with their error, event type and message text.
Inputs: limit.
line_find_usersBRead-only
Search linked users (line_users) by display name and/or role.
Inputs: name, role, limit.
line_followers_insightARead-only
Follower statistics for one day: followers, targeted reaches, blocks. LINE computes these per day in UTC+9 and only after the day ends.
Inputs: date.
line_get_profileARead-only
Display name, picture and status message of a user who has added the bot as a friend.
Inputs: userId (required).
line_message_quotaARead-only
Monthly push/broadcast message quota and how much of it has been used this month.
Inputs: no named parameters.
line_push_textA
Send a text message to one user, group or room. Counts against the monthly message quota.
Inputs: to (required), message (required).
line_queue_healthARead-only
Health of the webhook job queue (line_jobs): count per status, age of the oldest pending job, and jobs stuck in processing. Use this first when users say the bot is not replying.
Inputs: no named parameters.
line_retry_jobAIdempotent
Put a failed job back to pending so the next worker run picks it up. Reply tokens expire soon after the event, so a job that replies may fail again; push is the fallback.
Inputs: jobId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool targets a distinct operation: user lookup vs profile retrieval, push vs broadcast, queue health vs failed job listing vs retry, and rich menu listing vs linking. Overlaps are minimal and descriptions clearly differentiate scope.
All tools share a 'line_' prefix and snake_case, but the naming pattern mixes verb_noun (line_find_users, line_get_profile) with noun_noun or noun_list (line_bot_info, line_message_quota, line_richmenu_list). The inconsistency is still readable but not fully predictable.
12 tools is well-scoped for LINE bot operations, covering messaging, monitoring, user lookup, and rich menu management without redundancy. Each tool earns its place.
The surface covers core ops like sending messages, monitoring quota and queues, retrying jobs, and inspecting users. Minor gaps exist: rich menu creation/deletion, non-text message types, and group/room management are missing but likely out of scope.
Maintenance
Related MCP Connectors
MCP server for customer-io
Unified messaging MCP server: WhatsApp, Instagram, Telegram, SMS, Messenger & email support inbox
- messagingDeprecatedcom.sendseven
Unified messaging MCP server: WhatsApp, Instagram, Telegram, SMS, Messenger & email support inbox
PagerDuty's official hosted MCP server: incidents, on-call, services, schedules and more.
Related MCP Servers
- AlicenseAqualityDmaintenanceAI-powered MCP server for managing LINE Official Accounts. Send broadcasts, push messages, check analytics, manage rich menus — all through natural language via Claude, ChatGPT, or Cursor. 10 tools included: * Account info, friend count, message quota * Broadcast, push message, multicast * Delivery stats, user profiles, follower list * Rich menu management Supports 95M+ LINE users across Jap10MIT

LINE Bot MCP Serverofficial
AlicenseAqualityBmaintenanceMCP server that integrates the LINE Messaging API to enable AI agents to send messages and manage LINE Official Accounts.122,913 npm807Apache 2.0- AlicenseNot gradedqualityDmaintenanceMCP server for LINE Messaging API — send messages, manage groups, rich menus, webhooks, and more through 25 tools.7 npmMIT
- AlicenseAqualityCmaintenanceMCP server for LINE Messaging API that allows AI agents to send messages, manage groups, configure rich menus, and query analytics.44MIT