
How to add LINE Bot MCP Server to Claude Desktop
Connect AI agents to a LINE Official Account via the LINE Messaging API. Paste the config into ~/Library/Application Support/Claude/claude_desktop_config.json and restart Claude Desktop.
Last updated June 14, 2026 ยท 599โ ยท stdio ยท apikey ยท official
Claude Desktop config for LINE Bot MCP Server
npx @line/line-bot-mcp-server{
"mcpServers": {
"line-bot-mcp-server": {
"command": "npx",
"args": [
"@line/line-bot-mcp-server"
],
"env": {
"NPM_CONFIG_IGNORE_SCRIPTS": "true",
"CHANNEL_ACCESS_TOKEN": "FILL_HERE",
"DESTINATION_USER_ID": "FILL_HERE"
}
}
}
}Setup steps
- 1Open Claude Desktop โ Settings โ Developer โ Edit Config (this opens ~/Library/Application Support/Claude/claude_desktop_config.json).
- 2Paste the LINE Bot MCP Server config below under the top-level "mcpServers" key.
- 3Fill in any placeholder secrets (API keys, paths) in the snippet.
- 4Save the file, then fully quit and reopen Claude Desktop.
- 5Open a chat and confirm LINE Bot MCP Server's tools appear under the ๐ tools menu.
Before you start
- Node.js v22 or later (for the npx installation)
- A LINE Official Account with the Messaging API enabled
- A LINE Channel Access Token (CHANNEL_ACCESS_TOKEN)
- Optionally a default recipient user ID (DESTINATION_USER_ID)
What LINE Bot MCP Server can do in Claude Desktop
push_text_messagePush a simple text message to a user via LINE. Recipient defaults to DESTINATION_USER_ID if userId is not provided.
push_flex_messagePush a highly customizable flex message (bubble or carousel) to a user via LINE, with required alt text.
broadcast_text_messageBroadcast a simple text message to all users who have followed your LINE Official Account.
broadcast_flex_messageBroadcast a highly customizable flex message (bubble or carousel) to all users who have added your LINE Official Account.
get_profileGet detailed profile information of a LINE user including display name, profile picture URL, status message, and language.
get_message_quotaGet the message quota and consumption of the LINE Official Account, showing the monthly message limit and current usage.
get_rich_menu_listGet the list of rich menus associated with your LINE Official Account.
delete_rich_menuDelete a rich menu from your LINE Official Account by richMenuId.
Security
Requires a LINE Channel Access Token (CHANNEL_ACCESS_TOKEN) passed as an environment variable; treat it as a secret. The npx config sets NPM_CONFIG_IGNORE_SCRIPTS=true to skip package install scripts. Broadcast tools send messages to all followers of the Official Account, so use with care.
LINE Bot MCP Server + Claude Desktop FAQ
Where is the Claude Desktop config file?
Claude Desktop reads MCP servers from ~/Library/Application Support/Claude/claude_desktop_config.json. Paste the LINE Bot MCP Server config there under the "mcpServers" key and restart the client.
Is LINE Bot MCP Server safe to use with Claude Desktop?
Requires a LINE Channel Access Token (CHANNEL_ACCESS_TOKEN) passed as an environment variable; treat it as a secret. The npx config sets NPM_CONFIG_IGNORE_SCRIPTS=true to skip package install scripts. Broadcast tools send messages to all followers of the Official Account, so use with care.
Is this an official LINE project?
Yes. It is published by the LINE organization on GitHub and distributed as the @line/line-bot-mcp-server npm package. It is currently provided as a preview version.
What credentials do I need?
A LINE Channel Access Token (CHANNEL_ACCESS_TOKEN) is required. A DESTINATION_USER_ID is optional but required when a tool's input does not include a userId.
How can I run it?
Via npx with @line/line-bot-mcp-server (requires Node.js v22+), or via a Docker image you build from the repository. Both are configured as an mcpServers entry in your AI agent.