How to Integrate AI Agents with LINE Messaging API via LINE MCP Server

Unlock AI-powered LINE chatbots by integrating the open-source LINE MCP server with the Messaging API. This guide covers setup, use cases, and troubleshooting for developers seeking seamless AI and messaging platform integration.

Ashley Goolam

Ashley Goolam

30 January 2026

How to Integrate AI Agents with LINE Messaging API via LINE MCP Server

Apidog for Enterprise

On-Premises Deploy

SSO & RBAC

SOC 2 Compliant

Explore Apidog Enterprise

Connect your AI agents directly to the LINE Messaging API with the open-source LINE MCP server. This step-by-step guide shows API professionals how to set up and use the LINE MCP server, power AI-driven LINE bots, and streamline development with best practices.

💡 Looking for robust API testing, beautiful API documentation, and a unified workspace for your developer team? Discover how Apidog boosts productivity and replaces Postman at a better price.

button

What Is LINE and Why Integrate AI?

LINE is one of Asia’s most popular messaging platforms, serving millions of active users. Its Messaging API enables developers to build chatbots and automation for LINE Official Accounts, handling tasks like customer support, notifications, and broadcasts.

Unlocking AI for LINE Bots

By integrating advanced AI agents (such as Claude or Gemini) with the LINE Messaging API, you can deliver human-like, conversational experiences at scale. The LINE MCP server bridges this gap, allowing your AI to interact with users natively in LINE—sending messages, retrieving user info, and more.


Introducing the LINE MCP Server

The LINE MCP server is an open-source project from LINE that connects AI agents to the LINE Messaging API using the Model Context Protocol (MCP)—a standardized protocol for AI tool access (think “universal adapter” for AI).

Key Features:

Note: The LINE MCP server is currently in a trial phase and supports core Messaging API features, making it an ideal playground for AI-powered chatbot development.


Why Use the LINE MCP Server?

For API and backend engineers, the LINE MCP server offers:


Step-by-Step: Installing the LINE MCP Server with Claude Desktop

Prerequisites

Before you begin, ensure you have:


Option 1: Installation Using npx

Step 1: Set Up Your LINE Official Account

user id

channel access token

Step 2: Install Claude Desktop

Install claude desktop

Step 3: Configure LINE MCP Server in Claude Desktop

settings

edit claude configuration

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

available mcp servers in claude


Option 2: Installation Using Docker

Step 1: Create LINE Official Account

Follow the same steps as in the npx method above.

Step 2: Build and Run the LINE MCP Server Docker Image

docker desktop

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

Step 3: Configure in Claude Desktop

{
  "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"
      }
    }
  }
}

claude available tools


Testing the LINE MCP Server: Example Prompts

Once set up, you can interact with your LINE bot using natural language prompts.

1. Send a Simple Text Message

Prompt:
Send LINE message to user say "I love you MCP"

sample prompt 1

Claude will send this message to your LINE user via the MCP server.


2. Retrieve User Profile and Send Flex Message

Prompt:
Get user profile and create beautiful Flex message and send to user

user id0

The server will fetch the user’s display name and image, then craft a personalized Flex Message.


Troubleshooting Common Issues


How Does LINE MCP Server Accelerate AI Integration?

The LINE MCP server transforms your LINE bot into an AI-powered assistant with:

Practical Example:
Let users ask, “What’s my profile name?” and the AI fetches it via the MCP server in real-time, or broadcast targeted promotions with a single prompt.


Conclusion

The LINE MCP server is a powerful bridge between AI agents and the LINE Messaging API—enabling teams to build advanced, conversational LINE bots without friction. Whether you’re prototyping or scaling, the setup is straightforward and developer-friendly.

If your team values fast, collaborative API development, Apidog provides clear documentation, productivity tools, and an integrated platform that outperforms Postman for less.

button

Explore more

Gemini 4 Argon Ships to Defenders Without Cyber Guardrails: What It Means for the APIs You Run

Gemini 4 Argon Ships to Defenders Without Cyber Guardrails: What It Means for the APIs You Run

Google released Gemini 4 Argon without cyber guardrails to Fairwind defenders, and since October 13 any team with a paid Gemini API key can call gemini-4-argon. Here are the cyber numbers, both access routes, Google's safeguards, and the API checks to schedule now.

15 October 2026

What Is the OpenAI Decisions API?

What Is the OpenAI Decisions API?

The OpenAI Decisions API returns typed answers (predicate, choice, score) from GPT-6 Luna at $0.10 per 1M input tokens. Anatomy, pricing, when to use it.

10 October 2026

OpenAI Decisions API vs Responses API

OpenAI Decisions API vs Responses API

Decisions API vs Responses API: one ticket routed both ways, what each returns, input-only vs output billing with the math, and a feature matrix.

10 October 2026

Practice API Design-first in Apidog

Discover an easier way to build and use APIs

How to Integrate AI Agents with LINE Messaging API via LINE MCP Server