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
npm install mcp-wordcounter
Usage
As a CLI tool
npx mcp-wordcounter
In Claude Desktop
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"mcp-wordcounter": {
"command": "npx",
"args": ["-y", "mcp-wordcounter"],
"alwaysAllow": ["analyze_text"]
}
}
}
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:
{
"content": [{
"type": "text",
"text": "Analysis Results:n• Word count: 150n• Character count (including spaces): 842n• Character count (excluding spaces): 702"
}]
}
Development
# 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
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Word Counter
Project Details
- qpd-v/mcp-wordcounter
- mcp-wordcounter
- Apache License 2.0
- Last Updated: 4/11/2025
Recomended MCP Servers
VSCode Extension with an MCP server that exposes semantic tools like Find Usages and Rename to LLMs
A Model Context Protocol server implementation for ClickUp integration, enabling AI assistants to interact with ClickUp workspaces.
MCP server(s) for Aipolabs ACI.dev
The Cursor10x MCP is a persistent multi-dimensional memory system for Cursor that enhances AI assistants with conversation context,...
MasterGo Magic MCP is a standalone MCP (Model Context Protocol) service designed to connect MasterGo design tools with...
MCP Server for kicking off and getting status of your crew deployments
A Model Context Protocol (MCP) server that implements the Zettelkasten knowledge management methodology, allowing you to create, link,...
A simple Model Context Protocol (MCP) server for generating memes using the ImgFlip API
A Model Context Protocol (MCP) server for Kagi search & other tools.





