Japanese Text Analyzer
About
Enables detailed Japanese text analysis through morphological parsing with Kuromoji, breaking down sentences into component parts with grammatical functions, readings, and base forms for language learning and translation applications.
Details
- Author
- mistizz
- Repository
- Mistizz/mcp-JapaneseTextAnalyzer
- GitHub stars
- 1
- Downloads
- 169
- License
- MIT License
- Categories
- Productivity, Design, Developer Tools, AI, Frontend, Infrastructure, Project Management, Other
Jump to
- Count characters (excluding spaces and newlines) from files or text
- Count words with English space-splitting or Japanese morphological analysis
- Analyze detailed linguistic features (average sentence length, part-of-speech ratios, vocabulary diversity, etc.)
- Flexible file path resolution (absolute, relative, home, desktop, documents directories)
- Support for both Windows and WSL/Linux path formats
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Japanese Text AnalyzerCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
github:Mistizz/mcp-JapaneseTextAnalyzer
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
To install Japanese Text Analyzer for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Mistizz/mcp-JapaneseTextAnalyzer --client claude
count_chars
Counts the number of characters in a file, excluding spaces and line breaks. Input: filePath (string): The path of the file to count characters (absolute path recommended in Windows or WSL/Linux format). Output: The character count (actual character count excluding spaces and line breaks).
count_words
Counts the number of words in a file. Input: filePath (string): The path of the file to count words (absolute path recommended in Windows or WSL/Linux format); language (string, optional, default: 'en'): The language of the file (en: English, ja: Japanese). Output: The word count of the file and detailed results of morphological analysis in Japanese mode.
count_clipboard_chars
Counts the number of characters in a given text, excluding spaces and line breaks. Input: text (string): The text to count characters. Output: The character count (actual character count excluding spaces and line breaks).
count_clipboard_words
Counts the number of words in a given text. Input: text (string): The text to count words; language (string, optional, default: 'en'): The language of the text (en: English, ja: Japanese). Output: The word count of the text and detailed results of morphological analysis in Japanese mode.
analyze_text
Performs detailed morphological analysis and linguistic feature analysis on a given text. Input: text (string): The text to analyze. Output: Basic information of the text (total characters, number of sentences, total morphemes) and detailed analysis results (average sentence length, part of speech ratios, character type ratios, vocabulary diversity, etc.).
analyze_file
Performs detailed morphological analysis and linguistic feature analysis on a specified file. Input: filePath (string): The path of the file to analyze (absolute path recommended in Windows or WSL/Linux format). Output: Basic information of the file (total characters, number of sentences, total morphemes) and detailed analysis results (average sentence length, part of speech ratios, character type ratios, vocabulary diversity, etc.).
現在、以下のツールが実装されています:
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"japanese text analyzer": {
"env": {},
"args": [
"-y",
"github:Mistizz/mcp-JapaneseTextAnalyzer"
],
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"github:Mistizz/mcp-JapaneseTextAnalyzer"
],
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"github:Mistizz/mcp-JapaneseTextAnalyzer"
],
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"github:Mistizz/mcp-JapaneseTextAnalyzer"
],
"command": "cmd"
}
Performs morphological analysis on Japanese text using kuromoji.js.
日本語テキストの形態素解析を行えるMCPサーバーです。文章の特徴を言語学的な観点から測定・評価し、文章生成のフィードバックに役立ちます。
- 日本語テキストの文字数(スペースや改行を除いた実質的な文字数)をカウント
- 日本語テキストの単語数をカウント
- 日本語テキストの詳細な言語的特徴の分析(平均文長、品詞の割合、語彙の多様性など)
- ファイルパスまたは直接テキスト入力の両方に対応
- 柔軟なファイルパス解決(絶対パス・相対パス・ファイル名のみでも検索可能)
ファイルの文字数を計測します。絶対パスを指定してください(Windows形式 C:\Users...、またはWSL/Linux形式 /c/Users/... のどちらも可)。スペースや改行を除いた実質的な文字数をカウントします。
- filePath(string): 文字数をカウントするファイルのパス(Windows形式かWSL/Linux形式の絶対パスを推奨)
ファイルの単語数を計測します。絶対パスを指定してください(Windows形式 C:\Users...、またはWSL/Linux形式 /c/Users/... のどちらも可)。英語ではスペースで区切られた単語をカウントし、日本語では形態素解析を使用します。
- filePath(string): 単語数をカウントするファイルのパス(Windows形式かWSL/Linux形式の絶対パスを推奨)
- language(string, オプション, デフォルト: "en"): ファイルの言語 (en: 英語, ja: 日本語)
テキストの文字数を計測します。スペースや改行を除いた実質的な文字数をカウントします。
テキストの単語数を計測します。英語ではスペースで区切られた単語をカウントし、日本語では形態素解析を使用します。
- text(string): 単語数をカウントするテキスト
- language(string, オプション, デフォルト: "en"): テキストの言語 (en: 英語, ja: 日本語)
テキストの詳細な形態素解析と言語的特徴の分析を行います。文の複雑さ、品詞の割合、語彙の多様性などを解析します。
- テキストの基本情報(総文字数、文の数、総形態素数)
- 詳細分析結果(平均文長、品詞の割合、文字種の割合、語彙の多様性など)
ファイルの詳細な形態素解析と言語的特徴の分析を行います。文の複雑さ、品詞の割合、語彙の多様性などを解析します。
- filePath(string): 分析するファイルのパス(Windows形式かWSL/Linux形式の絶対パスを推奨)
- ファイルの基本情報(総文字数、文の数、総形態素数)
- 詳細分析結果(平均文長、品詞の割合、文字種の割合、語彙の多様性など)
To install Japanese Text Analyzer for Claude Desktop automatically viaSmithery:
npx -y @smithery/cli install @Mistizz/mcp-JapaneseTextAnalyzer --client claude
npx -y github:Mistizz/mcp-JapaneseTextAnalyzer
Windows:%AppData%\Claude\claude_desktop_config.json
macOS:~/Library/Application Support/Claude/claude_desktop_config.json
{ "mcpServers": { "JapaneseTextAnalyzer": { "command": "npx", "args": [ "-y", "github:Mistizz/mcp-JapaneseTextAnalyzer" ] } } }
Cursorでも同様の設定を.cursorフォルダ内のmcp.jsonファイルに追加します。
{ "mcpServers": { "JapaneseTextAnalyzer": { "command": "npx", "args": [ "-y", "github:Mistizz/mcp-JapaneseTextAnalyzer" ] } } }
Windows環境において、上記で動作しなかった場合、下記を試してみてください:
{ "mcpServers": { "JapaneseTextAnalyzer": { "command": "cmd", "args": [ "/c", "npx", "-y", "github:Mistizz/mcp-JapaneseTextAnalyzer" ] } } }
C:\path\to\your\file.txt の単語数を日本語モードで数えてください。
/c/Users/username/Documents/file.txt の単語数を日本語モードで数えてください。
次のテキストの日本語の単語数を数えてください: 吾輩は猫である。名前はまだ無い。どこで生れたかとんと見当がつかぬ。何でも薄暗いじめじめした所でニャーニャー泣いていた事だけは記憶している。
次のテキストを詳細に分析してください: 私は昨日、新しい本を買いました。とても面白そうな小説で、友人からの評判も良かったです。今週末にゆっくり読む予定です。
- 絶対パスが指定された場合はそのまま使用
- Windows形式の絶対パス(例:C:\Users\username\Documents\file.txt)
- WSL/Linux形式の絶対パス(例:/c/Users/username/Documents/file.txt)のどちらも自動的に検出・変換
これにより、単に「README.md」のようなファイル名だけを指定しても、いくつかの一般的なディレクトリで自動的に検索し、ファイルが見つかった場合はそれを使用します。また、WSL環境やGit Bashなどから取得したパス(/c/Users/...形式)も、Windows環境でそのまま使用できます。
このツールは、日本語の単語数カウントに「kuromoji.js」という形態素解析ライブラリを使用しています。形態素解析は自然言語処理の基本的な処理で、文章を意味を持つ最小単位(形態素)に分割します。
形態素解析の処理は初期化に時間がかかることがあります。特に、辞書データを読み込む必要があるため、初回実行時に少々時間がかかる場合があります。サーバー起動時に形態素解析器の初期化を行うことで、ツール実行時の遅延を最小限に抑えています。
「analyze_text」と「analyze_file」ツールは、形態素解析の結果に基づいて、テキストの様々な言語的特徴を計算します。これらには以下のような指標が含まれます:
- 平均文長: 一文あたりの平均文字数。この値が大きいほど、読みにくい文章である可能性があります。
- 文あたりの形態素数: 一文あたりの平均形態素数。文の密度や構文の複雑さを表します。
- 品詞の割合: 名詞・動詞・形容詞などの品詞がテキスト中でどのような割合で使われているかを示します。
- 助詞の割合: 特定の助詞がどのような頻度で使われているかを示し、文の構造や流れを分析します。
- 文字種の割合: ひらがな・カタカナ・漢字・英数字の構成比率を示します。
- 語彙の多様性: 異なった単語数と総単語数の比率(タイプ/トークン比)を示し、語彙の豊かさを計測します。
- カタカナ語の割合: カタカナ語の使用頻度を示し、外来語や専門用語の多さ、文体のカジュアルさを反映します。
- 敬語の頻度: 敬語表現の使用頻度を示し、文章の丁寧さやフォーマル度を測定します。
- 句読点の平均数: 文あたりの句読点の平均数を示し、文の区切りや読みやすさに関する指標を提供します。
これらの指標を組み合わせることで、テキストの特性を多角的に分析し、文体や読みやすさ、専門性などを評価することができます。
このMCPサーバーはMITライセンスの下で提供されています。これは、MITライセンスの条件に従って、ソフトウェアを自由に使用、変更、配布できることを意味します。詳細については、プロジェクトリポジトリのLICENSEファイルをご覧ください。
A MCP server that enables AI assistants to interact with Anki, the spaced repetition flashcard application.
Create spaced repetition flashcards in Rember to remember anything you learn in your chats
Turn YouTube playlists into AI-generated flashcards with spaced repetition — create, search, and export decks via MCP.
Manage Anki flashcards and decks using the Anki-Connect plugin.
Manage Anki flashcards and decks via the AnkiConnect plugin.
Connect Claude with AnkiConnect to create and review flashcards using natural language.
A Model Context Protocol (MCP) server that provides seamless integration with Anki, enabling AI assistants to interact with your flashcard collection. Create, read, update, and manage Anki cards programmatically through a standardized interface.
Create Anki flashcards using natural language by connecting to the AnkiConnect add-on.
Connects to Anki via AnkiConnect to retrieve leech-tagged flashcards for use in Claude Desktop.
Interact with the Anki flashcard app via the AnkiConnect add-on. Supports audio generation and similarity search.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





