Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Text Counter Server

FreeNot checked

Provides a tool to calculate basic text metrics including character count, characters without spaces, and word count.

GitHubEmbed

About

Provides a tool to calculate basic text metrics including character count, characters without spaces, and word count.

README

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
}

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.

from github.com/gws8820/text-counter

Install Text Counter Server in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install text-counter-mcp-server

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add text-counter-mcp-server -- uvx text-counter

FAQ

Is Text Counter Server MCP free?

Yes, Text Counter Server MCP is free — one-click install via Unyly at no cost.

Does Text Counter Server need an API key?

No, Text Counter Server runs without API keys or environment variables.

Is Text Counter Server hosted or self-hosted?

A hosted option is available: Unyly runs the server in the cloud, no local setup required.

How do I install Text Counter Server in Claude Desktop, Claude Code or Cursor?

Open Text Counter Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Text Counter Server with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs