mcpField
T
text-count-mcp-server

text-count-mcp-server

Local
github.com/yuisekiProductivity1Updated 41w ago

About text-count-mcp-server

text-count-mcp-server is an MCP server for AI models that counts characters and words in text. Word counting is designed for English and other space-delimited languages; Japanese is not supported.

Key features

  1. 01Count characters in text
  2. 02Count words in text
  3. 03Support space-delimited languages

Use cases

  1. 01Check a text's character count
  2. 02Count words in English text

MCP support

It exposes `count_characters` and `count_words` tools to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

text-count-mcp-server

A Model Context Protocol (MCP) server that provides text counting tools for AI models.

Overview

This server implements the Model Context Protocol to provide tools for counting characters and words in text. These tools help AI models to accurately count text elements without relying on their own counting abilities.

Features

  • count_characters: Count the number of characters in a text string
  • count_words: Count the number of words in a text string (currently supports English and other space-delimited languages)

Installation

npm install

Usage

As a standalone server
node build/index.js
With an MCP-compatible client

This server can be used with any client that supports the Model Context Protocol.

API

count_characters

Counts the number of characters in the provided text.

Input:

{
  "text": "The text to count characters in."
}

Output:

{
  "content": [
    {
      "type": "text",
      "text": "The text contains 30 characters."
    }
  ]
}
count_words

Counts the number of words in the provided text.

Input:

{
  "text": "The text to count words in."
}

Output:

{
  "content": [
    {
      "type": "text",
      "text": "The text contains 6 words."
    }
  ]
}

Limitations

  • Japanese language word counting is not yet supported.
  • Other languages use space-based word splitting, which may not be accurate for all languages.

License

See the LICENSE file for license rights and limitations.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.