Line Bot MCP Server logo

Line Bot MCP Server

by line

Connects an AI agent to LINE Messaging API for messaging, user profiles, quotas, followers, and rich-menu management.

Install Line Bot MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "line-line-bot-mcp-server": {
      "command": "npx",
      "args": [
        "@line/line-bot-mcp-server"
      ],
      "env": {
        "CHANNEL_ACCESS_TOKEN": "YOUR_VALUE_HERE",
        "DESTINATION_USER_ID": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx @line/line-bot-mcp-server

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1mo ago.

Overview

The line/line-bot-mcp-server MCP server connects an AI agent to a LINE Official Account through the LINE Messaging API. It provides tools for sending text and Flex messages, broadcasting to followers, reading user profiles, checking quotas, listing followers, and managing rich menus. Run it with Node.js and npx or build and run its Docker image, using a LINE channel access token. Reach for it when an agent needs to communicate with LINE users or administer an account's rich-menu configuration.

Use cases

  • Send text updates to a specific LINE user
  • Broadcast Flex announcements to account followers
  • Retrieve LINE follower IDs for targeted messaging
  • Manage an account's default rich menu
  • Check message quota before sending campaigns

Key features

  • Push text and Flex messages
  • Broadcast messages to followers
  • Retrieve user profiles and follower IDs
  • Inspect message quota and consumption
  • Create and manage rich menus

Tools9

What Line Bot MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~81 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

96/96 checks healthy over the last 14d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8d ago via OSV.dev · @line/line-bot-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars792Stargazers on the source repository.
npm downloads8.8kPackage downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed9Callable tools this server registers over MCP.
Directory activity55 viewsConfig copies, upvotes, and views on AllMCPs.

How Line Bot MCP Server works

What line/line-bot-mcp-server MCP server does

The line/line-bot-mcp-server MCP server exposes LINE Messaging API operations as MCP tools for an AI agent. It supports direct text delivery and customizable Flex messages, both to an individual user and to all users who have followed a LINE Official Account. Individual message tools accept a user ID, while a configured default recipient can be used when the tool input omits one.

The server also reads account and user information. Agents can retrieve a user's display name, profile image URL, status message, and language; inspect the account's monthly message quota and current consumption; and page through follower IDs using a continuation token and optional result limit.

Rich-menu administration is included. Available operations cover listing menus, deleting a menu, assigning or removing the default menu, and creating a menu with one to six actions. Creation can generate and upload the menu image, set the new menu as default, and use actions such as postback, message, URI, date/time picker, camera, camera roll, location, rich-menu switching, and clipboard copy.

How it works

The MCP process authenticates against LINE with a channel access token. Its tools then make operations available to a connected agent such as Claude Desktop or Cline. Push and broadcast tools accept plain text or Flex message JSON; Flex containers can be a single bubble or a carousel of bubbles.

For direct messages, userId is optional only when DESTINATION_USER_ID has been configured. The follower-list operation returns user IDs in pages and provides a continuation value for retrieving the next page. Rich-menu tools use the menu ID returned by LINE or supplied by an earlier operation.

Setup and configuration

A LINE Official Account with the Messaging API enabled is required. The required environment variable is CHANNEL_ACCESS_TOKEN. Set DESTINATION_USER_ID to provide a default recipient; otherwise, every direct push request must include userId.

The documented npx setup uses the @line/line-bot-mcp-server package and requires Node.js 22 or later. The repository also documents a Docker workflow that builds the line/line-bot-mcp-server image after cloning the project. In the supplied agent example, NPM_CONFIG_IGNORE_SCRIPTS is set to true for the npx configuration.

For local development, the project can be cloned, installed with npm, built with npm run build, and tested through MCP Inspector. The Inspector example starts the built dist/index.js entry point with the LINE credentials supplied as environment variables.

Tools and capabilities

The line/line-bot-mcp-server MCP server includes these operations:

  • Push text or Flex messages to one user.
  • Broadcast text or Flex messages to all followers.
  • Retrieve a user's profile.
  • Check message quota and usage.
  • List, create, delete, set, or cancel a default rich menu.
  • Retrieve follower IDs with pagination.

Limitations and notes

The repository describes the project as a preview for experimental use and notes that functionality and support may be incomplete. The server requires an existing LINE Official Account and Messaging API configuration; it does not create that account. Flex message contents must be provided as JSON conforming to LINE's expected structure, and rich-menu creation accepts only one to six actions.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Line Bot MCP Server

Use Node.js 22 or later and run the npm package with npx. The server also supports a Docker workflow that builds the repository's image.

CHANNEL_ACCESS_TOKEN is required. DESTINATION_USER_ID is optional, but it is required for direct push tools when a request does not provide userId.

Yes. The README provides an MCP configuration example for Claude Desktop and also mentions Cline.

Yes. It provides broadcast tools for text and Flex messages to users who have followed the LINE Official Account.

Yes. It can list, create, delete, set, and cancel the default rich menu. Creation supports one to six configured actions.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLine Bot MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/line-line-bot-mcp-server?style=directory)](https://allmcps.com/mcp/line-line-bot-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/line-line-bot-mcp-server"><img src="https://allmcps.com/api/badge/line-line-bot-mcp-server?style=directory" alt="Line Bot MCP Server on AllMCPs" /></a>