image-metadata-embed-and-report
A streamlined MCP server for XMP metadata embedding with beautiful formatting and smart filename indicators, enabling metadata embedding, reading, validation, and report generation for lifestyle, product, and orbit schemas.
README
Image Metadata Embed and Report
A streamlined MCP server for XMP metadata embedding with beautiful formatting and smart filename indicators. Features professional XMP display and automatic "_me" suffix for processed images.
⨠Features
ā
Beautiful XMP Formatting: Clean, aligned metadata display without technical prefixes
ā
Smart "_me" Filename Suffix: Instant visual indicator for metadata-enhanced images
ā
š Category-Based Reports: Metadata organized by natural categories with analysis type headers
ā
šÆ Analysis Type Identification: Clear "LIFESTYLE/PRODUCT/ORBIT" headers in all reports
ā
5 Core Tools: embed, read, validate, create_xmp, create_metadata_report with improved UX
ā
Stream Processing: Memory-only image processing, no local files
ā
Multi-Schema Support: Lifestyle, Product, and Orbit schemas
ā
Supabase Integration: Seamless cloud storage processing
ā
TypeScript: Full type safety and modern development
ā
Zero Setup: Single build command, immediate productivity
Quick Start
1. Install Dependencies
npm install
2. Set Environment Variables
Copy the example environment file and configure your Supabase credentials:
cp .env.example .env
Edit .env with your Supabase project details:
SUPABASE_URL=https://your-project-id.supabase.co
SUPABASE_ANON_KEY=your_anon_key_here
SUPABASE_BUCKET_NAME=your_storage_bucket_name
Get these values from your Supabase project dashboard at https://supabase.com/dashboard/project/_/settings/api
3. Build and Start
npm run build
npm start
4. Configure Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"image-metadata-embed-and-report": {
"command": "node",
"args": ["/path/to/your/image-metadata-embed-and-report/dist/server.js"],
"env": {
"SUPABASE_URL": "https://your-project-id.supabase.co",
"SUPABASE_ANON_KEY": "your_anon_key_here",
"SUPABASE_BUCKET_NAME": "your_storage_bucket_name"
},
"description": "Image Metadata Embed and Report - XMP metadata with beautiful formatting"
}
}
}
Replace /path/to/your/image-metadata-embed-and-report/ with the actual path where you cloned this repository.
⨠Enhanced Features Overview
Beautiful XMP Display
Transform technical metadata into professional, readable format:
Before:
Lifestyle marketing potential emotional hooks: Comfort, Pleasure, Well-being
Product physical characteristics primary color: Silver/Gray
After:
emotional hooks : Comfort, Pleasure, Well-being
primary color : Silver/Gray
--- Raw JSON ---
{"lifestyle_marketing_potential_emotional_hooks": "Comfort, Pleasure, Well-being", ...}
Smart Filename Suffix
All processed images automatically get "_me" suffix:
# Input ā Output
restaurant_scene.png ā restaurant_scene_me.jpg
product_photo.tiff ā product_photo_me.jpg
folder/image.png ā folder/image_me.jpg
Benefits:
- ā Instant visual identification of processed images
- ā Preserves original file names and organization
- ā Automatic format conversion for universal XMP support
Available Tools
1. embed_image_metadata (Enhanced)
Embed XMP metadata with beautiful formatting and smart filename suffix.
{
"source_path": "images/restaurant_scene.png",
"metadata": {
"scene_overview": {
"setting": "Outdoor restaurant patio",
"time_of_day": "Evening"
},
"human_elements": {
"number_of_people": 8,
"social_dynamics": "Friends enjoying dinner"
},
"marketing_potential": {
"emotional_hooks": ["Social connection", "Relaxed dining"]
}
},
"output_path": "processed/restaurant_scene.png",
"schema_type": "lifestyle"
}
Enhanced Output:
- š File:
processed/restaurant_scene_me.jpg(automatic suffix + conversion) - ⨠Beautiful XMP: Clean, aligned field display without technical prefixes
- š Auto-conversion: PNG/TIFF ā JPG for universal compatibility
- š Metrics: Processing time, field count, completeness score
2. read_image_metadata (Enhanced)
Extract and display metadata with beautiful formatting.
{
"image_path": "processed/restaurant_scene_me.jpg",
"format": "formatted",
"include_xmp": true
}
Beautiful Output:
setting : Outdoor restaurant patio
time of day : Evening
number of people : 8
social dynamics : Friends enjoying dinner
emotional hooks : Social connection, Relaxed dining
--- Raw JSON ---
{"lifestyle_scene_overview_setting": "Outdoor restaurant patio", ...}
3. validate_metadata_schema
Validate metadata against schema requirements.
{
"metadata": {
"product_identification": {
"product_type": "Console Table",
"design_style": "Minimalist"
}
},
"schema_type": "product",
"strict_mode": false
}
4. create_xmp_packet
Generate standalone XMP packets.
{
"metadata": {
"scene_overview": {
"setting": "Modern office",
"activities": ["Working", "Collaboration"]
}
},
"output_path": "metadata/office_scene.xmp",
"pretty_print": true
}
5. create_metadata_report (NEW!)
Generate human-readable reports from XMP metadata with category organization.
{
"image_path": "processed/restaurant_scene_me.jpg",
"format": "detailed",
"include_raw_json": true
}
Category-Based Output:
šÆ TYPE OF ANALYSIS COMPLETED: LIFESTYLE
Categories Found: 8 | Total Fields: 14 | Processing Time: 4.2ms
š SCENE OVERVIEW
-----------------------------------------------------------------
Setting : Elegant restaurant interior
Time Of Day : Evening
š„ HUMAN ELEMENTS
-----------------------------------------------------------------
Number Of People: 6
Social Dynamics : Family celebration dinner
[... other organized categories ...]
=================================================================
RAW JSON DATA (Machine Readable)
=================================================================
{...complete metadata...}
Three Report Formats:
- detailed: Full categorized report with all metadata + raw JSON
- simple: Key fields organized by category for quick review
- json-only: Raw machine-readable metadata only
Supported Schemas
Lifestyle Schema (36+ fields)
Social dynamics, cultural context, and lifestyle analysis
scene_overview- Setting, time, occasion, activitieshuman_elements- Demographics, interactions, emotionsenvironment- Location, architecture, spatial arrangementmarketing_potential- Target demographics, brand alignment
Product Schema (25+ fields)
Design aesthetics and commercial product analysis
product_identification- Type, category, style, brandphysical_characteristics- Color, material, texture, dimensionscommercial_analysis- Market positioning, target market, pricingquality_assessment- Construction, materials, craftsmanship
Orbit Schema (40+ fields)
Comprehensive visual intelligence analysis
scene_overview- Setting, time, activities, moodhuman_elements- People count, age groups, interactionskey_objects- Products, technology, notable itemsatmospheric_elements- Color scheme, lighting, visual mood
Architecture
simple-orbit-mcp/
āāā src/
ā āāā server.ts # Main MCP server
ā āāā core/
ā ā āāā supabase-client.ts # Stream-based storage client
ā ā āāā xmp-processor.ts # XMP creation and embedding
ā ā āāā metadata-validator.ts # Schema validation
ā āāā tools/
ā ā āāā embed-metadata.ts # Embedding tool
ā ā āāā read-metadata.ts # Reading tool
ā ā āāā validate-schema.ts # Validation tool
ā ā āāā create-xmp.ts # XMP creation tool
ā ā āāā create-metadata-report.ts # NEW! Category-based reports
ā āāā types/
ā āāā schemas.ts # TypeScript interfaces
āāā dist/ # Compiled JavaScript
Development
Build and Watch
npm run build # Compile TypeScript
npm run watch # Watch for changes
npm run dev # Development mode with tsx
Environment Setup
# Required environment variables
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your_anon_key_here
# Optional: Use service role key for enhanced permissions
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
Stream Processing Benefits
- ā No Local Storage: Images never touch your hard drive
- ā Memory Efficient: Process large images in RAM
- ā Fast Processing: Direct memory-to-memory operations
- ā Security: No local file persistence or cleanup needed
- ā Scalable: Works with any Supabase Storage bucket
Example Workflows
Lifestyle Image Analysis
# 1. Validate lifestyle metadata
validate_metadata_schema({
"metadata": {
"scene_overview": { "setting": "Coffee shop", "time_of_day": "Morning" },
"human_elements": { "number_of_people": 2, "social_dynamics": "Business meeting" }
},
"schema_type": "lifestyle"
})
# 2. Embed into image
embed_image_metadata({
"source_path": "uploads/coffee_meeting.jpg",
"metadata": { /* lifestyle metadata */ },
"output_path": "processed/coffee_meeting_analyzed.jpg"
})
# 3. Verify embedding
read_image_metadata({
"image_path": "processed/coffee_meeting_analyzed.jpg",
"format": "json"
})
Product Catalog Processing
# 1. Create XMP packet for product
create_xmp_packet({
"metadata": {
"product_identification": { "product_type": "Office Chair", "design_style": "Ergonomic" },
"commercial_analysis": { "target_market": ["Businesses", "Home offices"] }
},
"schema_type": "product",
"output_path": "metadata/office_chair.xmp"
})
# 2. Embed into product image
embed_image_metadata({
"source_path": "catalog/chair_001.jpg",
"metadata": { /* product metadata */ },
"output_path": "catalog/processed/chair_001_metadata.jpg"
})
Category-Based Report Generation
# 1. Generate detailed categorized report
create_metadata_report({
"image_path": "processed/restaurant_celebration_me.jpg",
"format": "detailed",
"include_raw_json": true
})
# Output: Organized report with category headers:
# šÆ TYPE OF ANALYSIS COMPLETED: LIFESTYLE
# š SCENE OVERVIEW | š„ HUMAN ELEMENTS | š ENVIRONMENT
# š½ļø KEY OBJECTS | š
ATMOSPHERIC ELEMENTS | etc.
# 2. Generate simple summary report for quick review
create_metadata_report({
"image_path": "catalog/chair_001_me.jpg",
"format": "simple"
})
# Output: Condensed report showing key fields by category
# Analysis: PRODUCT (6 categories, 13 fields)
# 3. Generate JSON-only report for API integration
create_metadata_report({
"image_path": "orbit/workspace_me.jpg",
"format": "json-only"
})
⨠Enhanced Features Summary
Professional XMP Display
- Clean field names without schema prefixes
- Aligned formatting for consistent appearance
- Dual format: human-readable + machine-parseable
- ExifTool compatible output
š Category-Based Reports (NEW!)
- Metadata organized by natural categories (Scene Overview, Human Elements, etc.)
- Clear analysis type identification (LIFESTYLE/PRODUCT/ORBIT)
- Three report formats: detailed, simple, json-only
- Professional formatting with emoji headers and alignment
- Separated raw JSON section for machine processing
Smart Filename Management
- Automatic "_me" suffix for processed images
- Preserves original file organization
- Format conversion for universal XMP support
- Clear visual indicators of enhancement
Stream Processing
- Memory-only image processing
- No local file downloads or cleanup
- Fast, efficient operations
- Secure cloud-to-cloud processing
Dependencies
@modelcontextprotocol/sdk- MCP server framework@supabase/supabase-js- Supabase client for cloud storagesharp- High-performance image processing
Requirements
- Node.js 18+
- TypeScript 5+
- Supabase project with Storage bucket
- Valid Supabase credentials
Performance
- ā Sub-5ms Processing: Ultra-fast metadata embedding
- ā Memory Efficient: <256MB per request
- ā Format Conversion: Automatic PNG/TIFF ā JPG optimization
- ā Smart Filenames: Instant visual feedback
- ā Beautiful Display: Professional XMP formatting
- ā š Fast Reports: <5ms category-based report generation
- ā šÆ Multi-Format: Detailed, simple, and JSON-only output formats
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
Support
If you encounter any issues or have questions, please open an issue on GitHub.
Image Metadata Embed and Report - Beautiful metadata, smart filenames, streamlined workflows
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.