text-analysis-api
Algorithmic text and NLP analysis server providing sentiment, readability, keyword extraction, language detection, stats, and more via REST and MCP.
README
<p align="center"><img src="logo.png" width="120" alt="logo"></p>
text-analysis-api
⭐ Building in public from $0 MRR. Star if you want to follow the journey — lazymac-mcp (42 tools, one MCP install) · lazymac-k-mcp (Korean wedge) · lazymac-sdk (TS client) · api.lazy-mac.com · Pro $29/mo.
🚀 Want all 42 lazymac tools through ONE MCP install?
npx -y @lazymac/mcp· Pro $29/mo for unlimited calls.
Algorithmic text/NLP analysis REST API and MCP server. All processing is rule-based — no external AI APIs or ML models required.
Features
- Sentiment analysis — positive/negative/neutral scoring with negation & intensifier handling
- Readability scores — Flesch-Kincaid Grade, Flesch Reading Ease, Coleman-Liau, ARI
- Keyword extraction — TF-based scoring with stop word removal
- Language detection — character frequency analysis (EN, KO, JA, ZH, ES, FR, DE)
- Text statistics — word/sentence/paragraph counts, avg lengths, reading & speaking time
- Profanity detection — basic word list check
- Summarization — extractive, sentence-scoring approach
- MCP server — stdio-based Model Context Protocol integration
Quick Start
npm install
npm start # REST API on port 4600
npm run mcp # MCP server (stdio)
API Endpoints
All POST endpoints accept { "text": "..." } as JSON body.
| Endpoint | Description |
|---|---|
GET /health |
Health check |
POST /api/v1/sentiment |
Sentiment analysis |
POST /api/v1/readability |
Readability scores |
POST /api/v1/keywords |
Keyword extraction |
POST /api/v1/language |
Language detection |
POST /api/v1/stats |
Text statistics |
POST /api/v1/analyze |
Full analysis (all above) |
Example
curl -X POST http://localhost:4600/api/v1/analyze \
-H "Content-Type: application/json" \
-d '{"text": "This is a wonderful and amazing product. I really love using it every day!"}'
MCP Integration
Add to your Claude Desktop or MCP client config:
{
"mcpServers": {
"text-analysis": {
"command": "node",
"args": ["/path/to/text-analysis-api/src/mcp-server.js"]
}
}
}
MCP Tools
analyze_sentiment, analyze_readability, extract_keywords, detect_language, analyze_stats, detect_profanity, summarize_text, analyze_all
Docker
docker build -t text-analysis-api .
docker run -p 4600:4600 text-analysis-api
License
MIT
<sub>💡 Host your own stack? <a href="https://m.do.co/c/c8c07a9d3273">Get $200 DigitalOcean credit</a> via lazymac referral link.</sub>
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.