← Back to directory
L

LINE Bot MCP Server

Official
MCP server that connects an AI Agent to your LINE Official Account
GitHub source repository ↗
★ 775 Stars Category · Collaboration Very popular
61FMRS · C

LINE Bot MCP Server is maintained by LINE and integrates its Messaging API with MCP; it exposes 12 tools covering message push and broadcast, user profiles, message quota, rich menu management and follower ID retrieval, and the repository is explicitly marked as a preview version. It suits users who already have a LINE Official Account and want an AI Agent to handle messaging and account operations, but the Channel Access Token must be protected carefully and broadcast or rich menu operations directly affect the live account.

Reliability
10/20
Security and permissions
11/20
Maintenance
13/20
Documentation
14/20
Setup experience
13/20
Read the FMRS scoring method →

LINE Bot MCP Server is an official LINE implementation of a Model Context Protocol server that integrates the LINE Messaging API to connect an AI Agent to a LINE Official Account. It exposes capabilities for pushing and broadcasting messages, retrieving user profiles, checking message quota, managing rich menus, and fetching follower user IDs. The repository is marked as a preview version offered for experimental purposes, and it may not include complete functionality or comprehensive support.

Tools

push_text_message
Push a simple text message to a user via LINE.
push_flex_message
Push a highly customizable flex message to a user via LINE.
broadcast_text_message
Broadcast a simple text message via LINE to all users who have followed your LINE Official Account.
broadcast_flex_message
Broadcast a highly customizable flex message via LINE to all users who have added your LINE Official Account.
get_profile
Get detailed profile information of a LINE user including display name, profile picture URL, status message and language.
get_message_quota
Get the message quota and consumption of the LINE Official Account, showing the monthly message limit and current usage.
get_rich_menu_list
Get the list of rich menus associated with your LINE Official Account.
delete_rich_menu
Delete a rich menu from your LINE Official Account.
set_rich_menu_default
Set a rich menu as the default rich menu.
cancel_rich_menu_default
Cancel the default rich menu.
create_rich_menu
Create a rich menu based on the given actions, generate and upload an image, and set it as default.
get_follower_ids
Get a list of user IDs of users who have added the LINE Official Account as a friend, allowing you to obtain user IDs for sending messages without manually preparing them.

Setup

  1. Create or prepare a LINE Official Account: if you do not have one, create it following the LINE instructions; if you already have one, enable the Messaging API for it.
  2. Using npx (requires Node.js v22 or later): add an mcpServers entry to your AI Agent such as Claude Desktop or Cline, with command "npx", args ["@line/line-bot-mcp-server"], and env containing NPM_CONFIG_IGNORE_SCRIPTS set to "true", CHANNEL_ACCESS_TOKEN (required) and DESTINATION_USER_ID (optional; required when the Tool's input does not include userId).
  3. Using Docker: clone the repository, build the image with docker build -t line/line-bot-mcp-server ., then configure command "docker" with args ["run", "-i", "--rm", "-e", "CHANNEL_ACCESS_TOKEN", "-e", "DESTINATION_USER_ID", "line/line-bot-mcp-server"] and put CHANNEL_ACCESS_TOKEN and DESTINATION_USER_ID in env.
  4. Local development with Inspector: clone the repository and cd into it, run npm install and npm run build, then run npx @modelcontextprotocol/inspector node dist/index.js -e CHANNEL_ACCESS_TOKEN="..." -e DESTINATION_USER_ID="..." to start the MCP Inspector for testing.
  5. Notes: CHANNEL_ACCESS_TOKEN can be confirmed via the LINE long-lived channel access token instructions; DESTINATION_USER_ID can be confirmed via the LINE get-user-IDs instructions.
claude_desktop_config.json
{
  "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"
      }
    }
  }
}

Fit and risk

Best for

  • Developers or operations teams that already have a LINE Official Account with the Messaging API enabled
  • Teams that want an AI Agent to automate LINE messaging and account operations
  • Users of MCP-capable clients such as Claude Desktop or Cline who need LINE integration

Not for

  • Users without a LINE Official Account or without the Messaging API enabled
  • Scenarios needing stable, fully supported production functionality beyond a preview release
  • Environments stuck below Node.js v22 that cannot use Docker

Required permissions

  • Requires CHANNEL_ACCESS_TOKEN (Channel Access Token) to call the LINE Messaging API
  • Optionally requires DESTINATION_USER_ID as the default recipient
  • Requires network access to the LINE Messaging API

Risks and side effects

  • CHANNEL_ACCESS_TOKEN is a sensitive credential; if leaked, others could send messages or read data on behalf of the Official Account
  • Broadcast messages reach all followers, so misuse can cause spam or an irreversible mass send
  • Operations such as create_rich_menu, delete_rich_menu and set_rich_menu_default directly change the Official Account's rich menu configuration
  • The repository is a preview version and may not include complete functionality or comprehensive support

Troubleshooting

  1. Confirm Node.js is v22 or later
  2. Confirm CHANNEL_ACCESS_TOKEN is set correctly; if the tool input omits userId, also set DESTINATION_USER_ID
  3. When using npx, confirm NPM_CONFIG_IGNORE_SCRIPTS is set to "true" in env
  4. When using Docker, confirm the image was built with docker build and the environment variables are passed to the container correctly
  5. For local debugging, run npm run build first, then load dist/index.js with the MCP Inspector to verify the tools are available

Use cases

Let an AI Agent push text or flex messages to a specific user on behalf of the Official Account
Broadcast notices, announcements or campaigns to all followers
Retrieve user profiles to personalize replies
Check the monthly message quota and current usage of the Official Account
Create, set as default, or delete rich menus to manage the chat interface
Fetch follower user IDs in bulk for later messaging

Supported clients

Claude DesktopFull support
ClineFull support