Skip to main content
Glama
base64-codec

base64-codec

by Br0ski777

Base64 Codec API

![MCP Server](https://img.shields.io/badge/MCP-sserver-blue x402 ![License: MIT](https://img.shields.io/badge/license-MIT-green

テキストをbase64にエンコードするか、base64をテキストにデコードします。標準的なURL-safeなバリアントを、メタデータ付きでサポートしています。x402 による従量課金(Base L2上のUSDC)で、APIキー不要、サインアップ不要、レート制限なし。

klymax402 マーケットプレースの一部 -- AIエージェント向けの100のx402ペイメントAPI、1つのウォレット、Base上のUSDC。

クイックスタート -- MCP

MCPクライアント設定(Claude Desktop、Cursor、ElizaOSなど)に追加します:

{
  "mcpServers": {
    "base64-codec": {
      "url": "https://base64-codec.api.klymax402.com/mcp"
    }
  }
}

Related MCP server: mcp-x402

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

トレーニングなく利用できます:

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

x402対応クライアント(@x402/fetch、x402-agent-tools、ATXP)は、402を自動的に処理します。

ツール

ツール

メソッド

パス

価格

説明

utility_encode_base64

POST

/api/encode

$0.003

エンコードまたはデコード

utility_encode_base64

テキストをbase64にエンコードするか、base64を平文にデコードするときに使用します。エンコード特性をメタデータとして返します。

パラメータ

名前

型

必須

説明

データ

string

yes

エンコード対象データ

アクション

string

no

アクション: エンコード

レスポンズ例:

{"result":"SGVsbG8gV29ybGQ=","action":"encode","inputLength":11,"outputLength":16,"urlSafe":false}

使うべき場面: JSONにバイ減されて、ファイルアッ画像のエンコード、またはAPIのベース64トーンのデコードに使用してください。

使うべきでない場面: ハッシュ化(crypto_...)、JWTデンコード(securit_y_...)、URLのスラッグ生成(text_generate_slug)には使用しないでください。

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

  • エンエンコードとデンコードを実行する。

支払い

  • プロトコル: x402

  • ネットワーク: Base L2

  • アセット: USDC

  • エス:なし

  • URL: https://x402.org

klymax402の一部

AIエージェント向けのマイクロペイメントAPIをまとめています。

ライセンス

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Provides AI agents with 10 pay-per-call utility tools (QR generation, DNS lookup, OCR, etc.) using USDC on Base via the x402 protocol, with agent's private key never leaving the agent.
    11
    55 npm
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables per-request paid AI analysis of public URLs, condition verification, and AI consultation via x402 micropayments on Base, with no account or subscription.
    2 npm
    ISC
  • A
    license
    C
    quality
    A
    maintenance
    Keyword Metrics for Google Ads search volume, CPC, advertising competition and monthly history. Optional AI Search Volume provides modeled question-demand signals, not actual ChatGPT or Perplexity query counts. Free discovery and quotes; paid calls require an approved budget and use USDC on Base via x402. Also includes SERP, domain and local-market research.
    78
    398 npm
    MIT