Counts characters or bytes in provided text with customizable whitespace inclusion.
mcp-charcount is a straightforward MCP server designed to provide a single, dedicated utility for text analysis. It offers a simple method to accurately count either the number of characters or bytes within any given text string, with an option to include or exclude whitespace from the calculation. This makes it a versatile tool for various text processing needs, such as validating input lengths, estimating data sizes, or general content analysis in a streamlined manner through the MCP protocol.
Key Features
01Count bytes in a given text string
02Count characters in a given text string
03Option to include or exclude whitespace from counts
04Simple integration as an MCP server
05Supports running with `uv` for easy setup
060 GitHub stars
Use Cases
01Analyzing text length for character or byte limits in forms or messages
02Measuring the byte size of strings for data transfer or storage estimations
03Quickly counting characters or bytes during content creation or development workflows