Skip to main content
Glama

MCP Tools - Image to Base64 Server

A Model Context Protocol (MCP) based image to Base64 server designed for Cursor to actually "see" and process images.

🌟 Features

  • 🖼️ Image to Base64: Convert local images or remote image URLs to Base64 format

  • 🌐 Remote URL Support: Automatically download and process web images

  • 📋 Multi-format Support: Support PNG, JPEG, GIF, WebP, SVG and other image formats

  • ⚡ High Performance: Use Sharp library for efficient image processing and optimization

  • 🔗 MCP Protocol: Standardized AI tool interface for seamless integration with AI assistants

  • 🎯 Auto Optimization: Intelligently convert to JPEG format to reduce file size

  • 📦 NPX Support: Support running directly through npx without installation

Related MCP server: Extract-Image

📦 Installation and Usage

Using with Cursor

Add to your Cursor MCP configuration file:

{
  "mcpServers": {
    "image-to-base64": {
      "command": "npx",
      "args": ["@code-tinker/mcp-image-to-base64"]
    }
  }
}

use case

image

Available Tools

1 tool
image_to_base64A

将图片地址转为base64然后AI才可以真正看到这张图片。支持本地文件路径和远程URL。

Inputs: image_path (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is no possible confusion with other tools. The tool's purpose is clear and unambiguous.

    Naming Consistency5/5

    The single tool uses a descriptive snake_case name that aligns with the server's purpose, and there are no inconsistent naming patterns to compare.

    Tool Count5/5

    For a single-purpose utility server, one tool is well-scoped and appropriate. Additional tools would be unnecessary or out of scope.

    Completeness5/5

    The tool fully covers the server's stated purpose: converting images to base64 from both local paths and remote URLs. There are no missing operations within this narrow domain.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      Wraps local multimodal CLIs (Google Gemini CLI and Qwen CLI) as MCP tools, enabling text-only AI assistants like Claude to analyze images through relay calls. Supports local paths, URLs, and base64 image inputs with configurable models and output formats.
      2
      4
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      The MCP server offers the function of extracting images from local files and urls and converting them to base64 format, which is suitable for LLM analysis.
      3
      2
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables analysis of local images through Kimi (Moonshot AI) vision models via the MCP protocol, supporting features like OCR and long context understanding.
      760 npm
      MIT