blackmount-nlp-mcp
blackmount-nlp-mcp
MCPのためのNLP — 重い依存関係はゼロ。 Blackmountによって構築されました。
FastMCPサーバーとして動作する45種類のテキスト分析ツールです。NLTKもspaCyもtransformersも不要。依存関係は1つ(mcp[cli])のみ、50KB未満のNLPコードで、数秒で準備が整います。Python 3.10以上が必要です。
なぜこれが必要なのか
blackmount-nlp-mcp | NLTK | spaCy | transformers | |
Wheelサイズ | 42 KB | 1.5 MB | 6 MB+ (+モデル) | 10 MB+ (+モデル) |
直接の依存関係 | 1 | 多数 | 多数 | 多数 |
トークン化 | ✅ | ✅ | ✅ | ✅ |
感情分析 | ✅ | ✅ | ❌ | ✅ |
可読性スコア | ✅ | ❌ | ❌ | ❌ |
キーワード抽出 | ✅ | ✅ | ❌ | ❌ |
テキスト類似度 | ✅ | ✅ | ✅ | ✅ |
言語検出 | ✅ (18言語) | ❌ | ❌ | ❌ |
すべてが純粋なPythonでゼロから実装されています。Porterステマー、TF-IDF、RAKE、レーベンシュタイン距離、VADERスタイルの感情分析、Flesch / Gunning Fog / Coleman-Liau / ARI / SMOG可読性スコア、抽出型要約、言語検出に加え、2000語以上の感情語彙と500以上のストップワードリストがパッケージに組み込まれています。
Related MCP server: LODA MCP Server
クイックスタート
pip install blackmount-nlp-mcpClaude Desktop
設定ファイルに追加してください:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"nlp": {
"command": "blackmount-nlp-mcp"
}
}
}Cursor
プロジェクトルートの .cursor/mcp.json に追加してください:
{
"mcpServers": {
"nlp": {
"command": "blackmount-nlp-mcp"
}
}
}MCPクライアント
サーバーはstdio経由で実行されます。クライアントで blackmount-nlp-mcp コマンドを指定してください:
blackmount-nlp-mcpエディタを再起動してください。45種類のNLPツールがすべて利用可能になります。自然言語で指示するだけです。
ツールカタログ
トークン化 (4ツール)
ツール | 説明 | 質問例 |
| テキストを単語に分割(短縮形や句読点も処理) | "この段落を単語にトークン化して" |
| 文に分割(一般的な略語も処理) | "このテキストを個別の文に分割して" |
| トークンリストから単語レベルのn-gramを生成 | "これらのトークンからバイグラムを生成して" |
| 文字レベルのn-gramを生成 | "この単語の文字トリグラムを取得して" |
可読性 (8ツール)
すべての可読性関数は、入力が空または空白のみの場合 0.0 を返します。
ツール | 説明 | 質問例 |
| 0–100の読みやすさスコア(高いほど読みやすい) | "Flesch Reading Easeスコアを計算して" |
| 米国の学年レベルの推定 | "これはどの学年レベルで書かれていますか?" |
| 複雑な単語の比率に基づくFog指数 | "このテキストのFog指数を計算して" |
| Coleman-Liau学年レベル指数 | "Coleman-Liauスコアを取得して" |
| ARI学年レベル指数 | "このドキュメントのARIは?" |
| SMOG学年(医療テキストに推奨) | "このドキュメントのSMOG学年を計算して" |
| 単語の音節数の推定 | "'extraordinary'には何音節ありますか?" |
| すべての可読性スコアと平易な英語ラベルを一度に取得 | "このテキストの完全な可読性レポートを教えて" |
感情分析 (4ツール)
ツール | 説明 | 質問例 |
| -1.0から+1.0までの複合感情スコア | "このカスタマーレビューの感情スコアは?" |
|
| "このフィードバックはポジティブですか、ネガティブですか?" |
| 文ごとの感情分析 | "各文の感情を表示して" |
| 特定のトピックに絞った感情分析 | "これらのレビューにおける'価格'に関する感情は?" |
キーワード抽出 (4ツール)
ツール | 説明 | 質問例 |
| コーパス全体でのTF-IDFキーワードランキング | "これらのドキュメント全体の主要な用語は何ですか?" |
| RAKEアルゴリズムによるフレーズレベルのキーワード抽出 | "この記事から主要なフレーズを抽出して" |
| ストップワードを除いた頻出単語トップ | "このテキストで最も一般的な単語は何ですか?" |
| 頻出n-gramフレーズトップ | "最も頻繁に出現する2単語のフレーズは何ですか?" |
テキスト類似度 (5ツール)
ツール | 説明 | 質問例 |
| 単語セットの重複度(0–1) | "これら2つの段落はどれくらい似ていますか?" |
| Bag-of-wordsのコサイン類似度(0–1) | "これらのテキスト間のコサイン類似度を計算して" |
| レーベンシュタイン編集距離 | "'kitten'を'sitting'にするには何回の編集が必要ですか?" |
| 0–1に正規化された編集距離 | "これら2つの文字列はどれくらい違いますか?" |
| 2つの文字列間のLCS長 | "これら2つの文字列のLCS長は?" |
テキストクリーニング (10ツール)
ツール | 説明 | 質問例 |
| 500以上の英語ストップワードを除去 | "このテキストからストップワードを除去して" |
| すべての句読点を除去 | "句読点を取り除いて" |
| 数値トークンを除去 | "これに含まれるすべての数字を削除して" |
| URLを除去 | "URLを削除して" |
| メールアドレスを除去 | "このテキストからメールアドレスを削除して" |
| HTMLタグを除去 | "このコンテンツからHTMLを取り除いて" |
| 空白を折りたたんでトリミング | "空白を正規化して" |
| テキストを小文字に変換 | "これを小文字に変換して" |
| Porterステマー(純粋なPython、NLTK不要) | "'running'という単語をステミングして" |
| 設定可能な多段階クリーニングを一度に実行 | "このテキストをクリーニングして:HTML、URL、ストップワードを削除" |
検出 (8ツール)
ツール | 説明 | 質問例 |
| 18のサポート言語から言語を特定 | "このテキストは何語で書かれていますか?" |
| スクリプトを検出:ASCII、Latin、Cyrillic、CJK、Arabic | "このテキストはどのスクリプトを使用していますか?" |
| 英語である信頼度スコア(0–1) | "このテキストは英語ですか?" |
| 単語数 | "これには何単語ありますか?" |
| 文数 | "文の数を数えて" |
| 段落数 | "段落はいくつありますか?" |
| 文字単位の平均単語長 | "平均単語長はどれくらいですか?" |
| 単語単位の平均文長 | "平均して文の長さはどれくらいですか?" |
要約 (2ツール)
ツール | 説明 | 質問例 |
| ドキュメントからスコアの高いN文を選択 | "この記事を3文で要約して" |
| ドキュメントの完全な統計:単語数、可読性、言語、読書時間 | "このテキストの統計プロファイルを教えて" |
ライブラリとして使用する
サブモジュールは直接インポート可能です。MCPサーバーは不要です:
from blackmount_nlp_mcp.sentiment import sentiment_score, sentiment_label
from blackmount_nlp_mcp.readability import reading_level
from blackmount_nlp_mcp.keywords import rake_keywords
text = "This product is absolutely amazing! The quality is excellent."
print(sentiment_score(text))
# 0.9285
print(sentiment_label(text))
# 'positive'
print(reading_level(text))
# {'grade_level': 12.39, 'label': 'college',
# 'flesch_reading_ease': 14.27, 'flesch_kincaid_grade': 12.39,
# 'gunning_fog': 19.58, 'coleman_liau': 10.94,
# 'automated_readability': 7.51, 'smog_grade': 11.21}
print(rake_keywords(text))
# [{'phrase': 'absolutely amazing', 'score': 4.0},
# {'phrase': 'product', 'score': 1.0},
# {'phrase': 'quality', 'score': 1.0},
# {'phrase': 'excellent', 'score': 1.0}]開発
git clone https://github.com/BlackMount-ai/blackmount-nlp-mcp
cd blackmount-nlp-mcp
pip install -e .
pytest tests/ -vBlackmountエコシステム
blackmount-nlp-mcpは、AIを活用する人々のためのツールを提供するBlackmountによって構築されました。
blackmount-mcp — ブラウザのメモリ、AIチャット検索、セッション分析を行うMCPサーバーです。blackmount-nlp-mcpと組み合わせて、保存された会話を分析できます。チャット履歴からのキーワード抽出、AI応答の可読性スコア付け、セッション全体にわたる感情トレンドの検出などが可能です。
app.blackmount.ai — Blackmountのフルプラットフォーム。AIツールが生成するすべてのものを検索、整理、分析します。
ライセンス
MIT
Available Tools
45 toolsautomated_readability_indexC
Automated Readability Index (ARI). Grade level from character and word counts.
Inputs: text (required). Returns: result
check_is_englishC
Confidence that text is English (0-1 scale).
Inputs: text (required). Returns: result
clean_lowercaseC
Convert text to lowercase.
Inputs: text (required). Returns: result
clean_normalize_whitespaceB
Collapse multiple whitespace into single spaces.
Inputs: text (required). Returns: result
clean_remove_emailsC
Remove email addresses from text.
Inputs: text (required). Returns: result
clean_remove_htmlA
Remove HTML tags from text.
Inputs: text (required). Returns: result
clean_remove_numbersC
Remove all numbers from text.
Inputs: text (required). Returns: result
clean_remove_punctuationA
Remove all punctuation from text.
Inputs: text (required). Returns: result
clean_remove_stopwordsC
Remove English stopwords (500+ built-in) from text.
Inputs: text (required). Returns: result
clean_remove_urlsB
Remove URLs from text.
Inputs: text (required). Returns: result
clean_text_pipelineA
Configurable cleaning pipeline. Steps: html, urls, emails, numbers, punctuation, stopwords, whitespace, lowercase.
Inputs: text (required), steps. Returns: result
coleman_liau_indexC
Coleman-Liau Index. Grade level based on characters per word and sentences per word.
Inputs: text (required). Returns: result
count_paragraphsA
Count paragraphs in text (separated by blank lines).
Inputs: text (required). Returns: result
count_sentencesC
Count sentences in text.
Inputs: text (required). Returns: result
count_syllablesA
Estimate syllable count for a single word using heuristics.
Inputs: word (required). Returns: result
count_wordsC
Count words in text.
Inputs: text (required). Returns: result
detect_text_encoding_typeC
Detect character encoding type: ASCII, Latin, Cyrillic, CJK, Arabic, etc.
Inputs: text (required). Returns: result
detect_text_languageA
Detect language from text. Returns top 5 matches with confidence scores. Supports 18 languages.
Inputs: text (required). Returns: result
extract_rake_keywordsC
RAKE keyword extraction (Rapid Automatic Keyword Extraction). Finds multi-word key phrases.
Inputs: text (required), top_n. Returns: result
extract_tfidf_keywordsA
Extract keywords using TF-IDF computed from scratch. Pass multiple docs for best results.
Inputs: documents (required), top_n. Returns: result
flesch_kincaid_gradeC
Flesch-Kincaid Grade Level. Returns US school grade level needed to understand text.
Inputs: text (required). Returns: result
flesch_reading_easeC
Flesch Reading Ease score. 90-100=very easy, 60-69=standard, 0-29=very confusing.
Inputs: text (required). Returns: result
generate_char_ngramsB
Generate character-level n-grams from text.
Inputs: text (required), n. Returns: result
generate_ngramsA
Generate n-grams from a list of tokens. Returns list of n-gram lists.
Inputs: tokens (required), n. Returns: result
get_aspect_sentimentA
Sentiment around specific topics/aspects. Finds sentences mentioning each aspect and averages their sentiment.
Inputs: text (required), aspects (required).
get_avg_sentence_lengthC
Average sentence length in words.
Inputs: text (required). Returns: result
get_avg_word_lengthC
Average word length in characters.
Inputs: text (required). Returns: result
get_cosine_similarityC
Cosine similarity using bag-of-words vectors. 0=orthogonal, 1=identical.
Inputs: text1 (required), text2 (required). Returns: result
get_edit_distanceA
Levenshtein edit distance. Minimum single-character edits to transform s1 into s2.
Inputs: s1 (required), s2 (required). Returns: result
get_extractive_summaryA
Extract the best N sentences as a summary. Scores by position, keyword frequency, length, and title overlap.
Inputs: text (required), n_sentences, title. Returns: result
get_jaccard_similarityB
Jaccard similarity (word-level set overlap). 0=no overlap, 1=identical word sets.
Inputs: text1 (required), text2 (required). Returns: result
get_longest_common_subsequenceB
Length of longest common subsequence (LCS) between two strings.
Inputs: s1 (required), s2 (required). Returns: result
get_normalized_edit_distanceA
Normalized edit distance on 0-1 scale. 0=identical, 1=completely different.
Inputs: s1 (required), s2 (required). Returns: result
get_phrase_frequencyC
Most frequent n-grams (phrases). Default bigrams. Returns [{phrase, count}].
Inputs: text (required), n, top_n. Returns: result
get_reading_levelA
Comprehensive reading level: grade level, label (elementary/middle/high school/college/graduate), and all readability scores.
Inputs: text (required).
get_sentence_sentimentsA
Per-sentence sentiment breakdown. Returns list of {sentence, score, label}.
Inputs: text (required). Returns: result
get_sentiment_labelC
Classify text as 'positive', 'negative', or 'neutral'.
Inputs: text (required). Returns: result
get_sentiment_scoreA
Compound sentiment score from -1 (negative) to 1 (positive). VADER-style with built-in 2000+ word lexicon.
Inputs: text (required). Returns: result
get_text_statisticsA
Comprehensive text stats: words, sentences, paragraphs, reading time, readability scores, language.
Inputs: text (required).
get_word_frequencyA
Most frequent words excluding stopwords. Returns [{word, count}].
Inputs: text (required), top_n. Returns: result
gunning_fog_indexA
Gunning Fog Index. Estimates years of formal education needed to understand text.
Inputs: text (required). Returns: result
porter_stemA
Porter stemmer from scratch. Reduce word to its stem (e.g., 'running' -> 'run').
Inputs: word (required). Returns: result
sentence_tokenizeA
Split text into sentences. Handles abbreviations (Mr., Dr., etc.) and tricky boundaries.
Inputs: text (required). Returns: result
smog_grade_indexA
SMOG Grade. Best for healthcare/medical texts. Counts polysyllabic words.
Inputs: text (required). Returns: result
word_tokenizeA
Split text into word tokens. Handles contractions, hyphenated words, numbers, and punctuation.
Inputs: text (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 45 tools
Many tools have clear purposes, but multiple readability indices (ARI, Coleman-Liau, Flesch, etc.) and multiple sentiment tools (aspect, sentence, overall) overlap in function, creating confusion for agents.
Most tools follow a verb_noun pattern (e.g., clean_lowercase, get_cosine_similarity), but some use different verbs like 'detect_text_encoding_type' vs 'check_is_english', with minor inconsistency.
45 tools is on the high side for an NLP toolkit; many functionalities could be consolidated (e.g., several readability formulas into one tool). Still, each individual tool is specific.
The server covers a wide range of text analysis: cleaning, tokenization, readability, similarity, sentiment, keyword extraction, language detection. Missing lemmatization, but comprehensive overall.
Maintenance
Related MCP Connectors
Sentiment, language detection, readability, keywords, summaries and profanity filtering
Deterministic AI agent microtools, no accounts/API keys. fetch_extract: 98% token cut. 47 tools.
Web scraping, code review, content gen, sentiment. Zero Core Tools.
35 small task models behind one API: moderation, embeddings, rerank, OCR, speech to text and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides intelligent summarization capabilities through a clean, extensible architecture. Mainly built for solving AI agents issues on big repositories, where large files can eat up the context window.18 npm37MIT
- AlicenseNot gradedqualityDmaintenanceProvides token-efficient document search and retrieval for LLMs by returning relevant document sections within specified token budgets. It utilizes section-aware parsing and Bloom filter elimination to offer high-speed, zero-dependency access to large documents.MIT
- AlicenseAqualityAmaintenanceWeb content extraction for AI agents. 10 tools: scrape, crawl, map, batch, extract, summarize, diff, brand, search, research. Uses TLS fingerprinting to bypass anti-bot without a headless browser. Outputs LLM-optimized markdown with 67% fewer tokens than raw HTML.102,465AGPL 3.0
- AlicenseAqualityDmaintenanceSmart memory for AI agents. Solves the Karpathy problem: memories decay, topics are frequency-weighted, one-time questions don't become obsessions. 7 tools. Zero deps.42MIT