Chatmux logo

Chatmux

Local-first MCP daemon for reading, searching, monitoring, and sending messages across connected LINE or Telegram chats.

Install Chatmux

Run the project’s own setup commands, in order.

Setup steps from the project

chatmux installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/echoedinvoker/chatmux.git
    
  2. 2. Install
    cd chatmux
    
  3. 3. Install
    bun install
    
  4. 4. Configure
    mkdir -p ~/.local/share/chatmux
    
  5. 5. Configure
    cat > ~/.local/share/chatmux/adapters.json <<'JSON'
    {
      "adapters": [],
      "mcp": { "port": 7717 }
    }
    JSON
    
  6. 6. Start the server
    bun run start
    

Overview

The chatmux MCP server connects AI clients to locally stored LINE and Telegram chat data through MCP tools. A Bun daemon runs platform adapters as child processes, records events in JSONL and SQLite/FTS5, and serves Streamable HTTP on localhost plus a Unix socket for local consumers. Use it when an agent needs searchable personal chat history, event streaming, media paths, status checks, or controlled message sending without moving the data to a hosted service.

Use cases

  • Search personal LINE or Telegram message history
  • Tail chat events with a persisted cursor
  • Send replies through the SafetyRail
  • Retrieve cached image or sticker files
  • Monitor adapter and storage status

Key features

  • Local JSONL and SQLite/FTS5 storage
  • Streamable HTTP and Unix socket MCP transports
  • Resumable event-log cursors
  • CJK-capable full-text search
  • Rate-limited message sending
  • Media download and caching

Tools8

What Chatmux lets your agent do. Expand a tool for its parameters.

Self-reported~172 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 73d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit3mo agoMost recent push to the default branch.
Tools exposed8Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Chatmux works

What the chatmux MCP server does

The chatmux MCP server provides a local data layer for personal conversations. Its core daemon currently includes a LINE adapter, while Telegram can be connected through the separate chatmux-adapter-telegram project. Adapters run below the core process, and MCP clients connect above it, so either side can be replaced without changing the other boundary.

Chat data is stored locally in an append-only JSONL log and a SQLite view with FTS5 indexing. The MCP interface exposes chat lists, message history, event-log access, full-text search, media retrieval, diagnostics, system status, and message sending. Four MCP resources also provide chat lists, recent messages, chat information, and status.

How it works

The Bun daemon starts an adapter as a child process and communicates with it through the adapter protocol. The default LINE setup uses a Node and tsx process. The daemon keeps the event log as the durable record, then maintains SQLite and FTS5 data for queries.

MCP requests are served over Streamable HTTP on a TCP listener bound to 127.0.0.1 by default. Same-host sidecars can use the Unix socket. The HTTP endpoint is suitable for standard MCP clients, while the socket is intended for local consumers such as the referenced Neovim client. read_events accepts an opaque cursor, allowing a consumer to resume from its prior position and receive edits or retractions again.

Setup and configuration

Install Bun dependencies from a cloned repository with bun install, then start the daemon with bun run start. With no adapter configuration, startup launches the LINE adapter and displays a QR login flow. To run the storage and MCP interface without connecting an account, create an adapters.json file with an empty adapter list. CHATMUX_DATA_DIR can point that trial run at a separate directory.

Each adapter entry specifies a platform, command string, argument array, and optionally a working directory and environment. Telegram requires the separate adapter project's credentials and login procedure. Configure the MCP TCP port with CHATMUX_MCP_PORT or the mcp.port setting; setting the port to 0 disables that listener. Container deployments must set CHATMUX_MCP_HOST appropriately because the default loopback binding is local to the container.

A provided systemd user unit can keep the daemon running and restart it after exits. Edit its working directory before enabling it. The container files are a reference deployment rather than an official image and intentionally run no adapters.

Tools and capabilities

The chatmux MCP server exposes these operations:

  • list_chats returns chats with previews, search, and pagination.
  • read_messages reads timestamp-paginated messages.
  • read_events tails resumable changes from an opaque cursor.
  • search_messages searches message text, including CJK through trigram FTS5 with a LIKE fallback.
  • send_message sends through a rate-limited, error-tracked SafetyRail.
  • get_media returns a local path for an image or sticker, downloading and caching it on first use.
  • probe_latest asks an adapter for recent messages without importing them.
  • get_status reports adapter and storage state.

Limitations and notes

The chat list is capped at 1,000 entries. Consumers can compare the returned total with the received results to detect overflow. The JSONL event log may contain duplicate historical entries from earlier backfills, so its size can exceed the current message view. Sending is mediated by SafetyRail, but the material does not define a broader approval policy; consumer applications decide which messages to surface or when to reply. The daemon is designed for local operation, and exposing its listener beyond the intended network boundary requires explicit host configuration.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Chatmux

chatmux is an MCP server that connects AI clients to local LINE and Telegram chat data through a Bun daemon and platform adapters. Its main tools list chats, read messages and events, search text, send messages through SafetyRail, retrieve media paths, probe recent messages, and report system status.

Clone the repository, enter its directory, run `bun install`, and start it with `bun run start`. The default startup launches the LINE adapter and requires QR login; an empty adapter configuration lets you start the storage and MCP interface without connecting an account.

Register its local Streamable HTTP endpoint with `claude mcp add --transport http chatmux http://127.0.0.1:7717/mcp`. The daemon uses port 7717 by default, and `CHATMUX_MCP_PORT` or `mcp.port` can change that port.

Yes, through the separate `chatmux-adapter-telegram` adapter project. Configure it as an adapter entry with its command and arguments, then follow that project's credentials and login process; Telegram setup does not use the LINE login flow.

chatmux stores an append-only JSONL event log and maintains a SQLite/FTS5 queryable view. The event log is the durable source, while SQLite supports message queries and full-text search.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewChatmux AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/chatmux?style=directory)](https://allmcps.com/mcp/chatmux)
HTML Embed
<a href="https://allmcps.com/mcp/chatmux"><img src="https://allmcps.com/api/badge/chatmux?style=directory" alt="Chatmux on AllMCPs" /></a>