Line Bot
MCP server that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account.
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
Maintainer
Works with
Installation
NPM
npx -y @line/line-bot-mcp-serverManual Installation
npx -y @line/line-bot-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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.
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.
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.
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"
}
}
}
}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.
Line Bot Alternatives — Similar Communication Servers
Looking for alternatives to Line Bot? Here are other popular communication servers you can use with Claude, Cursor, and VS Code.
Slack
★ 86.1kEnables interaction with Slack workspaces through comprehensive channel management, messaging, user management, file uploads, and Block Kit formatting. Features secure credential storage via macOS Keychain and supports all major Slack operations incl
LibreChat
★ 37.3kEnhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenA
Note Gen
★ 11.9kA cross-platform Markdown AI note-taking software.
DeepChat
★ 5.8k🐬DeepChat - A smart assistant that connects powerful AI to your personal world
WhatsApp MCP
★ 5.7kConnects AI assistants to the official Meta WhatsApp Cloud API for managing conversations and sending various message types through natural language. It provides tools for media management, template messages, and real-time webhook processing without
Apple
★ 3.1kEnables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.
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.
Set Up Line Bot in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.