Skip to main content

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
}

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.

Metadata

Release files for text-counter 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for text-counter 0.2.0
File Size Uploaded Provenance
text_counter-0.2.0.tar.gz 32.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for text-counter 0.2.0
File Interpreter ABI Platform
text_counter-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 36.0 kB

Release files / text_counter-0.2.0.tar.gz

Download URL text_counter-0.2.0.tar.gz
Size 32.7 kB
Tags Source
SHA-256 checksum
How to use checksums
369b81eb1672eb378bc054479dcfe5de2bfa35b46f5ced377bcc1103877fb7e5
BLAKE2b-256 checksum
How to use checksums
f3c4f6bdc5590f2e4966b2fa51b8689185a14c8eb053fb90439bb45a7ad85700
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / text_counter-0.2.0-py3-none-any.whl

Download URL text_counter-0.2.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe01fbc8ba4f888bf18d4c52874989206e34d29097b21c64ca7d8bdbe7a0c060
BLAKE2b-256 checksum
How to use checksums
5e6fa2ef91ed6e3377c6e66cfdcc54ef013b24e7b6403c01d24193234e535e72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for text-counter 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page