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 -e .[dev]

Run tests:

./.venv/bin/python -m pytest -q

Run linting:

./.venv/bin/python -m ruff check .

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.4.tar.gz (125.3 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.4-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_base64-0.1.4.tar.gz
  • Upload date:
  • Size: 125.3 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.4.tar.gz
Algorithm Hash digest
SHA256 1dd132434624d20d3de20a50a115c4d56b3342f7ce3b6246e6e124b2c4a64283
MD5 c72ced47a88b8bcadbcf66077f307098
BLAKE2b-256 2970a97f012a300f910dd38fc0d3c57e9849828ed48e0f2ab27a60dd8176186b

See more details on using hashes here.

Provenance

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

Publisher: ci.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.4-py3-none-any.whl.

File metadata

  • Download URL: mcp_base64-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c053f4f9fe998ba178a4630e993214090a84f1eb26001034358b7712c3247bd5
MD5 4817f36d009edb41835c9b41772185b7
BLAKE2b-256 db8c59c3eba03ae5ebc291e16aff3f44bd9cd31cdbae2d0e64ed5ace1db3051e

See more details on using hashes here.

Provenance

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

Publisher: ci.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