MCP Base64 Server
Provides tools to encode files from a specified path into Base64 strings and decode Base64 content back into files at a specified path, supporting text and binary files.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Base64 Server
A Python MCP (Model Context Protocol) server for Base64 file conversion with stdio transport.
Features
encode_file_to_base64: Encode any file to base64 string
decode_base64_to_file: Decode base64 content to file
Binary-safe: Handles both text and binary files correctly
Related MCP server: mcp-base64
Usage
IDE Configuration
For IDE plugins, add this server to your MCP configuration JSON:
{
"mcpServers": {
"base64": {
"command": "uvx",
"args": [
"mcp-base64"
]
}
}
}Direct Execution
git clone https://github.com/Wuodan/mcp-base64.git
cd mcp-base64
python3 -m venv .venv
./.venv/bin/python -m pip install -e .
./.venv/bin/python -m mcp_base64.serverTools
encode_file_to_base64(file_path: str) -> str
Encodes a file to base64 string.
Parameters:
file_path(str): Absolute path to file to encode
Returns: Base64 encoded string
decode_base64_to_file(base64_content: str, file_path: str) -> str
Decodes base64 string to file.
Parameters:
base64_content(str): Base64 encoded contentfile_path(str): Absolute path where to save decoded file
Returns: Success message with file path
Development
Install development dependencies:
./.venv/bin/python -m pip install -r requirements-dev.txt -e .Run tests:
./.venv/bin/python -m pytest -qRun linting:
./scripts/lint.shTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Encode text to Base64 or decode Base64 back to plain text.
Exact Base64 for AI agents: encode, decode and validate (standard, URL-safe, data URIs).
Manage files and folders directly from your workspace. Read and write files, list directories, cre…
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides tools to encode files to Base64 strings and decode Base64 content back to files, supporting both text and binary formats.2Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables encoding and decoding of text between Base64, Base64URL, Base32, and Hex formats, supporting offline keyless operations.71 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to encode text to base64 or decode base64 back to plaintext, with support for standard and URL-safe variants and pay-per-call micropayments via x402.MIT
- AlicenseAqualityBmaintenanceEnables AI apps to encode text or local files to Base64 and decode Base64 or data URIs through read-only tools, with optional URL-safe alphabet and data-URI output.238 PyPIMIT