Mozisu Character Counter
About
Provides accurate character counting for text with special handling for multi-byte characters like Japanese text and emojis, returning both total and non-whitespace counts
Details
- Author
- atotti
- Repository
- Atotti/mozisu-mcp-server
- GitHub stars
- 4
- Downloads
- 133
- License
- MIT License
- Categories
- Design, Developer Tools, Infrastructure, API, Frontend, Other
- Tags
- #analytics
Jump to
- Counts total characters including spaces
- Counts non‑whitespace characters
- Supports Japanese, emoji, and other Unicode characters
- Offers MCP server, CLI, and web interface modes
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- 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
Mozisu Character CounterCommand (node, npx, python, etc.)/path_to_repo/mozisu-mcp-server/bin/mozisu-mcp-serverPlease refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Clone the repository, install dependencies with go mod download, and build using task build. To use with Claude Desktop, add the path to the built binary to the mcpServers section of claude_desktop_config.json. Alternatively, run it directly with go run cmd/mcpserver/main.go for the MCP server, ./bin/charcount "text" for CLI usage, or ./bin/webserver to launch the web interface at http://localhost:8080.
count_characters
Count the number of characters in the input text, including spaces and excluding spaces.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mozisu character counter": {
"cwd": null,
"env": {},
"args": [],
"shell": false,
"command": "/path_to_repo/mozisu-mcp-server/bin/mozisu-mcp-server"
}
}
}
Linux
{
"cwd": null,
"env": [],
"args": [],
"shell": false,
"command": "/path_to_repo/mozisu-mcp-server/bin/mozisu-mcp-server"
}
Macos
{
"cwd": null,
"env": [],
"args": [],
"shell": false,
"command": "/path_to_repo/mozisu-mcp-server/bin/mozisu-mcp-server"
}
Windows
{
"cwd": null,
"env": [],
"args": [],
"shell": false,
"command": "/path_to_repo/mozisu-mcp-server/bin/mozisu-mcp-server"
}
<div align="center">
📝 Mozisu MCP Server 📝
文字数をカウントして返す MCP サーバー
</div>
<p align="center">

</p>
> 文字数をカウントして返すことで、LLMが正確な文字数で文章を作成できるようにするMCPサーバーです。日本語や絵文字などのマルチバイト文字にも対応しています。
---
📋 目次
- 📝 Mozisu MCP Server 📝
- 📋 目次
- ✨ 機能
- 🚀 インストール
- ⚙️ Claude Desktop の設定
- 📖 使用方法
- 🔌 MCPサーバーとして使用
- 💻 コマンドラインツールとして使用
- 🌐 Webインターフェースとして使用
- 👥 貢献方法
- 📄 ライセンス
---
✨ 機能
- 📊 文字数カウント
- 全文字数(スペースを含む)
- 空白以外の文字数
- 🈁 マルチバイト文字対応
- 日本語や絵文字などのUnicode文字を正確にカウント
- 🔄 複数の利用方法
- MCPサーバー
- コマンドラインツール
- Webインターフェース
---
🚀 インストール
# リポジトリのクローン
git clone https://github.com/Atotti/mozisu-mcp-server.git
cd mozisu-mcp-server
依存関係のインストール
go mod download
ビルド
task build
---
⚙️ Claude Desktop の設定
claude_desktop_config.json に以下の設定を追加します:
{
"mcpServers": {
"mozisu-mcp-server": {
"command": "/path_to_repo/mozisu-mcp-server/bin/mozisu-mcp-server", // ビルド済みファイル
"args": []
}
}
}
---
📖 使用方法
🔌 MCPサーバーとして使用
# 直接実行
go run cmd/mcpserver/main.go
または、ビルド済みのバイナリを使用
./bin/mozisu-mcp-server
これにより、LLMがcount_charactersツールを使用して文字数カウント機能を利用できます。
💻 コマンドラインツールとして使用
# ビルド済みのバイナリを使用
./bin/charcount "カウントしたいテキスト"
または直接実行
go run cmd/charcount/main.go "カウントしたいテキスト"
対話モードで使用:
./bin/charcount -i
🌐 Webインターフェースとして使用
人間用のプロトコルもGUIで用意されています。

# ビルド済みのバイナリを使用
./bin/webserver
または直接実行
go run cmd/webserver/main.go
その後、ブラウザで http://localhost:8080 にアクセスします。
---
👥 貢献方法
1. このリポジトリをフォークします
2. 新しいブランチを作成します (git checkout -b feature/amazing-feature)
3. 変更をコミットします (git commit -m 'Add some amazing feature')
4. ブランチにプッシュします (git push origin feature/amazing-feature)
5. プルリクエストを作成します
バグ報告や機能リクエストは、Issueを作成してください。
---
📄 ライセンス
このプロジェクトは MIT License の下で公開されています。
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





