Skip to main content
Glama
Text Counter MCP Server

Text Counter MCP Server

by gws8820

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 text

    • characters: total character count

    • characters_without_space: character count excluding whitespace

    • words: 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.py

Or from anywhere using an explicit directory:

uv run --directory /home/gws8820/devochat/mcp-proxy/servers/text-counter python main.py

Use 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 tool
get_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

Inputs: text (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 1 tool

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count3/5

    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.

    Completeness2/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers