Logo van Vision MCP Server

Vision MCP Server

Community
TheNomadInOrbit

MCP server for AI vision analysis via OpenRouter

UitgeverTheNomadInOrbit
RepositoryVision-MCP-Server
TaalTypeScript
Forks
2
Sterren
20
Beschikbare tools
0
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    Vision MCP Server biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    20 sterren en 2 forks in de gekoppelde repository.

MCP Badge

Vision MCP Server

Ever wanted to use a model like GLM-4.6 or other great AI models that just don't have vision capabilities? This MCP server solves that problem by adding vision capabilities to any model through OpenRouter's vision models.

The Problem

Some really good AI models don't support vision. You're stuck choosing between your preferred model or vision capabilities. This server bridges that gap by providing seamless vision capabilities through OpenRouter's vision models.

The Solution

This MCP server provides a simple analyze_image tool that can:

  • Analyze images from URLs, file paths, or base64 data
  • Use any vision model available on OpenRouter (Claude 3.5 Sonnet, GPT-4 Vision, etc.)
  • Return detailed analysis results
  • Handle errors gracefully with proper validation

System Requirements

Before installing, make sure you have:

  • Node.js 18.0.0 or higher (recommended: Node.js 20+)
  • npm 8.0.0 or higher (comes with Node.js)

Check Your Versions

bash
node --version    # Should show v18.0.0 or higher
npm --version     # Should show 8.0.0 or higher

Install/Update Node.js

If you need to install or update Node.js:

  1. Download from official site: nodejs.org (recommended for beginners)
  2. Using Node Version Manager (nvm):
    bash
    # Install nvm first, then:
    nvm install 20
    nvm use 20
  3. Using package managers:
    • macOS: brew install node
    • Windows: winget install OpenJS.NodeJS
    • Ubuntu/Debian: sudo apt install nodejs npm

Important: This server is written in TypeScript and uses dependencies (like node-fetch v3) that require Node.js 18+. Older versions (like Node.js 16 or below) will not work.

Quick Start

Step 1: Get Your OpenRouter API Key

  1. Go to OpenRouter
  2. Sign up or log in to your account
  3. Navigate to "Keys" in your dashboard
  4. Click "Create Key"
  5. Copy your API key (starts with sk-or-v1-...)
  6. Keep this key safe - you'll need it in Step 3

Step 2: Install the MCP Server

Option A: Install from npm (Recommended)

bash
npm install -g @thenomadinorbit/vision-mcp-server

Success! The package is now globally available as vision-mcp command.

Option B: Install from Source (Development)

bash
git clone https://github.com/TheNomadInOrbit/vision-mcp-server.git
cd vision-mcp-server
npm install
npm run build
npm install -g .

Note: Use this method if you want to modify the source code or contribute to the project.

Step 3: Configure Your MCP Client

Add this server configuration to your MCP client:

json
{
  "mcpServers": {
    "vision-analyzer": {
      "command": "vision-mcp",
      "type": "stdio",
      "timeout": 60,
      "disabled": false,
      "autoApprove": [],
      "env": {
        "OPENROUTER_API_KEY": "your_api_key_here",
        "OPENROUTER_MODEL": "anthropic/claude-3-5-sonnet"
      }
    }
  }
}

Step 4: Test Your Installation

Important: The vision-mcp command requires an OpenRouter API key to run. You cannot test it directly without configuration.

Quick Test (with your API key):

bash
OPENROUTER_API_KEY="your_api_key_here" vision-mcp --help

You should see the server start up with logs like:

Application initialized successfully
Starting Vision MCP Server...
MCP server started successfully
Vision MCP Server is running on stdio

Press Ctrl+C to stop the test.

What happens if you run vision-mcp without the API key?

bash
vision-mcp

You'll get this error (this is normal and expected):

Error: OPENROUTER_API_KEY environment variable is required

This means the installation worked! The server is just protecting you from running without proper configuration.

Verify Installation Status:

bash
# Check if the command is available
which vision-mcp

# Check if the package is installed
npm list -g @thenomadinorbit/vision-mcp-server

🔧 Configuration Options

Basic Configuration

  • "vision-analyzer" - Server name (you can change this to anything you like)
  • "command": "vision-mcp" - Required: The global command to run the server
  • "type": "stdio" - Required: Communication protocol for MCP
  • "timeout": 60 - Optional: Timeout in seconds (default: 60)
  • "disabled": false - Optional: Set to true to disable the server

Auto-Approve Settings

Configure which tools can run without asking for permission:

json
"autoApprove": []

Options:

  • [] (empty) - Requires approval for all tools (safest)
  • ["list_models"] - Auto-approve listing available models only
  • ["analyze_image"] - Auto-approve vision analysis (convenient but less safe)
  • ["analyze_image", "list_models"] - Auto-approve all tools (most convenient)

Model Configuration

You can use any vision model from OpenRouter:

json
"env": {
  "OPENROUTER_API_KEY": "your_api_key_here",
  "OPENROUTER_MODEL": "anthropic/claude-3-5-sonnet"
}

Popular Models:

  • anthropic/claude-3.5-sonnet (recommended - best for vision)
  • openai/gpt-4o-2024-08-06 (excellent vision capabilities)
  • google/gemini-2.0-flash-001 (fast and cost-effective)
  • anthropic/claude-3-opus (most powerful for complex analysis)

Complete Example Configuration

