Skip to main content
Glama

blackmount-nlp-mcp

PyPI version License: MIT Python 3.10+

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-mcp

Claude Desktop

設定ファイルに追加してください:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.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ツール)

ツール

説明

質問例

word_tokenize

テキストを単語に分割(短縮形や句読点も処理)

"この段落を単語にトークン化して"

sentence_tokenize

文に分割(一般的な略語も処理)

"このテキストを個別の文に分割して"

generate_ngrams

トークンリストから単語レベルのn-gramを生成

"これらのトークンからバイグラムを生成して"

generate_char_ngrams

文字レベルのn-gramを生成

"この単語の文字トリグラムを取得して"

可読性 (8ツール)

すべての可読性関数は、入力が空または空白のみの場合 0.0 を返します。

ツール

説明

質問例

flesch_reading_ease

0–100の読みやすさスコア(高いほど読みやすい)

"Flesch Reading Easeスコアを計算して"

flesch_kincaid_grade

米国の学年レベルの推定

"これはどの学年レベルで書かれていますか?"

gunning_fog_index

複雑な単語の比率に基づくFog指数

"このテキストのFog指数を計算して"

coleman_liau_index

Coleman-Liau学年レベル指数

"Coleman-Liauスコアを取得して"

automated_readability_index

ARI学年レベル指数

"このドキュメントのARIは?"

smog_grade_index

SMOG学年(医療テキストに推奨)

"このドキュメントのSMOG学年を計算して"

count_syllables

単語の音節数の推定

"'extraordinary'には何音節ありますか?"

get_reading_level

すべての可読性スコアと平易な英語ラベルを一度に取得

"このテキストの完全な可読性レポートを教えて"

感情分析 (4ツール)

ツール

説明

質問例

get_sentiment_score

-1.0から+1.0までの複合感情スコア

"このカスタマーレビューの感情スコアは?"

get_sentiment_label

positive、negative、neutral を返す

"このフィードバックはポジティブですか、ネガティブですか?"

get_sentence_sentiments

文ごとの感情分析

"各文の感情を表示して"

get_aspect_sentiment

特定のトピックに絞った感情分析

"これらのレビューにおける'価格'に関する感情は?"

キーワード抽出 (4ツール)

ツール

説明

質問例

extract_tfidf_keywords

コーパス全体でのTF-IDFキーワードランキング

"これらのドキュメント全体の主要な用語は何ですか?"

extract_rake_keywords

RAKEアルゴリズムによるフレーズレベルのキーワード抽出

"この記事から主要なフレーズを抽出して"

get_word_frequency

ストップワードを除いた頻出単語トップ

"このテキストで最も一般的な単語は何ですか?"

get_phrase_frequency

頻出n-gramフレーズトップ

"最も頻繁に出現する2単語のフレーズは何ですか?"

テキスト類似度 (5ツール)

ツール

説明

質問例

get_jaccard_similarity

単語セットの重複度(0–1)

"これら2つの段落はどれくらい似ていますか?"

get_cosine_similarity

Bag-of-wordsのコサイン類似度(0–1)

"これらのテキスト間のコサイン類似度を計算して"

get_edit_distance

レーベンシュタイン編集距離

"'kitten'を'sitting'にするには何回の編集が必要ですか?"

get_normalized_edit_distance

0–1に正規化された編集距離

"これら2つの文字列はどれくらい違いますか?"

get_longest_common_subsequence

2つの文字列間のLCS長

"これら2つの文字列のLCS長は?"

テキストクリーニング (10ツール)

ツール

説明

質問例

clean_remove_stopwords

500以上の英語ストップワードを除去

"このテキストからストップワードを除去して"

clean_remove_punctuation

すべての句読点を除去

"句読点を取り除いて"

clean_remove_numbers

数値トークンを除去

"これに含まれるすべての数字を削除して"

clean_remove_urls

URLを除去

"URLを削除して"

clean_remove_emails

メールアドレスを除去

"このテキストからメールアドレスを削除して"

clean_remove_html

HTMLタグを除去

"このコンテンツからHTMLを取り除いて"

clean_normalize_whitespace

空白を折りたたんでトリミング

"空白を正規化して"

clean_lowercase

テキストを小文字に変換

"これを小文字に変換して"

porter_stem

Porterステマー(純粋なPython、NLTK不要)

"'running'という単語をステミングして"

clean_text_pipeline

設定可能な多段階クリーニングを一度に実行

"このテキストをクリーニングして:HTML、URL、ストップワードを削除"

検出 (8ツール)

ツール

説明

質問例

detect_text_language

18のサポート言語から言語を特定

"このテキストは何語で書かれていますか?"

detect_text_encoding_type

スクリプトを検出:ASCII、Latin、Cyrillic、CJK、Arabic

"このテキストはどのスクリプトを使用していますか?"

check_is_english

英語である信頼度スコア(0–1)

"このテキストは英語ですか?"

count_words

単語数

"これには何単語ありますか?"

count_sentences

文数

"文の数を数えて"

count_paragraphs

段落数

"段落はいくつありますか?"

get_avg_word_length

文字単位の平均単語長

"平均単語長はどれくらいですか?"

get_avg_sentence_length

単語単位の平均文長

"平均して文の長さはどれくらいですか?"

要約 (2ツール)

ツール

説明

質問例

get_extractive_summary

ドキュメントからスコアの高いN文を選択

"この記事を3文で要約して"

get_text_statistics

ドキュメントの完全な統計:単語数、可読性、言語、読書時間

"このテキストの統計プロファイルを教えて"


ライブラリとして使用する

サブモジュールは直接インポート可能です。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/ -v

Blackmountエコシステム

blackmount-nlp-mcpは、AIを活用する人々のためのツールを提供するBlackmountによって構築されました。

blackmount-mcp — ブラウザのメモリ、AIチャット検索、セッション分析を行うMCPサーバーです。blackmount-nlp-mcpと組み合わせて、保存された会話を分析できます。チャット履歴からのキーワード抽出、AI応答の可読性スコア付け、セッション全体にわたる感情トレンドの検出などが可能です。

app.blackmount.ai — Blackmountのフルプラットフォーム。AIツールが生成するすべてのものを検索、整理、分析します。


ライセンス

MIT

Available Tools

45 tools
automated_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

    B3.1/5.0

    Scored across 45 tools

    Disambiguation3/5

    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.

    Naming Consistency4/5

    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.

    Tool Count3/5

    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.

    Completeness4/5

    The server covers a wide range of text analysis: cleaning, tokenization, readability, similarity, sentiment, keyword extraction, language detection. Missing lemmatization, but comprehensive overall.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 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
    • A
      license
      A
      quality
      A
      maintenance
      Web 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.
      10
      2,465
      AGPL 3.0