Skip to main content
Glama

MCP Read Images

analyze.js788 B
// Example script demonstrating how to use the read_images MCP server import { use_mcp_tool } from '@modelcontextprotocol/sdk'; // Basic usage with default model const result1 = await use_mcp_tool({ server_name: "read_images", tool_name: "analyze_image", arguments: { image_path: "./sample.jpg", question: "What do you see in this image?" } }); console.log('Analysis with default model:'); console.log(result1); // Using a specific model const result2 = await use_mcp_tool({ server_name: "read_images", tool_name: "analyze_image", arguments: { image_path: "./sample.jpg", question: "What colors are most prominent in this image?", model: "anthropic/claude-3-opus-20240229" } }); console.log('\nAnalysis with Claude-3-opus:'); console.log(result2);

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/catalystneuro/mcp_read_images'

If you have feedback or need assistance with the MCP directory API, please join our Discord server