Line Bot Ops MCP

Communauté Santé

Operate your own LINE bot: webhook queue health, failed jobs and retries, plus push, Rich Menu swap, follower insight and quota. LINE tools work with any Messaging API channel.

Installation

Les étapes d'installation sont dans la documentation ci-dessous. Documentation

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. line-bot-ops-mcp
  2. Tools
  3. Setup
  4. Safety
  5. Development
  6. Related
  7. Privacy
  8. License

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

ToolWhat it doesNeeds
line_bot_infoDisplay name, basic ID, chat mode of the Official AccountLINE
line_message_quotaMonthly push quota and how much is usedLINE
line_followers_insightFollowers, targeted reaches and blocks for one dayLINE
line_get_profileProfile of one user who added the botLINE
line_richmenu_listAll Rich Menus, and which is the defaultLINE
line_push_textSend a text to one user, group or roomLINE
line_link_richmenuShow a specific Rich Menu to one user, or remove itLINE
line_queue_healthJobs per status, age of the oldest pending job, jobs stuck in processingSupabase
line_failed_jobsMost recent failed jobs with their error and message textSupabase
line_retry_jobPut a failed job back to pendingSupabase
line_find_usersSearch linked users by display name or roleSupabase
line_broadcastSend to every friend. Only registered when LINE_MCP_ALLOW_BROADCAST=trueLINE

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.

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-mcp

Or 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@mankhonggarden
VariableRequired
LINE_CHANNEL_ACCESS_TOKENfor LINE toolsLong-lived channel access token
SUPABASE_URLfor queue toolsNEXT_PUBLIC_SUPABASE_URL is accepted too, so a Next.js .env.local works as is
SUPABASE_SERVICE_ROLE_KEYfor queue toolsServer-side only. Never ship it to a browser
LINE_MCP_ALLOW_BROADCASTnotrue to register line_broadcast

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 own SUPABASE_URL.
  • line_retry_job only moves jobs that are failed. 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 API

Privacy

Runs locally and collects nothing. See PRIVACY.md for exactly what is sent where.

License

MIT

Questions fréquentes

Qu'est-ce que Line Bot Ops MCP ?

Operate your own LINE bot: webhook queue health, failed jobs and retries, plus push, Rich Menu swap, follower insight and quota. LINE tools work with any Messaging API channel.

Comment installer Line Bot Ops MCP ?

Suivez les étapes d'installation de sa documentation, affichée sur cette page et dans son dépôt.

Line Bot Ops MCP est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient Line Bot Ops MCP ?

Il est publié par MankhongGarden. AI.tn le référence sans le maintenir ni le recommander.

Issu des listes communautaires awesome-mcp-servers et du dépôt GitHub du projet. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.