Text Counter MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Text Counter MCP Servercount characters and words in 'The quick brown fox jumps over the lazy dog'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Text Counter MCP Server
An MCP (Model Context Protocol) server that calculates basic text metrics for input text.
Features
get_text_count(text: str): Returns basic metrics for the provided textcharacters: total character countcharacters_without_space: character count excluding whitespacewords: word count
Example:
{
"characters": 12,
"characters_without_space": 11,
"words": 2
}Related MCP server: MCP Character Counter
Requirements
Python 3.10+
uv installed
All Python dependencies are defined in pyproject.toml and will be resolved by uv.
Run locally
From this directory:
uv run python main.pyOr from anywhere using an explicit directory:
uv run --directory /home/gws8820/devochat/mcp-proxy/servers/text-counter python main.pyUse with an MCP client
Add the following in your MCP client configuration (example servers.json):
{
"mcpServers": {
"text-counter": {
"command": "uvx",
"args": ["text-counter"]
}
}
}Once connected, call the tool get_text_count with a text string argument.
License
Distributed under the MIT License.
Available Tools
1 toolget_text_countGet Text CountA
Calculate basic text metrics for the input text.
characters: total character count
characters_without_space: character count excluding whitespace
words: word count
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations exist, so the description carries the full burden. It implicitly conveys a pure, side-effect-free computation via 'Calculate' and helpfully documents the returned fields, but never states that it is read-only, deterministic, or has no external effects. A useful but not complete behavioral picture.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
One sentence plus a clean three-item list, with the overall purpose front-loaded ahead of the detail. Every line earns its place and there is no filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, the description correctly enumerates the returned fields, so an agent knows what it gets back. It is nearly complete for a trivial deterministic tool; only the lack of any usage/permission context keeps it from a 5.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0% and the single 'text' parameter has no schema-level description. The phrase 'for the input text' signals what is measured but adds no constraints, format expectations, or size limits. Partial compensation for the coverage gap, not full.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb ('Calculate') and resource ('text metrics for the input text'), then enumerates the exact three metrics produced. There are no siblings to distinguish from, and the enumeration removes any ambiguity about scope.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No when-to-use guidance, exclusions, or alternatives are given. Usage is trivially implied by the name and the listing of metrics, but nothing is stated explicitly. With no siblings, there is little to route against, so this lands at minimum-viable.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v0.2.0- First observed
get_text_count
TDQS
Scored across 1 tool
The single tool has a clear, focused purpose: computing basic text metrics. There are no other tools to confuse it with, so disambiguation is inherently high, though the tool name 'get_text_count' is slightly misleading as it returns multiple metrics beyond just a count.
With only one tool, there is no opportunity for naming inconsistency. The name 'get_text_count' follows a clear verb_noun pattern (get_text_count), which is predictable and descriptive.
The server offers only a single tool, which is very thin for a text analysis domain. While it covers basic metrics, it feels under-scoped; typical text analysis servers include multiple tools for different purposes, making this borderline too few.
The tool covers only basic counts (characters, words) but omits common text metrics like sentences, paragraphs, reading time, and frequency analysis. The surface is severely incomplete for a text analysis server, with no CRUD or lifecycle operations available.
Maintenance
Related MCP Connectors
Count occurrences of any character in your text instantly. Specify the character and get precise cā¦
Character count, text discarded
Text statistics & readability MCP.
Exact character/word counting, reversal, palindrome checks, indexing, sorting; Unicode-safe.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables counting characters or bytes in text with options to include or exclude whitespace. Provides a simple tool for text analysis and length measurement.1MIT
- FlicenseNot gradedqualityNot gradedmaintenanceProvides detailed character analysis for text, counting total characters, characters without spaces, letters, numbers, and symbols through a simple MCP tool interface.-
- AlicenseNot gradedqualityBmaintenanceProvides text analysis tools including word counting, reading time estimation, keyword density analysis, and sentiment scoring.7 npm28 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceProvides tools for AI models to count characters and words in text, supporting English and other space-delimited languages.1MIT