MCP cover image

轻巧的模型上下文协议(MCP)服务器,为文本提供详细的字符分析。

0

Github Watches

1

Github Forks

0

Github Stars

MCP Character Counter

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

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.


Contador de Caracteres MCP

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.

Características

  • Cuenta el total de caracteres en un texto
  • Cuenta caracteres excluyendo espacios
  • Cuenta letras (a-z, A-Z)
  • Cuenta números (0-9)
  • Cuenta símbolos (caracteres no alfanuméricos)
  • Desglose detallado de tipos de caracteres

Instalación

Requisitos previos

Configuración

  1. Clona el repositorio:

    git clone https://github.com/webreactiva-devs/mcp-character-counter.git
    cd mcp-character-counter
    
  2. Instala las dependencias:

    npm install
    

Uso con Claude Desktop

  1. 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
    
  2. 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.

  3. Reinicia Claude Desktop para cargar el nuevo servidor MCP.

  4. Busca el icono de martillo en la caja de entrada, que indica las herramientas MCP disponibles.

  5. Pide a Claude que analice el recuento de caracteres en un texto, por ejemplo:

    • "Cuenta los caracteres en este párrafo"
    • "¿Cuántos números hay en este texto: '123 Calle Principal, Apto 45B'?"
    • "Analiza la composición de caracteres de mi dirección de correo electrónico"

Uso con GitHub Copilot

Para usar este servidor MCP con GitHub Copilot:

  1. Asegúrate de tener GitHub Copilot instalado en VS Code u otro IDE compatible.

  2. Abre la configuración de VS Code y busca "Copilot MCP".

  3. 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"]
        }
      ]
    }
    
  4. Reinicia VS Code.

  5. 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

Desarrollo

Para modificar o extender este servidor MCP:

  1. Realiza tus cambios en character-counter.js
  2. Reinicia el servidor en tu cliente MCP

Cómo funciona

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.

Licencia

MIT

Contribuir

¡Las contribuciones son bienvenidas! Por favor, no dudes en enviar un Pull Request.

Colofón

Creado con 🧡 para la Comunidad Malandriner de webreactiva.com

相关推荐

  • Contraband Interactive
  • Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.

  • rustassistant.com
  • Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.

  • Aurity Ltd
  • Create and Publish Business Websites in seconds. AI will gather all the details about your website and generate link to your website.

  • John Rafferty
  • Text your favorite pet, after answering 10 questions about their everyday lives!

  • Convincible Ltd
  • You're in a stone cell – can you get out? A classic choose-your-adventure interactive fiction game, based on a meticulously-crafted playbook. With a medieval fantasy setting, infinite choices and outcomes, and dice!

  • Ian O'Connell
  • Provide players' names or enter Quickstart to start the game!

  • analogchat.com
  • Efficient Spotify assistant for personalized music data.

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • langgenius
  • alibaba
  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • Azure
  • 该存储库用于开发Azure MCP服务器,将Azure的功能带给您的代理商。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • microsoft
  • Python tool for converting files and office documents to Markdown.

  • mindsdb
  • AI's query engine - Platform for building AI that can answer questions over large scale federated data. - The only MCP Server you'll ever need

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • caio-moliveira
  • 创建该项目是为了证明我们如何与不同的模型上下文协议(MCP)连接。

  • labring
  • AstrBotDevs
  • llm llm聊天机器人及开发框架平台支持QQ QQ QQ 频道、电报| mcp 服务器、 openai,deepseek,双子座、硅基流动、月之暗面、 ollama,

    Reviews

    5 (2)
    Avatar
    user_P5v67xlq
    2025-04-24

    The mcp-character-counter by webreactiva-devs is an incredibly efficient and user-friendly tool. It’s perfect for anyone needing a quick and reliable way to count characters. The interface is straightforward and intuitive, making it accessible for users of all skill levels. This tool has significantly streamlined my workflow, saving me a lot of time. Highly recommended!

    Avatar
    user_EIERp8Wj
    2025-04-24

    I have been using the mcp-character-counter developed by webreactiva-devs, and it has been incredibly helpful for my writing tasks. The tool's efficient character counting feature ensures that my text always meets the required length. With its user-friendly interface and accurate results, I highly recommend this product to anyone needing precise character counts.