MCP Word Counter
About
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.
Details
- Author
- qpd-v
- Repository
- qpd-v/mcp-wordcounter
- GitHub stars
- 8
- Downloads
- 2
- License
- Apache License 2.0
- Categories
- Project Management
- Tags
- #data
Jump to
- Count words in documents
- Count total characters (including spaces)
- Count characters excluding spaces
- Process files directly without exposing content to LLMs
Setting up with Highlight
Follow these steps to add this server as a custom Highlight plugin:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MCP Word CounterCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
mcp-wordcounter
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
analyze_text
Counts words and characters in a text document. Parameters: filePath (string, required) - Path to the text file to analyze.
analyze_text
Counts words and characters in a text document.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp word counter": {
"env": {},
"args": [
"-y",
"mcp-wordcounter"
],
"shell": false,
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"mcp-wordcounter"
],
"shell": false,
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"mcp-wordcounter"
],
"shell": false,
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"mcp-wordcounter"
],
"shell": true,
"command": "cmd"
}
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.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.

