MyMcp

MyMcp

MCP server that counts the number of Chinese characters (excluding punctuation, spaces, English, and numbers) in a given text, compatible with Streamable HTTP and JSON-RPC.

Category
Visit Server

README

MCP 中文字符统计服务

功能

统计传入文本中的中文字符数量(不包含标点、空格、英文、数字等),并返回结果。
兼容魔搭 JSON-RPC 调用规范,适合 Streamable HTTP 部署。

接口说明

查询工具列表

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 License

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured