Getting Started with the LINE MCP Server

Learn how to install the LINE MCP server and connect AI agents to LINE’s Messaging API. This guide covers setup, configuration, and testing for AI-driven chatbots.

Ashley Goolam

Ashley Goolam

8 July 2025

Getting Started with the LINE MCP Server

Are you ready to connect your AI to the world of LINE? Let’s dive into the LINE MCP server, a super cool tool that bridges your AI agents with LINE’s Messaging API. In this tutorial, I’ll break down what the LINE MCP server is, why it’s awesome, and how to set it up. Grab a coffee, ready up your local machine and let’s get working in a fun, conversational vibe!

💡
Want a great API Testing tool that generates beautiful API Documentation?

Want an integrated, All-in-One platform for your Developer Team to work together with maximum productivity?

Apidog delivers all your demands, and replaces Postman at a much more affordable price!
button

What Is LINE and Its Messaging API?

If you’re new to LINE, it’s a mega-popular messaging app, especially in Asia, with millions of users chatting, sharing, and connecting daily. LINE’s Messaging API lets developers build chatbots and services that interact with users through LINE Official Accounts. Think of it as a way to create smart, interactive bots that can send messages, handle user queries, or even broadcast updates.

The LINE MCP server takes this to the next level by letting AI agents—like Claude or Gemini—control your LINE bot using natural language prompts. It’s like giving your AI the keys to your LINE account to create seamless, engaging user experiences!

Official liine website

Meet the LINE MCP Server

The LINE MCP server is an open-source tool from LINE that connects AI agents to the LINE Messaging API via the Model Context Protocol (MCP). MCP is like a universal plug (think USB-C for AI) that standardizes how AI systems access tools and data. With the LINE MCP server, your AI can:

It’s still in trial mode, so it supports a subset of Messaging API features, but it’s already powerful for building AI-driven chatbots.

Why You’ll Love the LINE MCP Server

Here’s why the LINE MCP server is a game-changer:

Installing the LINE MCP Server with Claude Desktop

Prerequisites

Before we jump in, ensure you have:

Installation Option 1: Using npx

Step 1: Create LINE Official Account

  1. Head to the LINE Developers Console.
  2. Create a Provider (e.g., “MyBotTeam”) if you don’t have one.
  3. Create a Messaging API channel and note down the Channel Access Token (issue it under the Messaging API tab).
  4. Enable the webhook in your channel (you’ll set the URL later).
user id
channel access token

Step 2: Install Claude Desktop

Download and install Claude Desktop from claude.ai/download, available for macOS and Windows. Once installed:

  1. Open Claude Desktop and click Get Started.
  2. Log in with your Claude account or sign in with a Google account.
Install claude desktop

Step 3: Configure the LINE MCP Server for Claude Desktop

Set up Claude Desktop to connect to the LINE MCP server:

  1. Open Claude Desktop and go to Settings (gear icon).
settings

2. Select the Developer tab and click Edit Config. This opens the folder containing the config file.

edit claude configuration

3. Locate or create claude_desktop_config.json and add:

{
  "mcpServers": {
    "line-bot": {
      "command": "npx",
      "args": ["@line/line-bot-mcp-server"],
      "env": {
        "CHANNEL_ACCESS_TOKEN": "FILL_HERE",
        "DESTINATION_USER_ID": "FILL_HERE"
      }
    }
  }
}

4. Replace FILL_HERE with your Channel Access Token and Destination User ID (if needed).

5. Save the file and restart Claude Desktop by closing and reopening it.

available mcp servers in claude

Installation Option 2: Using Docker

Step 1: Create LINE Official Account

Follow the same steps as in the npx method to set up your LINE Official Account and obtain the Channel Access Token and Destination User ID.

Step 2: Build the LINE Bot MCP Server Image

docker desktop

Clone the repository and build the Docker image:

git clone git@github.com:line/line-bot-mcp-server.git
cd line-bot-mcp-server
docker build -t line/line-bot-mcp-server .

This creates a Docker image for the LINE MCP server.

Step 3: Configure the LINE MCP Server for Claude Desktop

Set up Claude Desktop to connect to the Dockerized LINE MCP server:

  1. Open Claude Desktop and go to Settings (gear icon).
  2. Select the Developer tab and click Edit Config.
  3. Locate or create claude_desktop_config.json and add:
{
  "mcpServers": {
    "line-bot": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CHANNEL_ACCESS_TOKEN",
        "-e",
        "DESTINATION_USER_ID",
        "line/line-bot-mcp-server"
      ],
      "env": {
        "CHANNEL_ACCESS_TOKEN": "FILL_HERE",
        "DESTINATION_USER_ID": "FILL_HERE"
      }
    }
  }
}
  1. Replace FILL_HERE with your Channel Access Token and Destination User ID (if needed).
  2. Save the file and restart Claude Desktop.
claude available tools

Test Line Mcp Server with Prompt Examples

Now, let’s try some prompts in Claude Desktop to see the LINE MCP server in action! Here are four use-case examples (unchanged from the previous article):

1. Send a Text Message

Prompt:

Send LINE message to user say "I love you MCP"
sample prompt 1

Claude will send a text message to your LINE user saying “I love you MCP” via the LINE MCP server.

2. Get LINE User Profile and Send Flex Message

Prompt:

Get user profile and create beautiful Flex message and send to user
sample prompt 2

Claude will fetch the user’s profile (e.g., display name, picture) and send a personalized Flex Message with a hero image, greeting, and status message.

Troubleshooting Tips

How the LINE MCP Server Powers AI Workflows

The LINE MCP server makes your LINE bot an AI-powered conversational superstar. Here’s how it shines:

  1. Seamless AI Integration: Your AI can send messages, create Flex Messages, or fetch user data without complex coding.
  2. User-Friendly Prompts: Users or AI can control the bot with natural language, like “Broadcast a sale alert!”
  3. Scalable Design: Run it locally for testing or deploy it to a cloud server for production.
  4. Trial Features: Currently supports messaging, user profile retrieval, and broadcasting, with more to come.

For example, you could build a bot that lets users ask, “What’s my profile name?” and the AI fetches it via the LINE MCP Server, or broadcast a promo to all followers with a single prompt. The possibilities are endless!

Conclusion

And that’s a wrap! The LINE MCP server is your ticket to creating AI-driven LINE chatbots that are smart, engaging, and easy to build. By connecting your AI agents to LINE’s Messaging API, you’re opening up a world of interactive possibilities for your users. Whether you’re a seasoned developer or just starting out, this tool makes AI integration a breeze.

💡
Want a great API Testing tool that generates beautiful API Documentation?

Want an integrated, All-in-One platform for your Developer Team to work together with maximum productivity?

Apidog delivers all your demands, and replaces Postman at a much more affordable price!
button

Explore more

Top 10 Essentail MCP Servers for Claude Code (2025 Developer Version)

Top 10 Essentail MCP Servers for Claude Code (2025 Developer Version)

Discover the top 10 MCP servers for Claude Code in 2025, including GitHub, Apidog, and PostgreSQL. Learn how these servers boost productivity, automate tasks, and streamline workflows with step-by-step setup guides.

9 July 2025

Ccundo: "Restore Checkpoint" for Claude Code

Ccundo: "Restore Checkpoint" for Claude Code

Discover how ccundo brings Cursor's checkpoint restoration feature to Claude Code, enabling instant undo capabilities without wasting tokens. Learn step-by-step installation, advanced features, and workflow integration for efficient AI-powered development with comprehensive troubleshooting guide.

9 July 2025

A Beginner's Guide for Google MCP Toolbox for Databases

A Beginner's Guide for Google MCP Toolbox for Databases

An Introduction to the MCP Toolbox The MCP Toolbox is a free tool from Google that helps your AI applications talk to your databases. Think of it as a special translator. Your AI can ask for information in a simple way, and the MCP Toolbox translates that request into the language your database understands, like SQL. It uses something called the Model Context Protocol (MCP), which is just a standard set of rules for this kind of communication. 💡Want a great API Testing tool that generates bea

7 July 2025

Practice API Design-first in Apidog

Discover an easier way to build and use APIs