Skip to main content
Glama
Br0ski777

base64-codec

by Br0ski777

Base64 Codec API

MCP Server x402 License: MIT

将文本编码为 base64,或将 base64 解码为文本。支持标准与 URL 安全变体,并附带元数据。通过 x402 按调用付费(USDC on Base L2)——无需 API 密钥、无需注册,也无速率限制。

属于 klymax402 市场的一部分——为 AI 智能体提供 100 个 x402 微支付 API:一个钱包,USDC on Base。

快速入门 -- MCP

将以下内容添加到 MCP 客户端配置中(Claude Desktop、Cursor、ElizaOS 等):

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

Related MCP server: x402tools MCP Server

快速入门 -- 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/fetchx402-agent-tools、ATXP)都会自动处理“402 -> 签名 -> 重试”的循环。

工具

工具名称

方法

路径

价格

描述

utility_encode_base64

POST

/api/encode

$0.003

编码或解码 base64 数据

utility_encode_base64

当需要将文本编码为 base64,或将 base64 解码回文本时,请使用此工具。返回结果字符串及编码元数据。

参数

名称

类型

必填

说明

data

string

要编码或解码的数据

action

string

操作:'encode' 或 'decode'(默认:encode)

示例响应:

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

适用时机:在 JSON 中嵌套二进制数据、准备电子邮件附件(MIME),或解码来自 API base64 令牌时。在通过仅支持 ASCII 的渠道发送数据之前,请使用此工具。

不适用于:哈希(使用 crypto_generate_hash)、JWT 解码(使用 security_decode_jwt)、URL 别名生成(使用 text_generate_slug)。

示例智能体提示词

  • "将文本编码为 base64,或将 base64 解码回纯文本"

支付

  • 协议:x402 -- 原生 HTTP 按调用计费,无需注册,无需 API 密钥

  • 网络:Base L2 (eip155:8453)

  • 资产:USDC

  • 服务商:Coinbase CDP(主要)、PayAI(备用)

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

属于 klymax402

为 AI 智能体提供 100 个 x402 微支付 API -- 一个钱包,USDC on Base,零注册门槛。

许可证

MIT

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • 63 pay-per-call tools for agents: vision, text, data, web, blockchain. USDC on Base via x402.

  • Pay-per-call web scraping for AI agents via x402 on Base USDC. Six tools, no signup.

  • Pay for HTTP APIs and charge for your own: x402 micropayments in USDC on Base.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Br0ski777/base64-codec-x402'

If you have feedback or need assistance with the MCP directory API, please join our Discord server