Skip to main content

MCP server for Base64 file conversion (stdio transport)

Project description

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

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.server

Tools

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 content
  • file_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 -q

Run linting:

./scripts/lint.sh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_base64-0.1.5.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_base64-0.1.5-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file mcp_base64-0.1.5.tar.gz.

File metadata

  • Download URL: mcp_base64-0.1.5.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_base64-0.1.5.tar.gz
Algorithm Hash digest
SHA256 80daac815c1c8f8d347853eccb2b11329d764afe4057f65a4d084c98c913ec43
MD5 4261270926d8e63e6a1f00f9f3837c0f
BLAKE2b-256 b5b240809a0b7f2dcc728ed66011ffdea117307eae55b7abc7ba249267bb6407

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_base64-0.1.5.tar.gz:

Publisher: release.yml on Wuodan/mcp-base64

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_base64-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: mcp_base64-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_base64-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bd8f1aa33aa6a87a7d42de0d431c6d83511ff89fa725bec06c63360561bd0491
MD5 4f88ffc4c0e34f88bf9f8597e0a741de
BLAKE2b-256 da102462acc5d411df87007917f0735d64c0e5b8f9bd4d905371f372ec5a24bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_base64-0.1.5-py3-none-any.whl:

Publisher: release.yml on Wuodan/mcp-base64

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page