line-bot-mcp-server

by @line

Line Bot MCP Server

Connect AI assistants directly to a LINE Official Account to send text or Flex messages, broadcast announcements, inspect user profiles, manage rich menus, and check message quotas. Maintained officially by LINE under Apache-2.0, this Node.js v22+ server runs over stdio via `npx` or Docker.

Communication806nodeApache-2.0

Server facts

line-bot-mcp-server

GitHub stars

806

Last commit

Nov 25, 2026

Runtime

node

License

Apache-2.0

Project

Author
line
License
Apache-2.0

Tech

Runtime
node
Transports
stdio
Remote access
No
Authentication
LINE Channel Access Token (CHANNEL_ACCESS_TOKEN)

Activity

GitHub stars
806
Last commit
Data as of

Tags

  • line
  • linebot
  • mcp
  • mcp server

Overview

Developers exploring line bot mcp want an official bridge linking AI agents like Claude Desktop or Cline to the LINE Messaging API without writing custom webhook glue code. Maintained directly by LINE under the Apache-2.0 license (`@line/line-bot-mcp-server` on npm), this preview-stage Node.js v22+ server wraps 13 concrete LINE Official Account operations over local `stdio` transport. Agents can deliver plain text or customizable Flex Message bubbles and carousels to an individual user (`push_text_message`, `push_flex_message`) or all followers (`broadcast_text_message`, `broadcast_flex_message`), query follower IDs with cursor pagination (`get_follower_ids`), inspect user profiles and group summaries (`get_profile`, `get_group_summary`), monitor monthly quotas (`get_message_quota`), and create, list, toggle, or delete rich menus.

Setup starts by creating a LINE Official Account and enabling the Messaging API to obtain a long-lived `CHANNEL_ACCESS_TOKEN`, plus an optional default `DESTINATION_USER_ID` when prompts omit an explicit `userId`. Run it directly via `npx @line/line-bot-mcp-server` (with `NPM_CONFIG_IGNORE_SCRIPTS: "true"` recommended in the README config) or clone and build the included Dockerfile (`docker build -t line/line-bot-mcp-server .`) to run via `docker run -i --rm`. Note that LINE labels this repository a preview release intended for experimental use rather than a full production Messaging API SDK.

Install & configure

Requirements

  • Node.js v22 or later (for `npx @line/line-bot-mcp-server`) or Docker (build local image from repo)
  • LINE Official Account with Messaging API enabled and a long-lived `CHANNEL_ACCESS_TOKEN`
  • Optional default recipient `DESTINATION_USER_ID` (required if tool inputs omit `userId`)
Documented launch / install command
npx @line/line-bot-mcp-server

Configure `npx @line/line-bot-mcp-server` in Claude Desktop or Cline with `CHANNEL_ACCESS_TOKEN`, `DESTINATION_USER_ID`, and `NPM_CONFIG_IGNORE_SCRIPTS=true`, or build the Docker image with `docker build -t line/line-bot-mcp-server .`. Test locally using `npx @modelcontextprotocol/inspector node dist/index.js`.

Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Desktop configuration
{
  "mcpServers": {
    "line-bot": {
      "command": "npx",
      "args": [
        "@line/line-bot-mcp-server"
      ],
      "env": {
        "NPM_CONFIG_IGNORE_SCRIPTS": "true",
        "CHANNEL_ACCESS_TOKEN": "FILL_HERE",
        "DESTINATION_USER_ID": "FILL_HERE"
      }
    }
  }
}

Read the Claude Desktop setup guide

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.

Cursor configuration
{
  "mcpServers": {
    "line-bot": {
      "command": "npx",
      "args": [
        "@line/line-bot-mcp-server"
      ],
      "env": {
        "NPM_CONFIG_IGNORE_SCRIPTS": "true",
        "CHANNEL_ACCESS_TOKEN": "FILL_HERE",
        "DESTINATION_USER_ID": "FILL_HERE"
      }
    }
  }
}

Read the Cursor setup guide

Config file · Workspace: .vscode/mcp.json

For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.

VS Code configuration
{
  "servers": {
    "line-bot": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@line/line-bot-mcp-server"
      ],
      "env": {
        "NPM_CONFIG_IGNORE_SCRIPTS": "true",
        "CHANNEL_ACCESS_TOKEN": "FILL_HERE",
        "DESTINATION_USER_ID": "FILL_HERE"
      }
    }
  }
}

