Back to Browse

MCP Image Metadata MCP Server

by komla
Content & MediaLow Risk10.0LocalRemote
Free

Extract EXIF, GPS, IPTC, XMP metadata from any image with freemium and x402 USDC payments.

About

MCP Image Metadata is a Model Context Protocol server that extracts rich metadata from images. It provides EXIF data (camera make/model, ISO, aperture, shutter speed), GPS coordinates, IPTC fields (keywords, captions, copyright), and XMP metadata. Features include 50 free requests per wallet, x402 payment integration for USDC, batch processing up to 50 images, manipulation detection for forensic analysis, and automatic file cleanup after processing. Perfect for AI agents, stock photo platforms, e-commerce product listings, marketing agencies, and digital forensics.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (3 strong, 4 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

11 files analyzed · No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

What You'll Need

Set these up before or after installing:

HTTP server port. Default: runs in stdio mode if not set.Optional

Environment variable: PORT

xpay API key for payment processing. Get fromOptional

Environment variable: X402_API_KEY

Sign up free
Your Base USDC wallet address to receive payments.Optional

Environment variable: X402_WALLET_ADDRESS

base or base-sepolia. Default: base-sepolia.Optional

Environment variable: X402_NETWORK

Number of free requests per wallet. Default: 50.Optional

Environment variable: FREEMIUM_LIMIT

How to Install & Connect

Available as Local & Remote

This plugin can run on your machine or connect to a hosted endpoint. during install.

Getting Started

Once installed, try these example prompts and explore these capabilities:

  • 1"Extract metadata from my uploaded image" — Uploads and extracts all available metadata
  • 2"Check if this image has been edited or manipulated" — Analyzes image for signs of editing
  • 3"Get pricing information for this MCP server" — Returns pricing tiers and freemium status
  • 4Tool: extract_image_metadata — Extract EXIF, GPS, IPTC, XMP from a single image
  • 5Tool: extract_batch_metadata — Extract metadata from multiple images (max 50)
  • 6Tool: detect_image_manipulation — Analyze image for manipulation signs
  • 7Tool: get_pricing — Get current pricing and freemium status

Documentation

View on GitHub

From the project's GitHub README.

MCP Image Metadata Server

MCP server for extracting rich metadata from images, monetized via x402 payments.

Live Demo

Server: https://mcp-image-metadata.onrender.com


Quick Start

1. Upload Image

curl -X POST https://mcp-image-metadata.onrender.com/upload \
  -F "image=@your-image.jpg"

Response:

{
  "success": true,
  "filePath": "/tmp/uploads/abc123.jpg",
  "fileName": "abc123.jpg",
  "originalName": "your-image.jpg",
  "size": 12345
}

2. Extract Metadata

curl -X POST https://mcp-image-metadata.onrender.com/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "extract_image_metadata",
      "arguments": {
        "imageUrl": "/tmp/uploads/abc123.jpg",
        "payer": "0xYourWalletAddress"
      }
    }
  }'

Response:

{
  "success": true,
  "data": {
    "file": {
      "width": 1920,
      "height": 1080,
      "format": "jpeg",
      "colorDepth": 3,
      "dpi": 72,
      "fileSize": 456789,
      "mimeType": "image/jpeg"
    },
    "exif": {
      "cameraMake": "Apple",
      "cameraModel": "iPhone 14 Pro",
      "dateTime": "2024:01:15 12:30:00"
    },
    "gps": {
      "latitude": 37.7749,
      "longitude": -122.4194
    }
  },
  "price": 0.002,
  "paymentStatus": "free",
  "freemiumRemaining": 49
}

API Endpoints

EndpointMethodDescription
/mcpPOSTMCP JSON-RPC interface
/uploadPOSTUpload image file
/healthGETHealth check

MCP Tools

1. extract_image_metadata

Extract EXIF, GPS, IPTC, XMP metadata from an image.

Arguments:

{
  "imageUrl": "/tmp/uploads/abc123.jpg",
  "includeOptions": {
    "includeGps": true,
    "includeColor": true,
    "includeThumbnail": false,
    "includeOcr": false,
    "includeDeepHash": false
  },
  "paymentHeader": "...",
  "payer": "0xYourWallet"
}

Response:

{
  "success": true,
  "data": { "file": {...}, "exif": {...}, "gps": {...} },
  "price": 0.002,
  "paymentStatus": "free",
  "freemiumRemaining": 50
}

2. extract_batch_metadata

Extract metadata from multiple images (max 50).

Arguments:

{
  "imageUrls": ["/tmp/uploads/1.jpg", "/tmp/uploads/2.jpg"],
  "options": { "includeGps": true },
  "paymentHeader": "...",
  "payer": "0xYourWallet"
}

