Skip to main content
Glama
Br0ski777

word-counter

by Br0ski777

字数统计 API

MCP Server x402 License: MIT

一次调用即可分析文本指标:单词数、字符数、句子数、段落数和预估阅读时间。通过 x402(Base L2 上的 USDC)按调用付费 -- 无需 API 密钥、无需注册、没有限流墙。

属于 klymax402 市场的一部分 -- 面向 AI 智能体的 100 个 x402 微支付 API,一个钱包,Base 上的 USDC。

快速入门 -- MCP

添加到您的 MCP 客户端配置(Claude Desktop、Cursor、ElizaOS 等)中:

{
  "mcpServers": {
    "word-counter": {
      "url": "https://word-counter.api.klymax402.com/mcp"
    }
  }
}

Related MCP server: ai-summarizer

快速入门 -- HTTP(x402)

curl -X POST "https://word-counter.api.klymax402.com/api/count" \
  -H "Content-Type: application/json" \
  -d '{"text":"..."}'
# -> 402 Payment Required, with an x402 payment challenge in the response body

任何支持 x402 的客户端(@x402/fetch、x402-agent-tools、ATXP)都会自动处理 402 → 签名 → 重试的流程。

工具

工具

方法

路径

价格

说明

text_count_words

POST

/api/count

$0.003

统计单词、字符、句子、段落数和预估阅读时间

text_count_words

当您需要统计文本中的单词、字符、句子或段落数时,可使用此工具。它会返回包含摘要的文本统计数据和阅读时间估算。

参数

名称

类型

必填

说明

text

string

是

要分析的文本

示例响应:

{"words":250,"characters":1450,"charactersNoSpaces":1200,"sentences":15,"paragraphs":4,"readingTime":1.25}

适用场景:内容长度校验、预估文章阅读时间、检查文本是否达到最低字数要求。在发布博客文章或提交带长度限制的内容之前必不可少。

不适用于:语言检测(请使用 text_detect_language)、情感分析(请使用 text_analyze_sentiment)、文本对比(请使用 text_compare_diff)。

智能体提示词示例

  • "统计文本中的单词、字符、句子或段落"

支付

  • 协议:x402 -- 原生 HTTP 的按次付费,无需注册,无需 API 密钥

  • 网络:Base L2(eip155:8453)

  • 资产:USDC

  • 促进方:Coinbase CDP(主要)、PayAI(备用)

  • 也可通过 ATXP(OAuth 包装了 x402,RFC 9728 受保护资源元数据)访问

属于 klymax402

面向 AI 智能体的 100 个 x402 微支付 API -- 一个钱包,Base 上的 USDC、零注册。

许可证

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Classifies text into topic categories with confidence scores, readability metrics, and content type detection, using x402 micropayments for pay-per-call access.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to run full on-page SEO audits for any URL or up to 10 URLs at once, returning 0-100 scores, meta tag and heading checks, schema/image/link analysis, load time, and prioritized fixes via pay-per-call x402 micropayments.
    MIT