Skip to main content
Glama
erickpxd

Multimodal MCP

by erickpxd

Multimodal MCP - Week 6 Lab

Overview

This project demonstrates the integration of multimodal artificial intelligence techniques using CLIP embeddings, Visual Question Answering (VQA), and the Model Context Protocol (MCP).

The objective is to explore how images and text can be represented in a shared embedding space, enabling semantic search and natural language interaction with visual content.


Related MCP server: Local Image Search (Japanese) MCP Server

Project Structure

.
├── 6.lab.1-multimodal-mcp.ipynb
├── client.py
├── image_embeddings.npy
├── README.md
├── requirements.txt
└── server.py

Components

MCP Server

The server exposes multimodal capabilities through MCP tools.

Available tools:

  • search_images(query)

    • Performs semantic image retrieval using CLIP embeddings.

  • ask_about_image(image_id, question)

    • Uses a Visual Question Answering (VQA) pipeline to answer questions about a selected image.


MCP Client

The client connects to the MCP server and demonstrates:

  1. Tool discovery

  2. Semantic image search

  3. Visual question answering

  4. End-to-end multimodal interaction


Example Workflow

User Query
      ↓
search_images("dog running")
      ↓
Most Relevant Image
      ↓
ask_about_image(image_id, question)
      ↓
Textual Answer

Technologies

  • Python

  • MCP (Model Context Protocol)

  • Hugging Face Transformers

  • OpenAI CLIP

  • BLIP / VQA Models

  • PyTorch


Laboratory Objectives

  • Explore multimodal embeddings using CLIP.

  • Evaluate zero-shot image classification.

  • Build a Visual Question Answering system.

  • Expose multimodal capabilities through MCP.

  • Demonstrate interaction between retrieval and reasoning components.


Author

Erick Lima

Jala University

Software Engineering

Related MCP Connectors

  • OCR, transcription, file extraction, and image generation for AI agents via MCP.

  • Search over 1.85 million captioned images using text, a reference image, or both. Upload a JPEG, PNG, or WebP image as base64, or provide a public HTTPS image URL. Find similar images from a Lightdrift asset ID and retrieve hosted file URLs, source licenses, and attribution. Connect with OAuth or an API key. Searches cost $0.005 ($5 per 1,000); image details are free. Setup: https://docs.lightdrift.ai/guides/images-mcp

  • Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.

  • Search photos and video moments by visual meaning, people, dates, and folders across local libraries, Apple Photos, and OneDrive. Manage collections, groups, favorites, people, and duplicate review. Synced metadata remains searchable while the desktop is offline; local and Apple Photos media access needs the owning device online with remote access enabled. OneDrive media can be accessed directly from the cloud. OAuth or Bearer API keys. Paid Cloud Access required; hosted visual search uses prepaid credits. Text-in-image search is semantic matching, not guaranteed exact OCR. Setup: https://organizewith.ai/en/guides/connect-ai-assistants

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables semantic code search across indexed codebases using natural language queries, with support for CLI and MCP interfaces.
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables searching local images using natural Japanese queries, leveraging a Japanese-specific CLIP model for similarity search and providing efficient caching and fast retrieval via MCP and HTTP endpoints.
    MIT