3. detect_image_manipulation

Analyze image for signs of manipulation/editing.

Arguments:

{
  "imageUrl": "/tmp/uploads/abc123.jpg",
  "analysisLevel": "standard",
  "paymentHeader": "...",
  "payer": "0xYourWallet"
}

analysisLevel:

  • basic - Basic checks ($0.002)
  • standard - Standard analysis ($0.002)
  • forensic - Deep forensic analysis ($0.015)

4. get_pricing

Get current pricing tiers and freemium status.

Arguments:

{
  "payer": "0xYourWallet"
}

Response:

{
  "pricing": {
    "basic": { "tier": "basic", "price": 0.001 },
    "standard": { "tier": "standard", "price": 0.002 },
    "premium": { "tier": "premium", "price": 0.005 },
    "forensic": { "tier": "forensic", "price": 0.015 }
  },
  "freemium": { "limit": 50, "remaining": 49 }
}

Complete Usage Flow

Step 1: Upload Image

# Upload image
curl -X POST https://mcp-image-metadata.onrender.com/upload \
  -F "image=@photo.jpg"

Response:

{
  "success": true,
  "filePath": "/tmp/uploads/abc123.jpg"
}

Step 2: Extract Metadata

curl -X POST https://mcp-image-metadata.onrender.com/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "extract_image_metadata",
      "arguments": {
        "imageUrl": "/tmp/uploads/abc123.jpg",
        "payer": "0xYourWallet123"
      }
    }
  }'

Step 3: Get Updated Freemium Status

curl -X POST https://mcp-image-metadata.onrender.com/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "get_pricing",
      "arguments": {
        "payer": "0xYourWallet123"
      }
    }
  }'

Pricing

TierPriceDescription
Basic$0.001 USDCFile info, dimensions, color profile
Standard$0.002 USDCBasic + GPS, IPTC, XMP
Premium$0.005 USDCStandard + thumbnail, deep hash
Forensic$0.015 USDCPremium + manipulation analysis

Freemium

  • 50 free requests per wallet address
  • After 50, requires x402 payment
  • Usage tracked in memory (resets on server restart)

x402 Payment Integration

For Agents/Apps

To make paid requests, include the paymentHeader:

{
  "name": "extract_image_metadata",
  "arguments": {
    "imageUrl": "/tmp/uploads/abc123.jpg",
    "payer": "0xYourWallet",
    "paymentHeader": "payment=v1_USDC_..."
  }
}

Payment Flow

  1. Agent calls tool with x402 payment header
  2. Server verifies payment via xpay facilitator
  3. If valid → returns metadata
  4. If invalid → returns error
  5. USDC transfers to your wallet on Base


Deployment

Render (Recommended)

  1. Push to GitHub
  2. Go to render.com → New → Web Service
  3. Connect your repo
  4. Configure:
SettingValue
Namemcp-image-metadata
RegionOregon
Build Commandnpm install && npm run build
Start Commandnode dist/index.js
  1. Add Environment Variables (see above)
  2. Deploy

Local Development

# Install dependencies
npm install

# Build
npm run build

# Run (stdio mode)
npm run dev

# Run with HTTP server
PORT=3000 node dist/index.js

Supported Image Formats

  • JPEG/JPG
  • PNG
  • GIF
  • WebP
  • TIFF
  • HEIC
  • BMP
  • SVG

Tech Stack

  • Node.js 20+
  • TypeScript
  • @modelcontextprotocol/sdk ^1.29.0
  • Sharp (image processing)
  • ExifReader (metadata parsing)
  • Express (HTTP server)
  • Multer (file uploads)

Security

This server implements multiple security measures:

  • Path Traversal Protection: File paths are validated to prevent directory traversal attacks
  • MIME Type Validation: Uploaded files are validated against allowed image types
  • Input Validation: Zod schemas reject path traversal patterns in user input
  • Error Sanitization: Error messages are sanitized to prevent information leakage
  • Rate Limiting: HTTP endpoints are protected with rate limiting (100 req/min per IP)
  • CORS Configuration: Optional origin validation for cross-origin requests
  • Security Logging: Security-relevant events are logged for monitoring

Security Configuration

# Optional: comma-separated list of allowed origins
ALLOWED_ORIGINS=https://example.com,https://app.example.com

# Optional: rate limit window in milliseconds (default: 60000)
RATE_LIMIT_WINDOW=60000

# Optional: max requests per window per IP (default: 100)
RATE_LIMIT_MAX=100

License

MIT

Reviews

No reviews yet

Be the first to review this server!

MCP Image Metadata MCP Server - Extract EXIF, GPS, IPTC, XMP metadata from any image with | MCP Marketplace