{"_id":"mcp-wordcounter","_rev":"2-14117026418e41df53185f8c66da1379","name":"mcp-wordcounter","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"mcp-wordcounter","version":"0.1.0","keywords":["mcp","model-context-protocol","text-analysis","word-count","character-count","llm","claude"],"author":{"name":"Kenneth"},"license":"MIT","_id":"mcp-wordcounter@0.1.0","maintainers":[{"name":"qpd-v","email":"kwhelan711@gmail.com"}],"homepage":"https://github.com/qpd-v/mcp-wordcounter#readme","bugs":{"url":"https://github.com/qpd-v/mcp-wordcounter/issues"},"bin":{"mcp-wordcounter":"build/index.js"},"dist":{"shasum":"caa266fe5218b588147d39c253d8988fe51c9157","tarball":"https://registry.npmjs.org/mcp-wordcounter/-/mcp-wordcounter-0.1.0.tgz","fileCount":5,"integrity":"sha512-YQDT/0iYv2ebPB7AZhzHidujM0wDJhQK65wCRFhVyJxcRhiWYhzQ8pDhg3oCq7eOchdnEKRpZIT6JnW56Hqgjg==","signatures":[{"sig":"MEYCIQD5s22JCpLMI9qhfxibs8ksUlnsRJNI/nkUut3q9NGLWAIhAIuFHGoXiKllQrqmv+iAqEkvX0dYACdyWbzHsNXMZW3G","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7787},"type":"module","engines":{"node":">=18.0.0"},"gitHead":"c7c5bdc0a48e0c682471ab2f5fb4f2d36a1079c9","scripts":{"build":"tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"","watch":"tsc --watch","prepare":"npm run build","inspector":"npx @modelcontextprotocol/inspector build/index.js"},"_npmUser":{"name":"qpd-v","email":"kwhelan711@gmail.com"},"repository":{"url":"git+https://github.com/qpd-v/mcp-wordcounter.git","type":"git"},"_npmVersion":"10.8.2","description":"A Model Context Protocol server for analyzing text documents with word and character counting capabilities","directories":{},"_nodeVersion":"20.18.1","dependencies":{"@modelcontextprotocol/sdk":"0.6.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.24"},"_npmOperationalInternal":{"tmp":"tmp/mcp-wordcounter_0.1.0_1734241538251_0.21652127256849485","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-12-15T05:45:38.250Z","modified":"2026-03-18T23:15:32.398Z","0.1.0":"2024-12-15T05:45:38.436Z"},"bugs":{"url":"https://github.com/qpd-v/mcp-wordcounter/issues"},"author":{"name":"Kenneth"},"license":"MIT","homepage":"https://github.com/qpd-v/mcp-wordcounter#readme","keywords":["mcp","model-context-protocol","text-analysis","word-count","character-count","llm","claude"],"repository":{"url":"git+https://github.com/qpd-v/mcp-wordcounter.git","type":"git"},"description":"A Model Context Protocol server for analyzing text documents with word and character counting capabilities","maintainers":[{"email":"kwhelan711@gmail.com","name":"qpdv"}],"readme":"# MCP Word Counter\n\nA 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.\n\n## Features\n\n- Count words in documents\n- Count total characters (including spaces)\n- Count characters excluding spaces\n- Process files directly without exposing content to LLMs\n\n## Installation\n\n```bash\nnpm install mcp-wordcounter\n```\n\n## Usage\n\n### As a CLI tool\n\n```bash\nnpx mcp-wordcounter\n```\n\n### In Claude Desktop\n\nAdd to your Claude Desktop configuration (`claude_desktop_config.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-wordcounter\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"mcp-wordcounter\"],\n      \"alwaysAllow\": [\"analyze_text\"]\n    }\n  }\n}\n```\n\n### Available Tools\n\n#### analyze_text\n\nCounts words and characters in a text document.\n\nParameters:\n- `filePath` (string, required): Path to the text file to analyze\n\nReturns:\n- Word count\n- Character count (including spaces)\n- Character count (excluding spaces)\n\nExample response:\n```json\n{\n  \"content\": [{\n    \"type\": \"text\",\n    \"text\": \"Analysis Results:\\n• Word count: 150\\n• Character count (including spaces): 842\\n• Character count (excluding spaces): 702\"\n  }]\n}\n```\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Build the project\nnpm run build\n\n# Run in watch mode during development\nnpm run watch\n\n# Test with MCP Inspector\nnpm run inspector\n```\n\n## License\n\nMIT License - see LICENSE file for details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","readmeFilename":"README.md"}