Skip to content
MCP server

base64hub

Exact Base64 encode, decode and validate tools for AI assistants

Runs locally
Install

base64hub is a free MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Free
Platforms
CLI
Runs
Locally
Version
1.0.0
Listing updated

Similar MCP servers

Install

Run in a terminal

claude mcp add mcp -- npx -y base64hub-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "base64hub-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "base64hub-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "base64hub-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "base64hub-mcp"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "base64hub-mcp"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

About base64hub

Language models tend to slip on long or non-ASCII Base64 because they predict it token by token. base64hub-mcp moves that work into code that follows RFC 4648, so the assistant can quote a byte-exact result.

It runs locally over stdio as a small Node.js program with no dependencies and no network access. Encoding supports the standard and URL-safe alphabets, optional padding and line wrapping. Decoding is forgiving about whitespace, data URIs, missing padding and mixed alphabets, and reports binary output as hex instead of garbled text.

Start it with a single npx command in Claude Code, Claude Desktop, Cursor or VS Code.

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

base64_encode
Encode text as UTF-8 to Base64, with url_safe, padding and wrap options.
base64_decode
Decode Base64 or a data URI to text, or to hex when the bytes are not text.
base64_validate
Check a string and return validity, variant, padding, byte count and any error.

What it does

Encode text
Convert UTF-8 text to Base64 with URL-safe, padding and wrap options.
Lenient decode
Accept data URIs, spaces, missing padding and either alphabet.
Validate input
Return whether a string decodes, its variant, padding and byte size.
Hex for binary
When decoded bytes are not valid text, they are shown as hex with a note.
Local and private
Runs as a local process with no network access or API key.

Good for

  • Decode Base64 pulled from logs or JWT payloads
  • Encode non-ASCII text for URL-safe use
  • Check whether a string is valid Base64 before processing it
  • Produce MIME-style wrapped output at 76 characters

Pricing

Free

Free; runs locally with no API key

Prices change. Check base64hub.com before you buy.

base64hub FAQ

Does base64hub send my data anywhere?

No. It runs locally and talks to the client over stdin and stdout.

What do I need to run base64hub?

Node.js 18 or newer; the client starts it with npx -y base64hub-mcp.

What happens with non-text data?

The decode tool returns the bytes as hex with a note that they are not UTF-8.

Which clients work?

Any client that runs stdio MCP servers, including Claude Desktop, Claude Code, Cursor and VS Code.

Is base64hub free?

Yes. base64hub is free to use.

How do I add base64hub to Claude Code?

Run this command in your terminal: claude mcp add mcp -- npx -y base64hub-mcp

What are the best alternatives to base64hub?

The closest alternatives to base64hub are base64-lite, Base64, Base64 Forge MCP, DevUtils MCP Server and Devutils.

Where this comes from

  • Description: written from the project's README, the project's website and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers