LINE Bot MCP Server
@line
MCP server that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.
Overview
What is LINE Bot MCP Server?
LINE Bot MCP Server is a Model Context Protocol (MCP) server implementation that integrates the LINE Messaging API to connect an AI Agent to a LINE Official Account. It is provided as a preview version for experimental purposes and may not include complete functionality or comprehensive support.
How to use LINE Bot MCP Server?
Install via npx (requires Node.js v22 or later) or Docker. Configure an AI agent like Claude Desktop or Cline with the server command, required CHANNEL_ACCESS_TOKEN, and optional DESTINATION_USER_ID environment variable. Use the server's tools to send messages, manage rich menus, retrieve user profiles, and query message quotas.
Key features of LINE Bot MCP Server
- Push text and flex messages to individual users
- Broadcast text and flex messages to all followers
- Retrieve detailed LINE user profile information
- Get message quota and consumption of your account
- Create, list, delete, and manage rich menus
- Fetch follower user IDs with pagination support
Use cases of LINE Bot MCP Server
- Automate customer support responses via LINE Official Account
- Send targeted promotional messages to specific users or all followers
- Manage and update rich menu configurations programmatically
- Collect user profile data for personalized messaging campaigns
- Monitor monthly message usage and quota consumption
FAQ from LINE Bot MCP Server
What prerequisites are needed to use this server?
You need a LINE Official Account with the Messaging API enabled, a Channel Access Token, and Node.js v22 or later (for npx installation). Docker can be used as an alternative.
How do I obtain the required credentials?
Follow the LINE developers guide to create an Official Account and enable the Messaging API. The Channel Access Token is found in the LINE Developers Console, and the default user ID can be obtained from the Messaging API settings.
Can I send messages to users without knowing their user IDs?
Yes, the broadcast tools send messages to all users who have followed your LINE Official Account. The get_follower_ids tool also retrieves follower user IDs for targeted messaging.
Is this server production-ready?
No. This repository is provided as a preview version for experimental purposes and may not include complete functionality or comprehensive support.
What transport and authentication does this server use?
The server uses standard MCP transport via stdio. Authentication is handled through the required CHANNEL_ACCESS_TOKEN environment variable passed to the server process.