MCP Character Count
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., "@MCP Character Count count characters in 'Hello World' excluding whitespace"
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.
mcp-charcount
Simple MCP server that provides a single tool to count characters or bytes in text.
Quick start
Run with stdio (no PATH to python needed):
uv run src/mcp_charcount/server.py
Develop with MCP Inspector:
uv run mcp dev src/mcp_charcount/server.py
Related MCP server: Twitter MCP Server
Tool: count_chars
Args:
text: str,mode: "chars"|"bytes" = "chars",include_whitespace: bool = trueReturns:
{ "count": int, "mode": str, "include_whitespace": bool }
Tests
pytest -q(src layout is configured; install not required)With uv:
uv run pytest -q
Manifest
mcp.jsonis configured for this repo layout:command:uvargs:["run", "src/mcp_charcount/server.py"]This matches the current server which runsmcp.run(transport='stdio')when executed as a script.
Settings Example
codex
~/.codex/config.toml
[mcp_servers.mcp-charcount]
command = "uv"
args = ["--directory", "/ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-charcount", "run", "src/mcp_charcount/server.py"]Amazon Q Developer
~/.aws/amazonq/mcp.json
{
"mcpServers": {
"local.mcp-charcount": {
"command": "/opt/homebrew/bin/uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-charcount",
"run",
"src/mcp_charcount/server.py"
]
}
}
}License: MIT
Available Tools
1 toolcount_charsA
Count the length of input text.
- mode="chars": Unicode code points count (Python len).
- mode="bytes": UTF-8 encoded byte length.
- include_whitespace: when False, whitespace characters are filtered out before counting.
Inputs: text (required), mode, include_whitespace. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool has a single, clearly defined purpose of counting characters in text.
A single tool inherently has perfect naming consistency, as there are no other tool names to compare against. The name 'count_chars' follows a clear verb_noun pattern.
A single tool for a character counting server feels thin and limited in scope. While the tool is functional, the server's purpose could reasonably support additional related operations (e.g., word counting, line counting, text analysis), making the single tool count appear underdeveloped.
The server's domain appears to be text analysis or character operations, but it only offers character counting with configurable modes. There are obvious gaps, such as no tools for word counting, line counting, text transformation, or other common text processing tasks, which limits its utility.
Maintenance
Related MCP Connectors
Count occurrences of any character in your text instantly. Specify the character and get precise c…
Count characters, words and paragraphs, and estimate reading time.
Character count, text discarded
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceProvides detailed character analysis for text, counting total characters, characters without spaces, letters, numbers, and symbols through a simple MCP tool interface.-
- AlicenseAqualityDmaintenanceProvides tools for accurate Twitter/X post character counting, validation, and optimization using official counting methods. It enables users to extract entities like URLs and hashtags to ensure content fits within platform constraints.41MIT
- AlicenseNot gradedqualityDmaintenanceProvides tools for AI models to count characters and words in text, supporting English and other space-delimited languages.1MIT
- AlicenseAqualityDmaintenanceProvides a tool to calculate basic text metrics including character count, characters without spaces, and word count.112 PyPIMIT