Skip to main content
Glama
LINE WORKS AiNote (unofficial)

LINE WORKS AiNote (unofficial)

lineworks-ainote-mcp

Unofficial community project. This is a personal, read-only MCP server for LINE WORKS AiNote (AI meeting notes). It is not an official LINE WORKS product and is not affiliated with, endorsed by, or supported by LINE WORKS Corp. Provided as-is under the MIT License.

It lets Claude (or any MCP client) list, search, and read AiNote summaries and transcripts. LINE WORKS also offers an official WORKS MCP for mail, calendar, and tasks; AiNote is not part of it as of September 2026, so this project is meant to be used alongside it, not instead of it. Documentation below is in Japanese. See Support for what is and is not covered here.

LINE WORKS AiNote (AI議事録) のノートを Claude から参照するための MCP サーバーです。読み取り専用。 個人が公開している非公式の実装で、LINE WORKS の公式製品・公式サポートの対象ではありません。 公式の WORKS MCP (メール・カレンダー・タスク) には 2026 年 9 月時点で AiNote が含まれていないため、 その補完として併用する想定です。

入口

内容

MCP サーバーとして使う

このリポジトリの ainote_mcp.py (以下の手順)

API を直接試す

Open In Colab notebooks/lineworks_ainote_api.ipynb

解説記事 (Qiita):

ツール

内容

list_notes

ノート一覧 (タイトル・作成日時・音声長のみ)

search_notes

キーワード検索 (同上)

get_note_summary

AI 要約と参加者 (文字起こしを含まない)

get_note_transcript

文字起こし全文 ([時刻] 話者: 発言 に整形)

前提

  • LINE WORKS で AiNote が利用でき、Developer Console でスコープ ainote.read を選べること

  • Python 3.12 以上と uv

  • Claude Desktop または Claude Code

Related MCP server: LogicNotes MCP Server

セットアップ

1. Developer Console でアプリを作る

  1. LINE WORKS Developer Console でアプリを新規追加

  2. OAuth Scopes に ainote.read を追加

  3. Redirect URL に http://localhost:8765/callback を登録 (「追加」を押してから保存)

  4. Client ID と Client Secret を控える

2. 初回ログイン

uv run ainote_mcp.py auth

Client ID / Client Secret を入力するとブラウザが開きます。LINE WORKS にログインして許可してください。 トークンは OS の資格情報ストア (Windows: 資格情報マネージャー、macOS: キーチェーン) に保存されます。 設定ファイルや環境変数にシークレットを書く必要はありません。

3. Claude に登録

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "lineworks-ainote": {
      "command": "uv",
      "args": ["run", "--quiet", "C:\\path\\to\\ainote_mcp.py"]
    }
  }
}

PyPI からインストールする場合 (uvx)

リポジトリを clone せずに使う場合は PyPI のパッケージ lineworks-ainote-mcp を uvx で起動できます。 初回ログインは uvx lineworks-ainote-mcp auth、ログアウトは uvx lineworks-ainote-mcp logout です。

{
  "mcpServers": {
    "lineworks-ainote": {
      "command": "uvx",
      "args": ["lineworks-ainote-mcp"]
    }
  }
}

Claude Code の場合:

claude mcp add -s user lineworks-ainote -- uvx lineworks-ainote-mcp

Windows で uv が見つからない場合は command にフルパスを書いてください。

Claude Code:

claude mcp add lineworks-ainote -- uv run --quiet /path/to/ainote_mcp.py

ログアウト

uv run ainote_mcp.py logout

保存済みの Client ID / Secret / トークンをすべて削除します。

制限

  • このサーバーは User Account 認証を使います。AiNote API は通常の Service Account (JWT) では呼べません (アクセス委任を除く)

  • 検索 API の呼び出し上限は 60 回/分です。ツール側で 1 秒間隔に制限しています

  • 削除 API と統計系 API (管理者権限が必要) は実装していません

  • 管理者による利用制御やマスキングはありません。どのノートを Claude に読ませるかは利用者の判断になります

動作確認環境

  • Windows 11 (資格情報マネージャー) で確認済み

  • macOS はキーチェーンで動く設計ですが未確認です

  • Linux / WSL では keyring のバックエンド (Secret Service など) が必要です。 ない環境では起動時にエラーになります。keyrings.alt を入れると動きますが平文保存になります

Support / サポートについて

