Skip to main content
Glama

Language Detector API

MCP Server x402 License: MIT

トリグラム頻度分析を使ってテキストから言語を検出します。文字体系の識別に対応し、30言語以上をサポートしています。課金は x402 による従量課金(ペイ・パー・コール)方式です(Base L2 上の USDC)-- APIキー不要、サインアップ不要、レート制限なし。

klymax402 マーケットプレイスの一部です -- AIエージェント向けの x402 マイクロペイメント API 100本、1つのウォレットで Base 上の USDC を利用できます。

クイックスタート -- MCP

お使いのMCPクライアント設定(Claude Desktop、Cursor、ElizaOS など)に追加してください:

{
  "mcpServers": {
    "language-detector": {
      "url": "https://language-detector.api.klymax402.com/mcp"
    }
  }
}

Related MCP server: user-agent-parser

クイックスタート -- HTTP (x402)

curl -X POST "https://language-detector.api.klymax402.com/api/detect" \
  -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_detect_language

POST

/api/detect

$0.005

入力テキストの言語を、信頼度スコアと文字体系の識別付きで検出します

text_detect_language

テキストがどの言語で書かれているかを特定する必要がある場合に使用します。n-グラム頻度分析により、30言語以上の言語を信頼度スコア付きで検出します。上位3件の言語候補と文字体系の識別(ラテン、キリル、アラビア、CJK、デーヴァナーガリー)に加え、文字統計を返します。多言語コンテンツのルーティング、翻訳前の言語判定、コンテンツフィルタリングに最適です。翻訳には使用しないでください -- その場合は text_translate を使用してください。感情分析には使用しないでください -- その場合は text_analyze_sentiment を使用してください。

パラメータ

名前

型

必須

説明

text

string

あり

言語を検出するテキスト(正確性のため最低10文字)

エージェントのプロンプト例

  • "テキストがどの言語で書かれているかを特定する"

支払い

  • プロトコル: x402 -- HTTP ネイティブのペイ・パー・コール、登録不要、APIキー不要

  • ネットワーク: Base L2 (eip155:8453)

  • アセット: USDC

  • ファシリテーター: Coinbase CDP(プライマリ)、PayAI(フォールバック)

klymax402 の一部

AIエージェント向けの x402 マイクロペイメント API を100本提供 -- 1つのウォレットで Base 上の USDC、登録不要です。

ライセンス

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables text translation between 50+ languages with automatic source language detection. Uses x402 micropayments for pay-per-call without API keys or signup.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    It enables AI agents to parse user agent strings into structured data such as browser, OS, device type, engine, and bot status, with pay-per-call micropayments via x402 and no API key or signup required.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to analyze text metrics in one call, including word count, characters, sentences, paragraphs, and estimated reading time, with pay-per-call micropayments via x402.
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to detect and verify the language of texts, run bundle checks, and top up prepaid credits by paying per call in USDC on Solana, with no account, API key, or subscription needed. Payment is handled transparently via x402 challenges, prepaid credit tokens, or a funded payer wallet with sponsored gas.
    10 npm
    MIT