Skip to main content
Glama

MCP Word Counter

by qpd-v

MCP 字数统计器

模型上下文协议 (MCP) 服务器,提供用于分析文本文档的工具,包括统计单词和字符数。该服务器通过提供简单的文档统计功能,帮助 LLM 执行文本分析任务。

特征

  • 统计文档中的字数
  • 计算字符总数(包括空格)
  • 统计字符数(不包括空格)
  • 直接处理文件,无需将内容暴露给 LLM

安装

npm install mcp-wordcounter

用法

作为 CLI 工具

npx mcp-wordcounter

在克劳德桌面

添加到您的 Claude Desktop 配置( claude_desktop_config.json ):

{ "mcpServers": { "mcp-wordcounter": { "command": "npx", "args": ["-y", "mcp-wordcounter"], "alwaysAllow": ["analyze_text"] } } }

可用工具

分析文本

计算文本文档中的单词和字符数。

参数:

  • filePath (字符串,必需):要分析的文本文件的路径

返回:

  • 字数统计
  • 字符数(包括空格)
  • 字符数(不包括空格)

响应示例:

{ "content": [{ "type": "text", "text": "Analysis Results:\n• Word count: 150\n• Character count (including spaces): 842\n• Character count (excluding spaces): 702" }] }

发展

# Install dependencies npm install # Build the project npm run build # Run in watch mode during development npm run watch # Test with MCP Inspector npm run inspector

执照

MIT 许可证 - 详情请参阅 LICENSE 文件。

贡献

欢迎贡献代码!欢迎提交 Pull 请求。

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

模型上下文协议 (MCP) 服务器,提供用于分析文本文档的工具,包括统计单词和字符数。该服务器通过提供简单的文档统计功能,帮助 LLM 执行文本分析任务。

  1. 特征
    1. 安装
      1. 用法
        1. 作为 CLI 工具
        2. 在克劳德桌面
        3. 可用工具
      2. 发展
        1. 执照
          1. 贡献

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that enables LLMs to extract and use content from unstructured documents across a wide variety of file formats.
              Last updated -
              2
              Python
              • Apple
            • -
              security
              F
              license
              -
              quality
              A Model Context Protocol server that enables LLMs to fetch and process web content in multiple formats (HTML, JSON, Markdown, text) with automatic format detection.
              Last updated -
              TypeScript
              • Apple
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that enables LLMs to interact with databases (currently MongoDB) through natural language, supporting operations like querying, inserting, deleting documents, and running aggregation pipelines.
              Last updated -
              TypeScript
              MIT License
              • Apple
            • A
              security
              A
              license
              A
              quality
              A Model Context Protocol server that fetches up-to-date, version-specific documentation and code examples from libraries directly into LLM prompts, helping developers get accurate answers without outdated or hallucinated information.
              Last updated -
              2
              115,656
              13,394
              JavaScript
              MIT License
              • Linux
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/qpd-v/mcp-wordcounter'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server