English

  • This project is provided as-is under the MIT License, with no warranty and no guaranteed response time. It is maintained in a personal capacity.

  • Issues and pull requests are welcome for problems in this MCP server itself: setup, the authentication flow, tool behavior, and documentation.

  • Problems with the AiNote service or the LINE WORKS API (API errors, scopes not available in your Developer Console, summaries not being generated, plan eligibility) are outside the scope of this project. Please refer to the LINE WORKS Developers documentation and the official LINE WORKS support channels.

  • Answers in issues are based on the public LINE WORKS Developers documentation and on behavior observed on a production tenant. They are not official statements about the product.

  • If this project stops being maintained, the repository will be archived and a notice added here.

日本語

  • 本プロジェクトは MIT ライセンスで現状のまま提供します。保証や応答期限はなく、個人として保守しています

  • Issue / Pull Request はこの MCP サーバー自体の問題 (セットアップ、認証フロー、ツールの挙動、 ドキュメント) について受け付けます

  • AiNote や LINE WORKS API 側の問題 (API エラー、Developer Console でスコープが選べない、 要約が生成されない、プランの対応状況) は本プロジェクトの範囲外です。 LINE WORKS Developers のドキュメントと LINE WORKS の公式サポート窓口をご利用ください

  • Issue での回答は公開ドキュメントと製品テナントでの動作確認に基づくもので、 製品についての公式な見解ではありません

  • メンテナンスを終了する場合はリポジトリをアーカイブし、ここに記載します

Available Tools

4 tools
get_note_summaryA

ノートの AI 要約と参加者を取得する。文字起こし全文は含まない。

ノートの内容を知りたい場合はまずこれを使う。要約で足りない場合にのみ
get_note_transcript で全文を取得する。transcriptBlocks は文字起こしの
発言ブロック数で、全文を取る際の max_blocks の目安になる。

要約はノートの作成者が AiNote 上でテンプレートを選んで生成するもの。
summaries が空の場合は作成者が要約を生成していないので、内容を知るには
get_note_transcript で全文を読む。

Args:
    note_id: ノートID。list_notes または search_notes の結果から得る。

Inputs: note_id (required). Returns: object

get_note_transcriptA

ノートの文字起こし全文を取得する。

1 時間の会議で数十 KB になる。要約で足りる場合は get_note_summary を使うこと。
発言は `[時刻] 話者: 発言` の形に整形して返す。

Args:
    note_id: ノートID。
    max_blocks: 返す発言ブロックの上限。省略すると全件。

Inputs: note_id (required), max_blocks. Returns: object

list_notesA

AiNote のノート一覧を新しい順に取得する。要約も文字起こしも含まない。

タイトル・作成日時・音声の長さのみを返す。内容を読むには、
ここで得た noteId を get_note_summary に渡す。

Args:
    count: 取得件数。既定 20。
    cursor: 前回の応答の nextCursor。次ページを取得する場合に指定する。

Inputs: count, cursor. Returns: object

search_notesA

AiNote のノートをキーワードで検索する。要約も文字起こしも含まない。

検索 API の呼び出し上限は 60 回/分と他より厳しい (ツール側で 1 秒間隔に制限する)。
同じ意図でキーワードを言い換えて繰り返し検索しないこと。
件数が足りない場合は cursor でページを進める。

Args:
    query: 検索キーワード (必須)。
    count: 取得件数。既定 20。
    cursor: 前回の応答の nextCursor。

Inputs: query (required), count, cursor. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.7/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct retrieval mode: browsing recent notes, keyword search, AI summary, and full transcript. The descriptions explicitly cross-reference when to use which, so an agent can select unambiguously.

    Naming Consistency5/5

    All tools follow a consistent verb_noun snake_case pattern: list_notes, search_notes, get_note_summary, get_note_transcript. Verbs clearly indicate the operation type and nouns indicate the resource.

    Tool Count5/5

    Four tools are well-scoped for an unofficial read-only AiNote client. Each tool covers a distinct need without redundancy or bloat.

    Completeness5/5

    For a read-only note retrieval server, the surface covers browsing, searching, summarized content, and full transcript retrieval. Pagination is provided where needed, and the empty-summary case is handled by directing to the transcript, so there are no dead ends.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A personal note store exposed as an MCP server. Enables any MCP-speaking assistant to create, search, list, and categorize notes, with per-client bearer tokens for author attribution.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      A read-only MCP server that enables searching, retrieving, and managing local UpNote notes, notebooks, and tags via SQLite and UpNote's official URL scheme.
      19 npm
      3
      MIT