# base64hub

> base64hub is a free MCP server for developer tools. Exact Base64 encode, decode and validate tools for AI assistants. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI
- **Website:** https://base64hub.com/mcp/
- **Repository:** https://github.com/base64hub-com/base64hub-mcp
- **MCP Registry name:** com.base64hub/mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-22

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp -- npx -y base64hub-mcp
```

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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

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

## Alternatives

- [base64-lite](https://ai-powered.com/mcp/base64-lite): base64-lite is an open-source MCP server for developer tools.
- [Base64](https://ai-powered.com/mcp/base64-3): Base64 is an open-source MCP server for developer tools.
- [Base64 Forge MCP](https://ai-powered.com/mcp/base64-forge-mcp): Base64 Forge MCP is an open-source MCP server for developer tools.
- [DevUtils MCP Server](https://ai-powered.com/mcp/devutils-mcp-server): DevUtils MCP Server is an open-source MCP server for developer tools.
- [Devutils](https://ai-powered.com/mcp/devutils): Devutils is an open-source MCP server for developer tools.
- [SimplyUtils](https://ai-powered.com/mcp/simplyutils): SimplyUtils is an open-source MCP server for developer tools.
- [Base64 Got Simplified](https://ai-powered.com/mcp/base64-got-simplified): Base64 Got Simplified is a freemium MCP server for developer tools.
- [Devtools](https://ai-powered.com/mcp/devtools): Devtools is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/base64hub
