LINE Official Account MCP Server

Integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.

Local serverstdio

What is the LINE Official Account MCP server?

Line official account mcp server connects LINE Official Account to AI assistants that speak the Model Context Protocol. Integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.

What LINE Official Account does

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

Tools it exposes

Once connected, the assistant can call these 11 tools directly:

  • Inputs — **
  • 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
  • Prerequisites — 1. Clone the repository: bash git clone git@github.com:line/line-bot-mcp-server.git cd line-bot-mcp-server

Installing the line official account mcp server

The server is distributed via npm as @modelcontextprotocol/inspector, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Configuration

Before the server will start you need to supply 5 environment variables: NPM_CONFIG_IGNORE_SCRIPTS, CHANNEL_ACCESS_TOKEN, DESTINATION_USER_ID, YOUR_CHANNEL_ACCESS_TOKEN, YOUR_DESTINATION_USER_ID. Keep credentials in your client's env block or a secrets manager rather than committing them.

Requirements

  1. Clone the repository: 2. Install dependencies: 3. Build the project:

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. LINE Official Account sits in that group, and the shape of its toolset — Inputs, postback, message among others — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • It will not start until its required credentials are present, so set those before wondering why the tools never appear.
  • With 11 tools exposed, expect a noticeable bump in prompt size — disable it in projects that never use LINE Official Account.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the line official account mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
Inputs**
postbackFor sending a postback action
messageFor sending a text message
uriFor opening a URL
datetimepickerFor opening a date/time picker
cameraFor opening the camera
cameraRollFor opening the camera roll
locationFor sending the current location
richmenuswitchFor switching to another rich menu
clipboardFor copying text to clipboard
Prerequisites1. Clone the repository: bash git clone git@github.com:line/line-bot-mcp-server.git cd line-bot-mcp-server

How to install the LINE Official Account MCP server

{
  "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"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  1. Clone the repository: 2. Install dependencies: 3. Build the project:
VariableDescriptionRequired
NPM_CONFIG_IGNORE_SCRIPTSConfiguration value read at startup.Optional
CHANNEL_ACCESS_TOKENCredential the server authenticates with.Yes
DESTINATION_USER_IDConfiguration value read at startup.Optional
YOUR_CHANNEL_ACCESS_TOKENCredential the server authenticates with.Yes
YOUR_DESTINATION_USER_IDConfiguration value read at startup.Optional

Example prompts to try

  • Use LINE Official Account to Inputs.
  • Use LINE Official Account to postback.
  • Use LINE Official Account to message.

Frequently asked questions

It connects LINE Official Account to MCP-compatible AI assistants such as Claude and Cursor, exposing 11 tools (Inputs, postback, message, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with LINE Official Account directly.