MCP Character Counter

by webreactiva-devs

4 stars
284 downloads
Not rated
GitHub Website

About

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

Details

Author
webreactiva-devs
GitHub stars
4
Downloads
284
Categories
Other

- Count total characters in text
- Count characters excluding spaces
- Count letters (a‑z, A‑Z)
- Count numbers (0‑9)
- Count symbols (non‑alphanumeric characters)
- Detailed breakdown of character types

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Character Counter
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install Node.js v17 or higher, clone the repository, run npm install, then add a server configuration to your MCP client (e.g., Claude Desktop’s claude_desktop_config.json or VS Code’s Copilot MCP settings). After restarting the client, ask the AI to analyze text, for example: “Count the characters in this paragraph” or “How many numbers are in this text: ‘123 Main St, Apt 45B’?”.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp character counter": {
            "character-counter": {
                "command": "node",
                "args": [
                    "/ABSOLUTE/PATH/TO/webreactiva-devs/mcp-character-counter/mcp/character-counter.js"
                ]
            }
        }
    }
}

McpServers

{
    "character-counter": {
        "command": "node",
        "args": [
            "/ABSOLUTE/PATH/TO/webreactiva-devs/mcp-character-counter/mcp/character-counter.js"
        ]
    }
}

MCP Character Counter

- Versión en español

A lightweight Model Context Protocol (MCP) server that provides detailed character analysis for text. This tool counts total characters, characters without spaces, letters, numbers, and symbols.

Features

- Count total characters in text
- Count characters excluding spaces
- Count letters (a-z, A-Z)
- Count numbers (0-9)
- Count symbols (non-alphanumeric characters)
- Detailed breakdown of character types

image

Installation

Prerequisites

- Node.js v17 or higher
- Claude Desktop or GitHub Copilot or Other MCP compatible clientes

Setup

1. Clone the repository:

   git clone https://github.com/webreactiva-devs/mcp-character-counter.git
cd mcp-character-counter

2. Install dependencies:

   npm install

Usage with Claude Desktop

1. Open your Claude Desktop configuration:

macOS:

   code ~/Library/Application\ Support/Claude/claude_desktop_config.json

Windows:

   code %APPDATA%\Claude\claude_desktop_config.json

2. Add the character counter to your MCP servers:

   {
     "mcpServers": {
       "character-counter": {
         "command": "node",
         "args": [
           "/ABSOLUTE/PATH/TO/webreactiva-devs/mcp-character-counter/mcp/character-counter.js"
         ]
       }
     }
   }
   

Replace /ABSOLUTE/PATH/TO/ with the actual path on your system.

3. Restart Claude Desktop to load the new MCP server.

4. Look for the hammer icon in the input box, which indicates available MCP tools.

5. Ask Claude to analyze text character counts, for example:
- "Count the characters in this paragraph"
- "How many numbers are in this text: '123 Main St, Apt 45B'?"
- "Analyze the character composition of my email address"

Usage with GitHub Copilot

To use this MCP server with GitHub Copilot:

1. Make sure you have GitHub Copilot installed in your VS Code or other compatible IDE.

2. Open VS Code settings and search for "Copilot MCP".

3. Add a new MCP server configuration:

   "github.copilot.advanced": {
"mcp.servers": [
{
"id": "character-counter",
"name": "Character Counter",
"transport": "stdio",
"command": "node",
"args": ["/path/to/webreactiva-devs/mcp-character-counter/mcp/character-counter.js"]
}
]
}

4. Restart VS Code.

5. You can now use the character counter with Copilot Chat commands like:
- /mcp count-characters-in-text This is the text I want to analyze

Development

To modify or extend this MCP server:

1. Make your changes to character-counter.js
2. Restart the server in your MCP client

How It Works

This MCP server implements a single tool called count-characters-in-text that accepts text input and returns a detailed analysis of character composition. The server uses the Model Context Protocol to expose this functionality to compatible AI assistants.

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

---

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.