- Home
- MCP servers
- Text Analyzer
Text Analyzer
- python
0
GitHub Stars
python
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"suteeee-text_alalyzer": {
"command": "python",
"args": [
"/path/to/text_analyzer_server.py"
]
}
}
}You set up and run a Text Analyzer MCP Server that exposes text analytics tools over the FastMCP framework. It helps you count characters and words, analyze character types, generate comprehensive text statistics, and check length limits, all in real time for AI agents and clients that need precise text measurements.
How to use
Connect your MCP client to the Text Analyzer MCP Server to perform practical text analyses. You can call each tool to get exact results and integrate them into your AI workflow. Typical usage patterns include counting characters with and without spaces, computing word statistics, analyzing character types, retrieving a full set of text statistics, and validating text length against a maximum limit. Use the stdio bridge for local development or a remote HTTP endpoint if you are provided one.
How to install
Prerequisites: you need Python installed and a working virtual environment. You will also need a text editor to edit configuration files and a shell to run commands.
# Create and activate a virtual environment
python -m venv venv
# Activate the virtual environment
# Windows:
venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
Next, run the MCP server locally for development. You will typically start it with Python and connect through the FastMCP tooling for testing in a browser.
# Development mode (recommended for testing with an MCP Inspector)
fastmcp dev text_analyzer_server.py
If you prefer to run it directly without the MCP Inspector, start the Python server process and use the MCP CLI to run it.
# Direct Python run
python text_analyzer_server.py
# Or using the FastMCP CLI directly
fastmcp run text_analyzer_server.py
Additional notes
When integrating with clients, you can configure the client to start the server process using an explicit command. For example, you can provide the Python interpreter and the server script path to the client’s MCP configuration.
Available tools
count_characters
Calculates total characters, characters without spaces, spaces count, and final count based on the include_spaces setting.
count_words
Calculates total words, unique words, and average word length.
analyze_character_types
Analyzes character types by alphabet, number, whitespace, punctuation and classifies Hangul/Korean, English, and special characters.
get_text_statistics
Provides comprehensive statistics including character, word, line, and sentence counts, plus a preview and detailed character-type breakdown.
check_text_length_limit
Checks current text length against a maximum limit and reports usage, remaining characters, and percentage of limit used.