Line Bot

v0.4.2Communicationstable

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

linelinebotmcpmcp-serverbot
Share:
583
Stars
0
Downloads
0
Weekly
0/5

What is Line Bot?

Line Bot is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server that integrates the line messaging api to connect an ai agent to the line official account.

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

This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP server that integrates the LINE Messaging API to connect

Use Cases

Connect AI agents to LINE Official Accounts for customer messaging.
Automate LINE bot interactions through natural language commands.
line

Maintainer

LicenseApache-2.0
Languagetypescript
Versionv0.4.2
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @line/line-bot-mcp-server

Manual Installation

npx -y @line/line-bot-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Line Bot

The LINE Bot MCP server integrates the LINE Messaging API with AI agents, allowing Claude and other MCP-compatible assistants to send and receive messages through a LINE Official Account. It exposes 12 tools covering text and rich flex message delivery, broadcast messaging to all followers, user profile retrieval, messaging quota checks, and rich menu management. Businesses and developers use it to automate LINE customer support, run AI-powered chatbot campaigns, and manage LINE Official Account interactions through natural language commands.

Prerequisites

  • Node.js 18+ installed
  • A LINE Official Account and an active LINE Messaging API channel
  • A Channel Access Token from the LINE Developers Console (console.line.biz)
  • The LINE User ID (DESTINATION_USER_ID) of the target recipient for direct messages
  • An MCP-compatible client such as Claude Desktop
1

Create a LINE Messaging API channel

Log in to the LINE Developers Console at console.line.biz, create a provider, and add a Messaging API channel. Enable the Messaging API and note the channel details.

2

Generate a Channel Access Token

In the LINE Developers Console, navigate to your Messaging API channel > Messaging API tab, and issue a long-lived Channel Access Token. Copy it for use in the MCP server config.

3

Find your LINE User ID

Your DESTINATION_USER_ID is the LINE user ID of the person you want the bot to message by default. You can find it in the Basic Settings of your LINE Official Account Manager, or by calling the get_profile tool after initial setup.

4

Configure Claude Desktop

Add the LINE Bot MCP server to your Claude Desktop configuration file. Replace the placeholder values with your actual Channel Access Token and User ID.

{
  "mcpServers": {
    "line-bot": {
      "command": "npx",
      "args": ["-y", "@line/line-bot-mcp-server"],
      "env": {
        "CHANNEL_ACCESS_TOKEN": "your-line-channel-access-token",
        "DESTINATION_USER_ID": "Uxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}
5

Restart Claude Desktop and verify

Quit and relaunch Claude Desktop. The LINE Bot tools (push_text_message, broadcast_text_message, get_profile, etc.) should now be available in your Claude conversations.

Line Bot Examples

Client configuration

Claude Desktop configuration for the LINE Bot MCP server with Channel Access Token and default recipient User ID.

{
  "mcpServers": {
    "line-bot": {
      "command": "npx",
      "args": ["-y", "@line/line-bot-mcp-server"],
      "env": {
        "CHANNEL_ACCESS_TOKEN": "your-line-channel-access-token",
        "DESTINATION_USER_ID": "Uxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

Prompts to try

Natural language commands to interact with LINE through Claude.

- "Send a text message to my LINE user saying 'Your order has shipped!'"
- "Broadcast a message to all LINE followers announcing our sale."
- "Get the profile information for LINE user U1234567890abcdef."
- "How many messages can I still send this month? Check my LINE messaging quota."
- "List all rich menus on my LINE Official Account."

Troubleshooting Line Bot

Messages fail with 401 Unauthorized error

Your CHANNEL_ACCESS_TOKEN is invalid or expired. Generate a new long-lived token in the LINE Developers Console under your Messaging API channel. Ensure there are no extra spaces or newlines in the token value.

push_text_message fails saying user not found

Verify that DESTINATION_USER_ID is the correct LINE user ID (starts with 'U' followed by 32 hex characters). The user must have added your LINE Official Account as a friend before you can send push messages to them.

broadcast_text_message sends but no followers receive it

Ensure your LINE Official Account has followers and that your Messaging API plan supports broadcasting. Free accounts may have monthly message limits — check get_message_quota to see remaining quota.

Frequently Asked Questions about Line Bot

What is Line Bot?

Line Bot is a Model Context Protocol (MCP) server that mcp server that integrates the line messaging api to connect an ai agent to the line official account. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Line Bot?

Install via npm with the command: npx -y @line/line-bot-mcp-server. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Line Bot?

Line Bot works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Line Bot free to use?

Yes, Line Bot is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Communication MCP Servers

Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "line-bot": { "command": "npx", "args": ["-y", "@line/line-bot-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Line Bot?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides