MyMcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP 中文字符统计服务
功能
统计传入文本中的中文字符数量(不包含标点、空格、英文、数字等),并返回结果。
兼容魔搭 JSON-RPC 调用规范,适合 Streamable HTTP 部署。
Related MCP server: basic-mcp
接口说明
查询工具列表
GET /tools/list
返回 MCP 提供的工具信息,示例:
{
"jsonrpc": "2.0",
"result": {
"tools": [
{
"name": "count_chinese_chars",
"description": "统计纯中文字符数量",
"inputSchema": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "需要统计的文本内容"
}
},
"required": ["text"]
}
}
]
}
}
调用中文统计工具
POST /tools/call/count_chinese_chars
请求示例(JSON-RPC 格式):
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "count_chinese_chars",
"arguments": {
"text": "这里是一段测试文字"
}
}
}
返回示例:
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "8"
}
]
}
}
"text" 字段即返回的中文字符数量。
注意事项
支持 POST、DELETE、OPTIONS 请求,兼容魔搭部署检测。
使用 Streamable HTTP 模式部署时,请在 JSON 配置中填写完整 URL,例如:
https://你的域名/tools/call/count_chinese_chars
返回内容遵循 JSON-RPC 规范,方便 DeepSeek 或其他模型调用。
适合统计纯中文字符,不包含标点、空格、英文和数字。
许可证
MIT LicenseTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for Chinese dictionary lookup: character definitions, pinyin, stroke order and word
21MCP server for IPv4 geolocation lookup with Chinese output, supports batch queries.
MCP server for Chinese idioms (chengyu): lookup by word, pinyin or meaning with explanation and
31MCP server for China administrative divisions: province/city/district lookup, adcode resolution and
41
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for parsing Chinese fuzzy time expressions (e.g., '昨天', '下午3点', '中秋节') into standard datetime formats.1MIT
- FlicenseNot gradedqualityDmaintenanceA minimal MCP server for text processing, providing word count, uppercase conversion, and a summarization prompt template.-
- FlicenseAqualityDmaintenanceA remote MCP server that provides a counting tool, e.g., to count letters in words.11-
- AlicenseAqualityDmaintenanceMCP server exposing Arabic text utilities: normalisation, tashkeel stripping, transliteration, heuristic dialect detection, and token counting.5MIT