Server facts
line-bot-mcp-server
GitHub stars
806
Last commit
Nov 25, 2026
Runtime
node
License
Apache-2.0
Project
- Author
- line
- Repository
- github.com/line/line-bot-mcp-server
- License
- Apache-2.0
- Category
- Communication
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`)
npx @line/line-bot-mcp-serverConfigure `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`.
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.
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.
{
"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"
}
}
}
}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.
{
"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"
}
}
}
}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.
{
"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"
}
}
}
}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.
{
"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"
}
}
}
}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.
{
"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"
}
}
}
}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.
| Tool | What it does |
|---|---|
| push_text_message | Pushes a plain-text message to a specified `userId` or the default `DESTINATION_USER_ID`. |
| push_flex_message | Sends a structured LINE Flex Message (`bubble` or `carousel` layout) with `altText` to a target user. |
| broadcast_text_message | Broadcasts a plain-text message to all followers of your LINE Official Account. |
| broadcast_flex_message | Broadcasts a customizable `bubble` or `carousel` Flex Message to every account follower. |
| get_profile | Fetches a LINE user's display name, profile image URL, status message, and language. |
| get_message_quota | Returns the LINE Official Account's monthly message allowance and current consumption. |
| get_rich_menu_list | Lists all rich menus currently registered on the LINE Official Account. |
| delete_rich_menu | Deletes a rich menu by `richMenuId` from the LINE Official Account. |
| set_rich_menu_default | Assigns an existing `richMenuId` as the account's default rich menu. |
| cancel_rich_menu_default | Clears the currently active default rich menu assignment. |
| create_rich_menu | Creates 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_ids | Paginates user IDs of friends following the LINE Official Account using `start` and `limit`. |
| get_group_summary | Retrieves 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.