Line Bot

Developer tools

MCP server that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.

Your AI app calls the Line Bot MCP server, which does the developer tools work and sends the result back to the chat.

About Line Bot

Line Bot is a community MCP server from line, filed in our directory under developer tools. MCP server that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.

At a glance

Publisher
line (community)
Runs
See the README for setup
Written in
TypeScript
License
Apache-2.0
GitHub stars
809

How to set up Line Bot

  1. Follow the install steps in the Line Bot README; it is written in TypeScript, so have that toolchain ready.
  2. Check the Line Bot README for keys or settings; the registry lists none that Line Bot requires.
  3. Add Line Bot to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Line Bot tools to confirm the connection.
  5. Run one read-only task with Line Bot first, and keep your app asking before each tool call until the results look right.

Line Bot compared with similar servers

  • Purple by erickochen has fewer GitHub stars than Line Bot (808 against 809); both are community servers, and both run locally.
  • Axuse by ctoldigital has more GitHub stars than Line Bot (816 against 809); both are community servers, and both run locally.
  • Docling by docling-project has fewer GitHub stars than Line Bot (806 against 809); both are community servers, and both run locally.

Before you connect Line Bot

  • Give Line Bot its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Line Bot tool call until you trust what it does with them.
  • Treat text that Line Bot fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Line Bot on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Line Bot

How marketing and sales teams put Line Bot to work, by company size. Pick the size closest to yours and start Line Bot on one use case.

Small business

  • A small business with a developer can use Line Bot to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Line Bot to explain and fix a marketing site issue without context switching between tools.
  • Line Bot runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Line Bot to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Line Bot to keep scripts and automations documented and versioned as they change.
  • Start Line Bot on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Line Bot with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Line Bot so web and marketing engineering share one reviewed way of working with AI.
  • Line Bot is a community server, so have security review the code and pin a version before Line Bot touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Line Bot README

From line/line-bot-mcp-server on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

日本語版 READMEはこちら

LINE Bot MCP Server

Model Context Protocol (MCP) server implementation that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.

[!NOTE] This repository is provided as a preview version. While we offer it for experimental purposes, please be aware that it may not include complete functionality or comprehensive support.

Tools

  1. push_text_message

    • Push a simple text message to a user via LINE.
    • Inputs:
      • userId (string?): The user ID to receive a message. Defaults to DESTINATION_USER_ID. Either userId or DESTINATION_USER_ID must be set.
      • message.text (string): The plain text content to send to the user.
  2. push_flex_message

    • Push a highly customizable flex message to a user via LINE.
    • Inputs:
      • userId (string?): The user ID to receive a message. Defaults to DESTINATION_USER_ID. Either userId or DESTINATION_USER_ID must be set.
      • message.altText (string): Alternative text shown when flex message cannot be displayed.
      • message.contents (any): The contents of the flex message. This is a JSON object that defines the layout and components of the message.
      • message.contents.type (enum): Type of the container. 'bubble' for single container, 'carousel' for multiple swipeable bubbles.
  3. broadcast_text_message

    • Broadcast a simple text message via LINE to all users who have followed your LINE Official Account.
    • Inputs:
      • message.text (string): The plain text content to send to the users.
  4. broadcast_flex_message

    • Broadcast a highly customizable flex message via LINE to all users who have added your LINE Official Account.
    • Inputs:
      • message.altText (string): Alternative text shown when flex message cannot be displayed.
      • message.contents (any): The contents of the flex message. This is a JSON object that defines the layout and components of the message.
      • message.contents.type (enum): Type of the container. 'bubble' for single container, 'carousel' for multiple swipeable bubbles.
  5. get_profile

    • Get detailed profile information of a LINE user including display name, profile picture URL, status message and language.
    • Inputs:
      • userId (string?): The ID of the user whose profile you want to retrieve. Defaults to DESTINATION_USER_ID.
  6. get_message_quota

    • Get the message quota and consumption of the LINE Official Account. This shows the monthly message limit and current usage.
    • Inputs:
      • None
  7. get_rich_menu_list

    • Get the list of rich menus associated with your LINE Official Account.
    • Inputs:
      • None
  8. delete_rich_menu

    • Delete a rich menu from your LINE Official Account.
    • Inputs:
      • richMenuId (string): The ID of the rich menu to delete.
  9. set_rich_menu_default

    • Set a rich menu as the default rich menu.
    • Inputs:
      • richMenuId (string): The ID of the rich menu to set as default.
  10. cancel_rich_menu_default

    • Cancel the default rich menu.
    • Inputs:
      • None
  11. create_rich_menu

    • Create a rich menu based on the given actions. Generate and upload an image. Set as default.
    • Inputs:
      • chatBarText (string): Text displayed in chat bar, also used as rich menu name.
      • actions (array): The actions of the rich menu. You can specify minimum 1 to maximum 6 actions. Each action can be one of the following types:
        • postback: For sending a postback action
        • message: For sending a text message
        • uri: For opening a URL
        • datetimepicker: For opening a date/time picker
        • camera: For opening the camera
        • cameraRoll: For opening the camera roll
        • location: For sending the current location
        • richmenuswitch: For switching to another rich menu
        • clipboard: For copying text to clipboard
  12. get_follower_ids

    • Get a list of user IDs of users who have added the LINE Official Account as a friend. This allows you to obtain user IDs for sending messages without manually preparing them.
    • Inputs:
      • start (string?): Continuation token to get the next array of user IDs. Returned in the next property of a previous response.
      • limit (number?): The maximum number of user IDs to retrieve in a single request.
  13. get_group_summary

    • Get the group chat summary including group ID, group name, and group icon URL, using the group ID.
    • Inputs:
      • groupId (string): The group ID of the target group chat.

