npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

vir-mcp-server

v1.0.0

Published

VIR (Vessel Inspection Report) MCP server with Typesense integration for inspection image retrieval

Readme

VIR Inspection MCP Server

A Model Context Protocol (MCP) server implementation for retrieving Vessel Inspection Report (VIR) images and metadata. This server provides tools for searching and accessing vessel inspection images stored in S3 via Typesense search integration.

Features

  • Vessel inspection image retrieval - Search and fetch inspection images by vessel name and inspection area
  • Smart VIR search - Search VIR records using Typesense with vessel name and location filtering
  • S3 image integration - Direct access to inspection images stored in S3
  • Metadata extraction - Retrieve comprehensive inspection report metadata
  • MCP protocol - Seamless integration with AI assistants

Prerequisites

  • Node.js (v18 or higher)
  • Typesense instance with VIR data
  • S3 access for image retrieval

Installation

Method 1: Using NPX (Recommended for Quick Start)

npx vir-mcp-server@latest

Method 2: Clone and Run Locally

  1. Clone the repository:
git clone https://github.com/syia-ai/VIR_inspection_MCP.git
cd VIR_inspection_MCP
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Run the server:
node dist/index.js

Claude Desktop Integration

To use this MCP server with Claude Desktop, add the following configuration to your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "vir_inspection": {
      "command": "node",
      "args": [
        "/path/to/VIR_inspection_MCP/dist/index.js"
      ]
    }
  }
}

Configuration

Environment Variables

TYPESENSE_HOST=localhost
TYPESENSE_PORT=8108
TYPESENSE_PROTOCOL=http
TYPESENSE_API_KEY=your-typesense-api-key
VIR_COLLECTION_NAME=vir_details_new

Command-line Arguments

The server runs with default Typesense configuration but can be customized via environment variables.

Tools Available

🔍 VIR Image Retrieval

  • get_vir_image - Search VIR records by vessel name and inspection area, then fetch and return all inspection images with metadata

Parameters:

  • vessel_name (string) - Name of the vessel to search for (e.g., 'Amirante')
  • inspection_area (string) - The ship area or location that was inspected (e.g., 'Ships Office / Alleyways', 'Engine Room', 'Bridge', 'ACCOMMODATION', 'Cargo Hold', 'Main Deck')
  • include_all_files (boolean, optional) - If true, returns all images. If false, returns only first image. Default: true
  • max_results (number, optional) - Maximum number of VIR records to return. Default: 5

Usage Examples

Search for Engine Room Inspection Images

{
  "method": "tools.call",
  "params": {
    "name": "get_vir_image",
    "arguments": {
      "vessel_name": "Amirante",
      "inspection_area": "Engine Room",
      "include_all_files": true,
      "max_results": 3
    }
  }
}

Get Bridge Inspection Images

{
  "method": "tools.call",
  "params": {
    "name": "get_vir_image",
    "arguments": {
      "vessel_name": "LNG Aurora",
      "inspection_area": "Bridge",
      "include_all_files": false
    }
  }
}

Running the Server

Development Mode

npm run dev

Production Mode

npm start

Testing

npm test

Project Structure

src/
├── index.ts              # Main server entry point
├── tools/               # VIR inspection tools
│   └── index.ts        # Tool definitions and handlers
└── utils/              # Utility functions
    ├── simple-config.ts # Configuration management
    └── simple-logger.ts # Logging utilities

Data Structure

The VIR system works with inspection records containing:

  • Vessel information (IMO, name)
  • Inspection details (dates, location, areas)
  • File references to S3-stored images
  • Status and metadata

Integration with Claude

Add to your MCP configuration:

{
  "mcpServers": {
    "vir_inspection": {
      "command": "npx",
      "args": ["vir-mcp-server@latest"]
    }
  }
}

License

MIT License