MCP Word Counter
by qpd-v
MCP Word Counter
A Model Context Protocol server that provides tools for analyzing text documents, including counting words and characters. This server helps LLMs perform text analysis tasks by exposing simple document statistics functionality.
Features
- Count words in documents
- Count total characters (including spaces)
- Count characters excluding spaces
- Process files directly without exposing content to LLMs
Installation
Copy
Usage
As a CLI tool
Copy
In Claude Desktop
Add to your Claude Desktop configuration (claude_desktop_config.json
):
Copy
Available Tools
analyze_text
Counts words and characters in a text document.
Parameters:
filePath
(string, required): Path to the text file to analyze
Returns:
- Word count
- Character count (including spaces)
- Character count (excluding spaces)
Example response:
Copy
Development
Copy
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
You must be authenticated.
A Model Context Protocol server that provides tools for analyzing text documents, including counting words and characters. This server helps LLMs perform text analysis tasks by exposing simple document statistics functionality.