The Base64 MCP Server provides encoding and decoding capabilities for text and images:
Text Operations: Encode text to Base64 and decode Base64 back to text
Image Operations: Convert images to Base64 strings and decode Base64 back to images with specified output path and MIME type
Data URL Format: Support for encoding and decoding in Data URL format
Integration: Access via simple API calls (Tools) or Resource URLs
Base64编码解码MCP服务器
一个简单高效的MCP服务器,专注于提供Base64编码和解码功能,支持文本和图片的Base64转换。
功能特点
- 文本Base64编码和解码
- 图片Base64编码和解码
- 支持Data URL格式
- 简单易用的API
- 使用uv进行依赖管理
安装
使用uv安装
安装Smithery
使用Smithery为Claude桌面安装Base64编码解码MCP服务器,使用以下命令:
使用方法
使用MCP Inspector测试
与MCP client集成
- 添加服务器配置:
API参考
工具(Tools)
- base64_encode_text(text: str) -> str:将文本转换为Base64编码
- base64_decode_text(encoded: str) -> str:将Base64编码解码为文本
- base64_encode_image(image_path: str) -> str:将图片转换为Base64编码
- base64_decode_image(encoded: str, output_path: str, mime_type: str = "image/png") -> str:将Base64编码解码为图片
资源(Resources)
- encode://base64/text/{text}:获取文本的Base64编码
- decode://base64/text/{encoded}:获取Base64编码的解码结果
- encode://base64/image/{image_path}:获取图片的Base64编码
- decode://base64/image/{encoded}:获取Base64编码的解码图片
提示模板(Prompts)
- base64_usage_guide(): 提供Base64服务的基本使用指南
- encode_text_prompt(text: str): 文本编码提示模板
- encode_image_prompt(image_path: str): 图片编码提示模板
- error_handling_prompt(error_message: str): 错误处理提示模板
使用示例:
开发
许可证
MIT
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A simple and efficient MCP server that provides Base64 encoding and decoding functionality for both text and images with support for Data URL format.
Related MCP Servers
- AsecurityAlicenseAqualityA powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.Last updated -41,14536MIT License
- AsecurityAlicenseAqualityAn MCP server for fetching and transforming web content into various formats.Last updated -47MIT License
- AsecurityAlicenseAqualityThis MCP server aids users in searching and analyzing their photo library by location, labels, and people, offering functionalities like photo analysis and fuzzy matching for enhanced photo management.Last updated -21MIT License
- -securityAlicense-qualityOpen source MCP server specializing in easy, fast, and secure tools for Databases.Last updated -10,238Apache 2.0