Installation (Using npx)

requirements:

  • Node.js v22 or later
Step 1: Create LINE Official Account

This MCP server utilizes a LINE Official Account. If you do not have one, please create it by following this instructions.

If you have a LINE Official Account, enable the Messaging API for your LINE Official Account by following this instructions.

Step 2: Configure AI Agent

Please add the following configuration for an AI Agent like Claude Desktop or Cline.

Set the environment variables or arguments as follows:

  • CHANNEL_ACCESS_TOKEN: (required) Channel Access Token. You can confirm this by following this instructions.
  • DESTINATION_USER_ID: (optional) The default user ID of the recipient. If the Tool's input does not include userId, DESTINATION_USER_ID is required. You can confirm this by following this instructions.
{
  "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"
      }
    }
  }
}

Installation (Using Docker)

Step 1: Create LINE Official Account

This MCP server utilizes a LINE Official Account. If you do not have one, please create it by following this instructions.

If you have a LINE Official Account, enable the Messaging API for your LINE Official Account by following this instructions.

Step 2: Build line-bot-mcp-server image

Clone this repository:

git clone git@github.com:line/line-bot-mcp-server.git

Build the Docker image:

docker build -t line/line-bot-mcp-server .
Step 3: Configure AI Agent

Please add the following configuration for an AI Agent like Claude Desktop or Cline.

Set the environment variables or arguments as follows:

  • mcpServers.args: (required) The path to line-bot-mcp-server.
  • CHANNEL_ACCESS_TOKEN: (required) Channel Access Token. You can confirm this by following this instructions.
  • DESTINATION_USER_ID: (optional) The default user ID of the recipient. If the Tool's input does not include userId, DESTINATION_USER_ID is required. You can confirm this by following this instructions.
{
  "mcpServers": {
    "line-bot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CHANNEL_ACCESS_TOKEN",
        "-e",
        "DESTINATION_USER_ID",
        "line/line-bot-mcp-server"
      ],
      "env": {
        "CHANNEL_ACCESS_TOKEN" : "FILL_HERE",
        "DESTINATION_USER_ID" : "FILL_HERE"
      }
    }
  }
}

Local Development with Inspector

You can use the MCP Inspector to test and debug the server locally.

Prerequisites
  1. Clone the repository:
git clone git@github.com:line/line-bot-mcp-server.git
cd line-bot-mcp-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
Run the Inspector

After building the project, you can start the MCP Inspector:

npx @modelcontextprotocol/inspector node dist/index.js \
  -e CHANNEL_ACCESS_TOKEN="YOUR_CHANNEL_ACCESS_TOKEN" \
  -e DESTINATION_USER_ID="YOUR_DESTINATION_USER_ID"

This will start the MCP Inspector interface where you can interact with the LINE Bot MCP Server tools and test their functionality.

Versioning

This project respects semantic versioning

See http://semver.org/

Contributing

Please check CONTRIBUTING before making a contribution.

Questions about Line Bot

What is the Line Bot MCP server?

MCP server that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account. Line Bot is maintained by line on GitHub at line/line-bot-mcp-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Line Bot MCP server?

Line Bot doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (line/line-bot-mcp-server). Like most servers, Line Bot ends with a command or URL you paste into your AI app's MCP config.

Does Line Bot need an API key?

The registry lists no required keys for Line Bot. Check the Line Bot README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Line Bot an official MCP server?

No. Line Bot is a community server maintained by line. Community servers can be excellent; read the code and the open issues before you give Line Bot access to company data.

What license is Line Bot under?

Line Bot is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Line Bot; the service it connects to has its own terms.