About 📝 Mozisu MCP Server 📝
Mozisu MCP Server counts text characters so LLMs can produce writing of a specified length. It handles Unicode characters such as Japanese text and emoji, and is also available through a CLI and web interface.
Key features
- 01Count total characters including spaces
- 02Count non-whitespace characters
- 03Count Unicode characters accurately
- 04Use through CLI or web interface
Use cases
- 01Draft text to a specified character count
- 02Check lengths of text with Japanese or emoji
- 03Count characters from a command line or browser
MCP support
The MCP server exposes the `count_characters` tool for character counting by LLMs.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project README
文字数をカウントして返すことで、LLMが正確な文字数で文章を作成できるようにするMCPサーバーです。日本語や絵文字などのマルチバイト文字にも対応しています。
📋 目次
✨ 機能
- 📊 文字数カウント
- 全文字数(スペースを含む)
- 空白以外の文字数
- 🈁 マルチバイト文字対応
- 日本語や絵文字などの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 にアクセスします。
👥 貢献方法
- このリポジトリをフォークします
- 新しいブランチを作成します (
git checkout -b feature/amazing-feature) - 変更をコミットします (
git commit -m 'Add some amazing feature') - ブランチにプッシュします (
git push origin feature/amazing-feature) - プルリクエストを作成します
バグ報告や機能リクエストは、Issueを作成してください。
📄 ライセンス
このプロジェクトは MIT License の下で公開されています。
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.