Skip to main content
Glama

blackmount-nlp-mcp

PyPI version License: MIT Python 3.10+

MCP를 위한 NLP — 무거운 의존성 제로. Blackmount에서 제작.

FastMCP 서버로 제공되는 45가지 텍스트 분석 도구입니다. NLTK, spaCy, transformers가 필요 없습니다. 단 하나의 의존성(mcp[cli])만 필요하며, 50KB 미만의 NLP 코드로 몇 초 만에 준비됩니다. Python 3.10 이상이 필요합니다.


이 프로젝트의 존재 이유

blackmount-nlp-mcp

NLTK

spaCy

transformers

휠 크기

42 KB

1.5 MB

6 MB+ (+ 모델)

10 MB+ (+ 모델)

직접 의존성

1

다수

다수

다수

토큰화

✅

✅

✅

✅

감성 분석

✅

✅

❌

✅

가독성 점수

✅

❌

❌

❌

키워드 추출

✅

✅

❌

❌

텍스트 유사도

✅

✅

✅

✅

언어 감지

✅ (18개 언어)

❌

❌

❌

Porter 스테머, TF-IDF, RAKE, Levenshtein, VADER 스타일 감성 분석, Flesch / Gunning Fog / Coleman-Liau / ARI / SMOG 가독성 지수, 추출적 요약, 언어 감지 등 모든 기능이 순수 Python으로 처음부터 구현되었습니다. 또한 2,000개 이상의 단어가 포함된 감성 사전과 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 구

"가장 자주 나타나는 두 단어 구는 무엇인가요?"

텍스트 유사도 (5개 도구)

도구

설명

질문 예시

get_jaccard_similarity

단어 집합 중첩도, 0–1

"이 두 문단은 얼마나 비슷한가요?"

get_cosine_similarity

Bag-of-words 코사인 유사도, 0–1

"이 텍스트들 간의 코사인 유사도를 계산해줘"

get_edit_distance

Levenshtein 편집 거리

"'kitten'을 'sitting'으로 바꾸려면 몇 번의 편집이 필요한가요?"

get_normalized_edit_distance

0–1로 정규화된 편집 거리

"이 두 문자열은 얼마나 다른가요?"

get_longest_common_subsequence

두 문자열 간의 LCS 길이

"이 두 문자열의 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 — MCP 서버로서 브라우저 메모리, AI 채팅 검색 및 세션 분석 기능을 제공합니다. 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