json
{
  "mcpServers": {
    "vision-analyzer": {
      "command": "vision-mcp",
      "type": "stdio",
      "timeout": 60,
      "disabled": false,
      "autoApprove": ["list_models"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-v1-your-actual-key-here",
        "OPENROUTER_MODEL": "anthropic/claude-3.5-sonnet",
        "MAX_IMAGE_SIZE": "10485760"
      }
    }
  }
}

Available Tools

Once configured, your AI assistant can use these tools:

analyze_image

Analyze images with AI vision models

  • Input: Image URL, file path, or base64 data
  • Output: Detailed analysis of the image content

list_models

List all available vision models from OpenRouter

  • Input: None
  • Output: Array of available models with their capabilities

Usage Examples

Once configured, you can ask your AI assistant to analyze images like this:

Real-World Example

You: "Can you analyze this image: https://example.com/image.jpg"

What happens behind the scenes:

  1. Your AI assistant receives your request
  2. It calls the analyze_image tool from this MCP server
  3. This server downloads the image and sends it to OpenRouter's vision model
  4. The vision model analyzes the image
  5. Results are returned to your AI assistant
  6. Your AI assistant presents the analysis to you

You see: Detailed image analysis from your AI assistant You don't see: All the technical MCP communication happening behind the scenes

Example Conversations

Analyze an image from URL:

"Can you analyze this image: https://example.com/image.jpg"

Analyze a local image:

"Please analyze the image at /Users/username/Pictures/photo.png"

Get available models:

"What vision models are available?"

Detailed analysis:

"Analyze this image and tell me about the objects, colors, and mood: https://example.com/artwork.jpg"

Compare images:

"Can you analyze these two images and tell me the differences: image1.jpg and image2.jpg"

Environment Variables

You can customize the server with these environment variables:

VariableDescriptionDefaultRequired
OPENROUTER_API_KEYYour OpenRouter API key-Yes
OPENROUTER_MODELAI model to useanthropic/claude-3.5-sonnetNo
MAX_IMAGE_SIZEMax image size in bytes10485760 (10MB)No

Troubleshooting

Common Mistakes

"I installed it but vision-mcp gives an error!"

The Error:

Error: OPENROUTER_API_KEY environment variable is required

Why this happens: You're trying to run vision-mcp directly from the command line. This MCP server is designed to be used through an MCP client (like Claude Code), not run directly.

The Fix:

  1. Correct: Configure it in your MCP client (Step 3 above)
  2. Incorrect: Running vision-mcp directly in terminal

Quick test only: If you want to test the installation, use:

bash
OPENROUTER_API_KEY="your_key" vision-mcp --help

"How do I actually use this?"

This server doesn't have a web interface or CLI commands. It's an MCP server that adds vision capabilities to your AI assistant through the MCP protocol.

Workflow:

  1. Install the server globally (npm install -g @thenomadinorbit/vision-mcp-server)
  2. Configure it in your MCP client (Claude Desktop, etc.)
  3. Ask your AI assistant to analyze images
  4. The AI assistant uses this server behind the scenes

Command not found: vision-mcp

  1. For npm installation: Make sure you ran npm install -g @thenomadinorbit/vision-mcp-server
  2. For source installation: Make sure you ran npm install -g . after building
  3. Try running npm list -g @thenomadinorbit/vision-mcp-server to verify installation
  4. Restart your terminal

"Server not found" or "Connection failed"

  1. Verify the command is vision-mcp (not a file path)
  2. Make sure you ran npm run build
  3. Check that the global installation worked: which vision-mcp
  4. Restart your MCP client

"API key invalid"

  1. Double-check your OpenRouter API key
  2. Make sure it starts with sk-or-v1-
  3. Verify you have credits in your OpenRouter account

"Vision analysis failed"

  1. Try with a smaller image (under 10MB)
  2. Make sure the image format is supported (JPG, PNG, WebP)
  3. Check your OpenRouter account has sufficient credits

Still not working?

  1. Check your MCP client logs for error messages
  2. Make sure your configuration file has valid JSON syntax
  3. Try restarting your computer

Reporting Issues

Found a bug or have a suggestion? Feel free to open an issue with:

  • Clear description of the problem
  • Steps to reproduce
  • Expected vs actual behavior
  • Your environment details (Node.js version, OS, etc.)

Development Setup

If you want to fork and modify for your own use:

bash
git clone https://github.com/TheNomadInOrbit/vision-mcp-server.git
cd vision-mcp-server
npm install
npm run build

Security

If you discover a security vulnerability, please open a security issue with the "security" label.

Changelog

See CHANGELOG.md for a detailed history of changes.

License

MIT - Use it however you want.

Installatie

TypingMind
{
  "mcpServers": {
    "vision-mcp-server": {
      "command": "vision-mcp",
      "args": [],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}

Gebruik Vision MCP Server MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra Vision MCP Server is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg Vision MCP Server toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van Vision MCP Server.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "vision-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@thenomadinorbit/vision-mcp-server"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van Vision MCP Server in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van Vision MCP Server in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je Vision MCP Server gebruiken om me hiermee te helpen?
Vision MCP Server
Zeker. Ik heb het gelezen.
Dit vond ik met Vision MCP Server.

Veelgestelde vragen

Waarvoor wordt de MCP-server Vision MCP Server gebruikt?

Vision MCP Server is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik Vision MCP Server MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je Vision MCP Server gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom Vision MCP Server MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als Vision MCP Server verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik Vision MCP Server MCP met TypingMind?

Vision MCP Server werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt Vision MCP Server MCP in TypingMind?

Vision MCP Server biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om Vision MCP Server MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als Vision MCP Server authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