line/line-bot-mcp-server
TypeScript MCP bridge for sending messages and managing menus on LINE Official Accounts
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
The server is a TypeScript adapter between an MCP client and the LINE Messaging API. In the documented setup, clients such as Claude Desktop and Cline launch the CLI with npx or docker run -i and exchange MCP traffic over stdio. The server uses the channel access token for LINE API calls; the client supplies the agent and decides when to invoke a tool.
The package exposes the line-bot-mcp-server binary. Its dependencies include @modelcontextprotocol/server, @line/bot-sdk, and Zod for the tool-facing stack, plus @marp-team/marp-core and Puppeteer for rendering-related work. The Docker runtime includes Chromium and CJK fonts. That creates two distinct workloads: ordinary API calls and browser-backed rendering for generated menus.
Key Capabilities & Differentiators
The tools can push plain text or Flex messages to one user, or broadcast either format to the Official Account's followers. A per-user call can take userId explicitly or fall back to DESTINATION_USER_ID. Flex messages take altText and a JSON payload with a bubble or carousel container. The contents field is broadly typed, so callers should not count on MCP input validation to catch every invalid Flex layout.
get_profile can retrieve details such as display name, picture URL, status message, and language. Rich-menu creation can turn action definitions into a menu without a supplied image. v0.5.0 adds get_follower_ids, which requires a paid premium Official Account; that entitlement is separate from the ability to send a broadcast.
Trade-offs & Limitations
Compared with integrating @line/bot-sdk directly, this server removes the need to write your own MCP wrappers for the covered operations. It is a good fit when the client already owns the agent workflow. A direct SDK integration is the better starting point when the application must receive webhooks or enforce its own recipient rules, approval flow, and retry policy. Do not assume those controls are provided by the preview server.
Running the adapter locally keeps model inference out of this process, but delivery still depends on LINE connectivity and account permissions. Rich-menu rendering adds browser and font dependencies that simple message sending does not need. Broadcast is also a separate risk from a test push: use a test account or require explicit approval in the surrounding workflow rather than treating the default recipient or tool annotations as safeguards.
Hardware & Deployment Guide
Start with a LINE Official Account that has Messaging API enabled and supply CHANNEL_ACCESS_TOKEN. For a native setup, use Node.js 22 or newer and launch npx @line/line-bot-mcp-server; the documented client configuration sets NPM_CONFIG_IGNORE_SCRIPTS=true. Set DESTINATION_USER_ID only if per-user calls need a default. Keep the real token out of configuration files that will be committed or shared.
For Docker, build line/line-bot-mcp-server from the repository and run it with -i --rm, passing the required environment variables. The multi-stage Alpine build installs Chromium and fonts in the runtime image; containerization does not make LINE calls offline. Local development can use npm run build and MCP Inspector against dist/index.js. Rich-menu creation arrived in v0.4.0, v0.4.2 fixed that tool under npx, and v0.5.0 added follower IDs and tool annotations.
Teams adding LINE notifications, Flex messages, or rich-menu creation to an existing MCP agent, with a test account or operator approval for broadcasts.
You need an inbound webhook backend, offline delivery, or application-enforced controls for unattended production messaging.
Quick Start & Installation
docker build -t line/line-bot-mcp-server .
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| line-bot-mcp-server ★ | 809 | +2 | TypeScript | Apache-2.0 | TypeScript MCP bridge for sending messages and managing menus on LINE Official A |
| chrome-devtools-mcp | 60.4k | +760 | TypeScript | Apache-2.0 | Chrome DevTools via MCP and CLI for live browser debugging and performance analy |
| context7 | 65.8k | +333 | TypeScript | MIT | A hosted documentation index with MCP and CLI access for coding agents |
| rea | 488.8k | +7.6k | TypeScript | MIT | A local CLI and MCP server for evidence-backed app and binary analysis |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/line/line-bot-mcp-server.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about line-bot-mcp-server
How does an MCP client connect, and how is the recipient selected?
Does it need a GPU, and what drives runtime overhead?
Can we self-host it for commercial use?
When should we use the LINE SDK directly instead?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy