Back to MCP directory
publicPublicdnsLocal runtime

mozisu-mcp-server

一个能够精确计算文字数量的MCP服务器,支持多字节字符和多种使用方式

article

README

🚀 📝 Mozisu MCP 服务器 📝

统计字符数量后返回结果的 MCP 服务器,助力大语言模型生成准确字符数的文章,支持日语、表情符号等多字节字符。

CI Go MCP License: MIT

通过统计字符数量后返回结果,帮助大语言模型生成准确字符数的文章。支持日语、表情符号等多字节字符。

🚀 快速开始

Mozisu MCP 服务器可统计输入文本的总字符数,支持多字节字符,能方便地集成到各类项目中。以下为你介绍安装和使用的基本步骤。

✨ 主要特性

  1. 统计字符数量:返回输入文本的总字符数。
  2. 支持多字节字符:完美处理日语、表情符号等多字节字符。
  3. 集成方便:通过简单调用 API 即可整合到各种项目中。

📦 安装指南

  1. 克隆仓库:

    git clone https://github.com/Atotti/mozisu-mcp-server.git
    cd mozisu-mcp-server
    
  2. 安装依赖项:

    go mod tidy
    
  3. 启动服务:

    go run main.go
    

🔧 技术细节

⚙️ Claude 桌面的设置

  1. 将仓库克隆到本地。
  2. 在环境变量中指定以下路径:
    export CLAude_MCP_SERVER_URL=http://localhost:8080
    

💻 使用示例

🔌 MCP 服务器作为服务

# 启动 MCP 服务器
go run cmd/mcp/main.go

💻 命令行工具使用

  1. 在终端中运行:

    go run cmd/cli/main.go --input "你的文本"
    
  2. 示例:

    go run cmd/cli/main.go --input "Hello, 世界!"
    # 输出: 字符数: 9
    

🌐 Web 界面访问

  1. 启动服务器后,打开浏览器访问 http://localhost:8080
  2. 输入文本并点击“统计字符数量”。

👥 贡献方式

  1. Fork 仓库

    git clone https://github.com/Atotti/mozisu-mcp-server.git
    cd mozisu-mcp-server
    
  2. 创建新分支

    git checkout -b feature/amazing-feature
    
  3. 提交更改

    git add .
    git commit -m '添加了很棒的功能'
    git push origin feature/amazing-feature
    
  4. 提出 Pull Request

📄 许可证

本项目遵循 MIT License 协议。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client