LINE MCP server

OfficialLINE591Config last verified Jun 1, 2026

LINE's official MCP server: push and broadcast text and flex messages, manage rich menus, and read profiles from your LINE Official Account.

LINE Bot MCP Server is LINE's official integration that connects an AI agent to a LINE Official Account through the LINE Messaging API. With it, an agent can push a text or richly-formatted flex message to a specific user, broadcast a message to every follower of the account, and look up a follower's profile — closing the loop with customers on the channel that dominates messaging in Japan, Taiwan, and Thailand.

Beyond sending, it manages the account's rich menus: list them, create a new one (with automatic image generation from the actions you specify), set or clear the default menu, and delete menus. It can also report the account's monthly message quota and current consumption, and fetch the user IDs of followers. The server runs over stdio via npx (@line/line-bot-mcp-server) or as a Docker container and authenticates with a CHANNEL_ACCESS_TOKEN from the LINE Developers console; an optional DESTINATION_USER_ID sets a default recipient. It is Apache-2.0 licensed and is offered by LINE as a preview/experimental integration, so treat it accordingly in production.

Quick install

Copy-paste configs are provided for all 8 supported clients. Pick your client below.

Add to ~/.claude.json

~/.claude.json
json
{
  "mcpServers": {
    "line": {
      "command": "npx",
      "args": [
        "-y",
        "@line/line-bot-mcp-server"
      ],
      "env": {
        "CHANNEL_ACCESS_TOKEN": "<CHANNEL_ACCESS_TOKEN>",
        "DESTINATION_USER_ID": "<DESTINATION_USER_ID>"
      }
    }
  }
}
Or via CLI
bash
claude mcp add line -- npx -y @line/line-bot-mcp-server

Available tools

ToolDescription
push_text_messageSend a simple text message to a user via the LINE Messaging API.
push_flex_messageSend a customizable flex message to a user via the LINE Messaging API.
broadcast_text_messageBroadcast a text message to all followers of the LINE Official Account.
broadcast_flex_messageBroadcast a customizable flex message to all followers of the LINE Official Account.
get_profileRetrieve a LINE user's profile information.
get_message_quotaGet the account's monthly message limit and current usage.
get_rich_menu_listRetrieve the rich menus configured for the account.
delete_rich_menuDelete a rich menu by ID.
set_rich_menu_defaultSet a rich menu as the account's default.
cancel_rich_menu_defaultRemove the default rich menu setting.
create_rich_menuBuild and deploy a new rich menu with the actions you specify, generating its image automatically.
get_follower_idsGet the user IDs of the account's followers.

Required configuration

  • CHANNEL_ACCESS_TOKENRequired

    Channel access token for your LINE Official Account. Required.

  • DESTINATION_USER_IDOptional

    Default LINE user ID to receive messages. Optional.

What you can do with it

Notify a customer from your agent

When a workflow finishes, the agent calls push_text_message or push_flex_message to send the result to a specific LINE user, formatting a flex message for receipts, confirmations, or status cards.

Manage the account's rich menu

The agent creates a new rich menu with create_rich_menu (auto-generating its image from the actions), sets it as default with set_rich_menu_default, and cleans up old menus — all without opening the LINE console.

FAQ

Is it free?
The MCP server is free and open source (Apache-2.0). It sends through the LINE Messaging API, which has a free monthly message quota on the LINE Official Account plan; sending beyond the quota requires a paid plan. Use get_message_quota to track usage.
Does it support remote/OAuth?
No. It runs locally over stdio via npx or as a Docker container and authenticates with a CHANNEL_ACCESS_TOKEN from the LINE Developers console. There is no hosted remote endpoint.
Is it production-ready?
LINE provides it as a preview/experimental integration, so it may not include complete functionality or full support. It is actively maintained and official, but evaluate it before relying on it for critical production messaging.
← Browse all communication servers