Read the VS Code setup guide

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.

Windsurf configuration
{
  "mcpServers": {
    "line-bot": {
      "command": "npx",
      "args": [
        "@line/line-bot-mcp-server"
      ],
      "env": {
        "NPM_CONFIG_IGNORE_SCRIPTS": "true",
        "CHANNEL_ACCESS_TOKEN": "FILL_HERE",
        "DESTINATION_USER_ID": "FILL_HERE"
      }
    }
  }
}

Read the Windsurf setup guide

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Code configuration
{
  "mcpServers": {
    "line-bot": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@line/line-bot-mcp-server"
      ],
      "env": {
        "NPM_CONFIG_IGNORE_SCRIPTS": "true",
        "CHANNEL_ACCESS_TOKEN": "FILL_HERE",
        "DESTINATION_USER_ID": "FILL_HERE"
      }
    }
  }
}

Read the Claude Code setup guide

Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.

Tools

Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.

ToolWhat it does
push_text_messagePushes a plain-text message to a specified `userId` or the default `DESTINATION_USER_ID`.
push_flex_messageSends a structured LINE Flex Message (`bubble` or `carousel` layout) with `altText` to a target user.
broadcast_text_messageBroadcasts a plain-text message to all followers of your LINE Official Account.
broadcast_flex_messageBroadcasts a customizable `bubble` or `carousel` Flex Message to every account follower.
get_profileFetches a LINE user's display name, profile image URL, status message, and language.
get_message_quotaReturns the LINE Official Account's monthly message allowance and current consumption.
get_rich_menu_listLists all rich menus currently registered on the LINE Official Account.
delete_rich_menuDeletes a rich menu by `richMenuId` from the LINE Official Account.
set_rich_menu_defaultAssigns an existing `richMenuId` as the account's default rich menu.
cancel_rich_menu_defaultClears the currently active default rich menu assignment.
create_rich_menuCreates a rich menu with 1–6 actions (`postback`, `message`, `uri`, `datetimepicker`, `camera`, `cameraRoll`, `location`, `richmenuswitch`, `clipboard`), generates/uploads its image, and sets it default.
get_follower_idsPaginates user IDs of friends following the LINE Official Account using `start` and `limit`.
get_group_summaryRetrieves a LINE group chat's ID, name, and icon URL from its `groupId`.

Use cases

  • Send interactive Flex Message cards or carousels to test users or customers directly from Claude Desktop or Cline.
  • Check monthly Messaging API quota usage (`get_message_quota`) and enumerate follower IDs (`get_follower_ids`) before triggering a broadcast.
  • Prototype, update, and activate LINE Official Account rich menus with custom action buttons (`create_rich_menu`, `set_rich_menu_default`) through natural language.
  • Look up user profiles (`get_profile`) and group chat metadata (`get_group_summary`) during customer-support automation workflows.

Strengths

  • Officially maintained by LINE under Apache-2.0 and published directly on npm as `@line/line-bot-mcp-server`.
  • Covers 13 practical Messaging API capabilities including Flex Messages, broadcasts, rich menu generation, follower listing, and quota checks.
  • Supports both direct `npx` execution and isolated local Docker containers, plus MCP Inspector debugging.

Limitations

  • Explicitly labeled an experimental preview version without guaranteed completeness or production support.
  • Broadcast tools (`broadcast_text_message`, `broadcast_flex_message`) reach every follower, requiring careful client approval prompts.
  • Requires Node.js v22+ locally and operates over local stdio without a documented remote HTTP transport.

line-bot-mcp-server setup notes

  • Check CHANNEL_ACCESS_TOKEN, DESTINATION_USER_ID, NPM_CONFIG_IGNORE_SCRIPTS in the line-bot-mcp-server configuration if startup or authentication fails.
  • line-bot-mcp-server's stdio example needs a client that launches local processes.

Frequently asked questions

LINE Bot MCP Server (`@line/line-bot-mcp-server`) is LINE's official Model Context Protocol integration for the LINE Messaging API. Over local stdio, it gives AI agents like Claude Desktop and Cline 13 tools to push or broadcast text and Flex messages, fetch follower IDs, inspect user profiles and group summaries, check monthly quotas, and manage rich menus.

Related MCP servers