text-count-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-count-mcp-servercount words in 'MCP servers are useful.'"
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-count-mcp-server
A Model Context Protocol (MCP) server that provides text counting tools for AI models.
Overview
This server implements the Model Context Protocol to provide tools for counting characters and words in text. These tools help AI models to accurately count text elements without relying on their own counting abilities.
Related MCP server: MCP Character Count
Features
count_characters: Count the number of characters in a text string
count_words: Count the number of words in a text string (currently supports English and other space-delimited languages)
Installation
npm installUsage
As a standalone server
node build/index.jsWith an MCP-compatible client
This server can be used with any client that supports the Model Context Protocol.
API
count_characters
Counts the number of characters in the provided text.
Input:
{
"text": "The text to count characters in."
}Output:
{
"content": [
{
"type": "text",
"text": "The text contains 30 characters."
}
]
}count_words
Counts the number of words in the provided text.
Input:
{
"text": "The text to count words in."
}Output:
{
"content": [
{
"type": "text",
"text": "The text contains 6 words."
}
]
}Limitations
Japanese language word counting is not yet supported.
Other languages use space-based word splitting, which may not be accurate for all languages.
License
See the LICENSE file for license rights and limitations.
This server cannot be deployed
Maintenance
Related MCP Connectors
Count occurrences of any character in your text instantly. Specify the character and get precise c…
Exact text tools for AI agents: unified diff, patch apply, regex testing, grapheme counting.
Exact character/word counting, reversal, palindrome checks, indexing, sorting; Unicode-safe.
Counts tokens under OpenAI-compatible (tiktoken) encodings, by model or encoding name.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides tools for analyzing text documents, including counting words and characters. This server helps LLMs perform text analysis tasks by exposing simple document statistics functionality.122 npm10Apache 2.0
- 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 gradedqualityDmaintenanceProvides comprehensive text analysis capabilities including character counting, word statistics, character type analysis, and text length validation for Korean and English text. Supports AI agents in analyzing and validating text content with detailed statistics and Unicode support.-
- AlicenseAqualityCmaintenanceProvides 14+ character-level text analysis tools that give LLMs the ability to accurately count letters, analyze individual characters, and work with text at the character level—overcoming tokenization limitations.145 npm3MIT