Character Counter
STDIOLightweight MCP server that provides detailed character analysis for text content.
Lightweight MCP server that provides detailed character analysis for text content.
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.
Clone the repository:
git clone https://github.com/webreactiva-devs/mcp-character-counter.git cd mcp-character-counter
Install dependencies:
npm install
Open your Claude Desktop configuration:
macOS:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows:
code %APPDATA%\Claude\claude_desktop_config.json
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.
Restart Claude Desktop to load the new MCP server.
Look for the hammer icon in the input box, which indicates available MCP tools.
Ask Claude to analyze text character counts, for example:
To use this MCP server with GitHub Copilot:
Make sure you have GitHub Copilot installed in your VS Code or other compatible IDE.
Open VS Code settings and search for "Copilot MCP".
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"] } ] }
Restart VS Code.
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
To modify or extend this MCP server:
character-counter.js
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.
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
Un servidor ligero de Model Context Protocol (MCP) que proporciona un análisis detallado de caracteres en un texto. Esta herramienta cuenta caracteres totales, caracteres sin espacios, letras, números y símbolos.
Clona el repositorio:
git clone https://github.com/webreactiva-devs/mcp-character-counter.git cd mcp-character-counter
Instala las dependencias:
npm install
Abre la configuración de Claude Desktop:
macOS:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows:
code %APPDATA%\Claude\claude_desktop_config.json
Añade el contador de caracteres a tus servidores MCP:
{ "mcpServers": { "character-counter": { "command": "node", "args": [ "/RUTA/ABSOLUTA/A/webreactiva-devs/mcp-character-counter/mcp/character-counter.js" ] } } }
Reemplaza /RUTA/ABSOLUTA/A/
con la ruta actual en tu sistema.
Reinicia Claude Desktop para cargar el nuevo servidor MCP.
Busca el icono de martillo en la caja de entrada, que indica las herramientas MCP disponibles.
Pide a Claude que analice el recuento de caracteres en un texto, por ejemplo:
Para usar este servidor MCP con GitHub Copilot:
Asegúrate de tener GitHub Copilot instalado en VS Code u otro IDE compatible.
Abre la configuración de VS Code y busca "Copilot MCP".
Añade una nueva configuración de servidor MCP:
"github.copilot.advanced": { "mcp.servers": [ { "id": "character-counter", "name": "Character Counter", "transport": "stdio", "command": "node", "args": ["/ruta/a/webreactiva-devs/mcp-character-counter/mcp/character-counter.js"] } ] }
Reinicia VS Code.
Ahora puedes usar el contador de caracteres con comandos de Copilot Chat como:
/mcp count-characters-in-text Este es el texto que quiero analizar
Para modificar o extender este servidor MCP:
character-counter.js
Este servidor MCP implementa una única herramienta llamada count-characters-in-text
que acepta texto como entrada y devuelve un análisis detallado de la composición de caracteres. El servidor utiliza el Protocolo de Contexto del Modelo para exponer esta funcionalidad a asistentes de IA compatibles.
MIT
¡Las contribuciones son bienvenidas! Por favor, no dudes en enviar un Pull Request.
Creado con 🧡 para la Comunidad Malandriner de webreactiva.com