MCP ワードカウンター
単語数や文字数のカウントなど、テキスト文書を分析するためのツールを提供するモデルコンテキストプロトコル(CMP)サーバー。このサーバーは、シンプルな文書統計機能を提供することで、LLMによるテキスト分析タスクの実行を支援します。
特徴
文書内の単語数を数える
合計文字数を数える(スペースを含む)
スペースを除いた文字数を数える
LLM にコンテンツを公開せずにファイルを直接処理する
Related MCP server: Letter Counter MCP Server
インストール
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 ファイルを参照してください。
貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.