Skip to main content

MCP server that provides vision analysis tools via OpenAI-compatible API

Project description

vision-mcp

MCP server that provides vision analysis tools via an OpenAI-compatible API. Enables non-vision coding models to "see" images by routing image analysis to a separate vision-capable model.

Setup

Prerequisites

  • An OpenAI-compatible vision API endpoint (e.g., OpenAI, opencode.ai, or any provider supporting /v1/chat/completions with image_url content blocks)

Installation & Usage with uvx

The recommended way to run the server is via uvx — no manual installation needed:

uvx vision-mcp-server

Or install globally with uv:

uv tool install vision-mcp-server
vision-mcp-server

Environment Variables

Variable Required Default Description
VISION_API_BASE No https://api.openai.com/v1 Base URL for the OpenAI-compatible API
VISION_API_KEY Yes API key for authentication
VISION_MODEL No gpt-4o Model name to use for vision tasks

The server communicates over stdio using the MCP JSON-RPC protocol.

Tools

vision_analyze_image

Analyzes a single image file with an optional prompt.

| Parameter | Required | Description | |---|---|---|---| | image_path | Yes | Path to a local image file (PNG, JPEG, GIF, WebP) | | prompt | No | Guiding prompt (default: "Describe this image in detail.") |

vision_compare_images

Compares 2 to 8 image files simultaneously with a required prompt.

| Parameter | Required | Description | |---|---|---|---| | image_paths | Yes | List of 2-8 local image file paths | | prompt | Yes | Prompt describing what to compare |

Coding Agent Integration

opencode / Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "vision": {
      "command": "uvx",
      "args": ["vision-mcp-server"],
      "env": {
        "VISION_API_BASE": "https://api.openai.com/v1",
        "VISION_API_KEY": "${VISION_API_KEY}",
        "VISION_MODEL": "gpt-4o"
      }
    }
  }
}

Note: The server installed via uvx/uv tool install creates the entry point vision-mcp-server (derived from the project name vision-mcp and script name server).

Supported Image Formats

  • PNG (.png)
  • JPEG (.jpg, .jpeg)
  • GIF (.gif)
  • WebP (.webp)

Maximum file size: 20 MB.

License

MIT

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

vision_mcp_server-0.2.0.tar.gz (4.3 MB view details)

Uploaded Source

Built Distribution

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

vision_mcp_server-0.2.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file vision_mcp_server-0.2.0.tar.gz.

File metadata

  • Download URL: vision_mcp_server-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vision_mcp_server-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4ab1e10f20d4f14bb8e086b22de6115c56333324c6ce8689556879c59cc7c74c
MD5 ff6bdfae4a4b41a67e000055f9e68b81
BLAKE2b-256 e1fec79965048410fb404067f16208b669a9447f77fe5ce96df78eb985621936

See more details on using hashes here.

File details

Details for the file vision_mcp_server-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: vision_mcp_server-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for vision_mcp_server-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa4e3d2bf1fb36de827a515ba46dcd20122ed70d93bd414071d58fbcbdc37967
MD5 513761bbf5e1a55eb501296d5679d79d
BLAKE2b-256 6e1df16a0bb05018dff5e8b38de6d8612967a36c52648b2cc3420cd7943afd5a

See more details on using hashes here.

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