Base64编码解码MCP服务器

by liuyazui

313 downloads
Not rated
GitHub

About

A simple and efficient MCP server for Base64 encoding and decoding of text and images.

Details

Author
liuyazui
Downloads
313
Categories
Developer Tools, Other

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Base64编码解码MCP服务器
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

{
  "mcpServers": {
    "base64_server": {
      "command": "uv",
      "args": [
        "venv"
      ]
    }
  }
}

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "base64\u7f16\u7801\u89e3\u7801mcp\u670d\u52a1\u5668": {
            "base64_server": {
                "command": "uv",
                "args": [
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "base64_server": {
        "command": "uv",
        "args": [
            "venv"
        ]
    }
}

A simple and efficient MCP server for Base64 encoding and decoding of text and images.

一个简单高效的MCP服务器,专注于提供Base64编码和解码功能,支持文本和图片的Base64转换。

- 文本Base64编码和解码
- 图片Base64编码和解码
- 支持Data URL格式
- 简单易用的API
- 使用uv进行依赖管理

# 创建虚拟环境 uv venv # 激活虚拟环境(Linux/macOS) source .venv/bin/activate # 激活虚拟环境(Windows) .venv\Scripts\activate # 安装包(开发模式) uv pip install -e . # 安装带开发依赖的包 uv pip install -e ".[dev]"

使用Smithery为Claude桌面安装Base64编码解码MCP服务器,使用以下命令:

npx -y @smithery/cli install @liuyazui/base64_server --client claude
# 使用MCP Inspector测试服务器 uv run mcp dev base64_server.py
{ "mcpServers": { "base64-encoder": { "command": "uv", "args": [ "run", "--with", "mcp[cli]", "mcp", "run", "[path to base64_server.py]" ] } } }

- 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编码解码为图片

- encode://base64/text/{text}:获取文本的Base64编码
- decode://base64/text/{encoded}:获取Base64编码的解码结果
- encode://base64/image/{image_path}:获取图片的Base64编码
- decode://base64/image/{encoded}:获取Base64编码的解码图片

- base64_usage_guide(): 提供Base64服务的基本使用指南
- encode_text_prompt(text: str): 文本编码提示模板
- encode_image_prompt(image_path: str): 图片编码提示模板
- error_handling_prompt(error_message: str): 错误处理提示模板

# 获取使用指南提示 messages = await client.get_prompt("base64_usage_guide") # 获取文本编码提示 messages = await client.get_prompt("encode_text_prompt", {"text": "Hello World"})

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Manipulate Adventure Game Studio (AGS) compiled room (.crm) files to enable AI-powered game development.

Converts LaTeX source code into professionally formatted PDF documents.

Create PDFs from Markdown, fill forms, merge, split, rotate, watermark, encrypt, extract text, and add QR codes. 16 tools, TypeScript-native.

Official MCP server for Very Good FFmpeg

Validate, convert & visualize YAML, and edit saved diagrams, from your AI editor.

Generates a JSON representation of a directory's source file tree, respecting .gitignore patterns.

Create crafted UI components inspired by the best 21st.dev design engineers.

Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server

An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .

MCP server for AI Diagram Maker — generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.