LINE Messaging
listing.by
Send LINE text and flex messages, manage rich menus and look up followers through a LINE Official Account.
listing.install
listing.local.explain
listing.local.needs listing.local.note
CHANNEL_ACCESS_TOKENlisting.env.secret LINE Messaging API channel access token.DESTINATION_USER_IDlisting.env.optional Default recipient user ID (optional).
listing.share.h
listing.share.p_local
mcp.tc/i/linelisting.about
Connects an AI assistant to the LINE Messaging API for a LINE Official Account. It can push or broadcast text and flex messages, read user profiles, list followers, check the message quota, read group summaries, and create, list, delete or set default rich menus.
It runs locally over stdio with npx (Node.js v22 or later) or from a Docker image built from the repository. A channel access token is required in CHANNEL_ACCESS_TOKEN. DESTINATION_USER_ID is optional and sets a default recipient. The project is labeled a preview release.
listing.can
- Push text or flex messages to a LINE user
- Broadcast text or flex messages to all followers
- Get a user's profile details
- List follower user IDs
- Check monthly message quota and usage
- Create, list, delete and set default rich menus
- Get group chat summaries
listing.tools
listing.notools.key
listing.prompts
Send a LINE message to the default user saying the deployment is done.
Broadcast a flex message announcing our weekend sale to all followers.
How much of our LINE monthly message quota have we used?
Create a rich menu with three buttons and set it as default.
listing.setup.h
listing.setup.local
Claude Code
- Run this in a terminal, in your project folder:
claude mcp add --transport stdio line --env "CHANNEL_ACCESS_TOKEN=<YOUR_CHANNEL_ACCESS_TOKEN>" -- npx @line/line-bot-mcp-server- Start Claude Code and type
/mcp. line should show as connected.
Add --scope user to make it available in every project. Replace the placeholders with your own values.
Claude Desktop
- Open Settings → Developer → Edit Config. It opens
claude_desktop_config.json. Add:
{
"mcpServers": {
"line": {
"command": "npx",
"args": [
"@line/line-bot-mcp-server"
],
"env": {
"CHANNEL_ACCESS_TOKEN": "<YOUR_CHANNEL_ACCESS_TOKEN>"
}
}
}
}- Save the file and restart Claude Desktop. Replace the placeholders with your own values.
Needs Node.js on your computer. The file lives in ~/Library/Application Support/Claude/ on macOS and %APPDATA%\Claude\ on Windows.
Cursor
Or add it by hand to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project):
{
"mcpServers": {
"line": {
"command": "npx",
"args": [
"@line/line-bot-mcp-server"
],
"env": {
"CHANNEL_ACCESS_TOKEN": "<YOUR_CHANNEL_ACCESS_TOKEN>"
}
}
}
}Needs Node.js on your computer. Replace the placeholders with your own values.
VS Code
Add it to .vscode/mcp.json. VS Code asks for the secret the first time and stores it securely:
{
"servers": {
"line": {
"type": "stdio",
"command": "npx",
"args": [
"@line/line-bot-mcp-server"
],
"env": {
"CHANNEL_ACCESS_TOKEN": "${input:channel-access-token}"
}
}
},
"inputs": [
{
"type": "promptString",
"id": "channel-access-token",
"description": "CHANNEL_ACCESS_TOKEN",
"password": true
}
]
}Needs Node.js on your computer.
Devin Desktop
- Add it to
~/.config/devin/mcp_config.json(macOS and Linux) or%APPDATA%\devin\mcp_config.json(Windows):
{
"mcpServers": {
"line": {
"command": "npx",
"args": [
"@line/line-bot-mcp-server"
],
"env": {
"CHANNEL_ACCESS_TOKEN": "<YOUR_CHANNEL_ACCESS_TOKEN>"
}
}
}
}- Refresh the MCP server list in Cascade. Replace the placeholders with your own values.
Devin Desktop is the new name for Windsurf.
Codex
codex mcp add line --env "CHANNEL_ACCESS_TOKEN=<YOUR_CHANNEL_ACCESS_TOKEN>" -- npx @line/line-bot-mcp-serverOr edit ~/.codex/config.toml directly:
[mcp_servers.line]
command = "npx"
args = ["@line/line-bot-mcp-server"]
env = { CHANNEL_ACCESS_TOKEN = "<YOUR_CHANNEL_ACCESS_TOKEN>" }Needs Node.js on your computer. Replace the placeholders with your own values.
Gemini CLI
gemini mcp add -e "CHANNEL_ACCESS_TOKEN=<YOUR_CHANNEL_ACCESS_TOKEN>" line npx @line/line-bot-mcp-serverThis adds it to the current project. Add -s user to use it everywhere.
Any client
Most clients that start local servers accept this shape:
{
"mcpServers": {
"line": {
"command": "npx",
"args": [
"@line/line-bot-mcp-server"
],
"env": {
"CHANNEL_ACCESS_TOKEN": "<YOUR_CHANNEL_ACCESS_TOKEN>"
}
}
}
}Zed puts servers under context_servers in its settings, with the same command, args and env fields.
Needs Node.js on your computer. Replace the placeholders with your own values.
listing.faq
Can I paste mcp.tc/i/line into my MCP client?
No. LINE Messaging runs on your own computer, started by your client, so it has no web address to connect to. The quick link is the page to share; the install command is npx @line/line-bot-mcp-server.
Does LINE Messaging need an API key?
Yes. It reads CHANNEL_ACCESS_TOKEN from its environment, and CHANNEL_ACCESS_TOKEN is a secret. Put the value in your client's config on your own machine, never in a shared file.
Is LINE Messaging a remote or a local server?
Local. Your client starts it as a process on your computer with npx @line/line-bot-mcp-server, which needs Node.js.
What can LINE Messaging do?
You can push text or flex messages to a LINE user, broadcast text or flex messages to all followers and get a user's profile details.
Which clients can use it?
Any client that starts local servers: Claude Code, Claude Desktop, Cursor, VS Code, Devin Desktop, Codex, Gemini CLI, Zed and others. claude.ai and ChatGPT only connect to remote servers.
Who wrote this page?
mcp.tc's robot read LINE Messaging's public metadata (its package and repository pages), and an AI model drafted the text from it. A person reviews anything the checks can't confirm. The text can still be wrong, so if you spot a mistake, use Report this listing on this page.
listing.em.h
listing.em.lead_local listing.em.how
listing.em.badge
[](https://mcp.tc/i/line)<a href="https://mcp.tc/i/line"><img src="https://mcp.tc/i/line/badge.svg" alt="LINE Messaging on mcp.tc" height="20"></a>listing.em.badge_note
listing.em.widget
<script src="https://mcp.tc/w/line.js" async></script>listing.em.widget_note
iframe
<iframe src="https://mcp.tc/embed/line" title="LINE Messaging on mcp.tc" width="420" height="200" loading="lazy" allow="clipboard-write" style="border:0;border-radius:8px;max-width:100%"></iframe>listing.em.iframe_note
listing.disclaimer_checked