Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

jina-ai-mcp-multimodal-search

MCP.Pizza Chef: Sheshiyer

The jina-ai-mcp-multimodal-search is an MCP server that integrates Jina AI's advanced neural search capabilities into the Model Context Protocol ecosystem. It supports semantic search for natural language queries, image search for visually similar images, and cross-modal search allowing text-to-image and image-to-text queries. Designed for seamless integration, it requires Node.js 16+, a Jina AI account with an API key, and an MCP-compatible environment. This server empowers developers to add powerful multimodal search functionalities to their AI workflows, enhancing context-aware retrieval across text and images.

Use This MCP server To

Enable semantic document search with natural language queries Perform image similarity search using image URLs Conduct cross-modal searches between text and images Integrate neural search into AI-powered applications Enhance AI agents with multimodal retrieval capabilities

README

Jina AI MCP Server

A Model Context Protocol (MCP) server that provides seamless integration with Jina AI's neural search capabilities. This server enables semantic search, image search, and cross-modal search functionalities through a simple interface.

🚀 Features

  • Semantic Search: Find semantically similar documents using natural language queries
  • Image Search: Search for visually similar images using image URLs
  • Cross-Modal Search: Perform text-to-image or image-to-text searches

📋 Prerequisites

  • Node.js 16 or higher
  • A Jina AI account and API key (Get one here)
  • MCP-compatible environment (e.g., Cline)

🛠️ Installation

  1. Clone the repository:
git clone <repository-url>
cd jina-ai-mcp
  1. Install dependencies:
npm install
  1. Create a .env file with your Jina AI API key:
JINA_API_KEY=your_api_key_here
  1. Build the server:
npm run build

⚙️ Configuration

Add the following configuration to your MCP settings file:

{
  "mcpServers": {
    "jina-ai": {
      "command": "node",
      "args": [
        "/path/to/jina-ai-mcp/build/index.js"
      ],
      "env": {
        "JINA_API_KEY": "your_api_key_here"
      }
    }
  }
}

🔍 Available Tools

1. Semantic Search

Perform semantic/neural search on text documents.

use_mcp_tool({
  server_name: "jina-ai",
  tool_name: "semantic_search",
  arguments: {
    query: "search query text",
    collection: "your-collection-name",
    limit: 10 // optional, defaults to 10
  }
})

2. Image Search

Search for similar images using an image URL.

use_mcp_tool({
  server_name: "jina-ai",
  tool_name: "image_search",
  arguments: {
    imageUrl: "https://example.com/image.jpg",
    collection: "your-collection-name",
    limit: 10 // optional, defaults to 10
  }
})

3. Cross-Modal Search

Perform text-to-image or image-to-text search.

use_mcp_tool({
  server_name: "jina-ai",
  tool_name: "cross_modal_search",
  arguments: {
    query: "a beautiful sunset", // or image URL for image2text
    mode: "text2image", // or "image2text"
    collection: "your-collection-name",
    limit: 10 // optional, defaults to 10
  }
})

📝 Response Format

All search tools return results in the following format:

{
  content: [
    {
      type: "text",
      text: JSON.stringify({
        results: [
          {
            id: string,
            score: number,
            data: Record<string, any>
          }
        ]
      }, null, 2)
    }
  ]
}

🔐 Error Handling

The server handles various error cases:

  • Invalid API key
  • Missing or invalid parameters
  • API rate limits
  • Network errors
  • Invalid collection names

All errors are properly formatted and returned with appropriate error codes and messages.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

jina-ai-mcp-multimodal-search FAQ

How do I install the jina-ai-mcp-multimodal-search server?
Clone the repository, install dependencies with npm, add your Jina AI API key in a .env file, and build the server using npm run build.
What are the prerequisites for running this MCP server?
You need Node.js 16 or higher, a Jina AI account with an API key, and an MCP-compatible environment like Cline.
How do I configure the Jina AI API key for this server?
Create a .env file in the project root and add your API key as JINA_API_KEY=your_api_key_here.
Can this server handle both text and image search queries?
Yes, it supports semantic text search, image similarity search, and cross-modal text-to-image or image-to-text searches.
Is this MCP server compatible with multiple LLM providers?
Yes, it works within MCP environments that support models from OpenAI, Anthropic Claude, and Google Gemini.
How does cross-modal search work in this server?
It allows searching across modalities, such as querying images with text or finding text related to an image, leveraging Jina AI's neural search.
What environment is recommended to run this MCP server?
An MCP-compatible client environment like Cline is recommended for seamless integration and interaction.
Are there any specific Node.js version requirements?
Yes, Node.js version 16 or higher is required to run this server.