Get the FREE Ultimate OpenClaw Setup Guide →

mcp-character-counter

A lightweight Model Context Protocol (MCP) server that provides detailed character analysis for text.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio webreactiva-devs-mcp-character-counter node /ABSOLUTE/PATH/TO/webreactiva-devs/mcp-character-counter/mcp/character-counter.js

How to use

This MCP server exposes a single tool called count-characters-in-text. It analyzes input text and returns a detailed breakdown of character composition, including total characters, characters excluding spaces, letters, numbers, and symbols. You can integrate it with Claude Desktop or GitHub Copilot to process text and obtain quick character analytics.

To use it with Claude Desktop, add the character-counter MCP server to your MCP configuration, pointing to the node script path. Once loaded, you can prompt Claude to analyze a text, for example: count the characters in this paragraph. The tool will return a structured breakdown of character counts. To use it with GitHub Copilot, configure Copilot to start the MCP server via a node command and query it through Copilot Chat commands like /mcp count-characters-in-text <your text>.

How to install

Prerequisites:

  • Node.js v16+ (the README mentions v17 or higher, ensure compatibility with your environment)
  • Access to a local MCP client (Claude Desktop or GitHub Copilot with MCP support)

Setup steps:

  1. Clone the repository and navigate to the project: git clone https://github.com/webreactiva-devs/mcp-character-counter.git cd mcp-character-counter

  2. Install dependencies: npm install

  3. Ensure you have an absolute path to the server script for configuration in your MCP client. For example: /ABSOLUTE/PATH/TO/webreactiva-devs/mcp-character-counter/mcp/character-counter.js

  4. Start the MCP server via your MCP client configuration (see how_to_use for wiring details). No global server process is started from the command line in the provided setup; it is designed to be launched by Claude Desktop or Copilot with the given node command and path.

Additional notes

Tips:

  • Use an absolute path to the character-counter.js script when integrating with MCP clients.
  • If you see port or communication errors, ensure the MCP client is configured to use transport compatible with node-based servers (usually stdio in Copilot setups).
  • The server exposes a single tool: count-characters-in-text. Ensure your prompts call this exact tool name when interfacing through your MCP client.
  • On Windows, if path escaping is needed, ensure proper quotes around the path in JSON configurations.
  • If you update character-counter.js, restart the MCP client to reload changes.

Common issues:

  • Node version incompatibility: verify that the Node version used by your MCP client is compatible with the project’s scripts.
  • Incorrect script path: double-check the absolute path to mcp/character-counter.js in your configuration.
  • Missing dependencies: run npm install in the repository root before configuring the MCP server.

Related MCP Servers

Sponsor this space

Reach thousands of developers