Connects to OpenAI's vision models to analyze images from URLs and return detailed descriptions. Exposes a single describe-image tool that takes an image URL and hands back text describing what's in the photo. You'd reach for this when you need Claude to understand image content without building your own OpenAI vision integration. Requires an OpenAI API key set as an environment variable. Built in TypeScript, ships as an npm package, runs via stdio transport. Handles the usual error cases like invalid URLs and API failures. Straightforward if you're already paying for OpenAI and want image analysis in your MCP workflow without extra plumbing.
A Model Context Protocol (MCP) server that provides AI-powered image recognition and description capabilities using OpenAI's vision models.
This MCP server enables AI assistants to analyze and describe images through a simple URL-based interface. It leverages OpenAI's powerful vision models to provide detailed descriptions of images, making it easy to integrate image analysis capabilities into your AI workflows.
To use this server with an MCP client, add the following configuration:
{
"mcpServers": {
"image-recognition": {
"command": "npx",
"args": ["-y", "@mcp-s/image-recognition-mcp"],
"env": {
"OPENAI_API_KEY": "your-actual-openai-api-key-here"
}
}
}
}
⚠️ IMPORTANT: The env section with your OpenAI API key is required - this is the only way the MCP server can function.
describe-imageAnalyzes an image from a URL and provides a detailed description.
Parameters:
imageUrl (string): The URL of the image to analyzeExample:
{
"tool": "describe-image",
"arguments": {
"imageUrl": "https://example.com/image.jpg"
}
}
Response:
{
"content": [
{
"type": "text",
"text": "The image shows a beautiful sunset over a mountain landscape with vibrant orange and pink colors in the sky..."
}
]
}
This MCP server can be integrated with various AI assistants that support the MCP protocol, such as:
image-recognition-mcp/
├── src/
│ └── index.ts # Main server implementation
├── dist/ # Compiled JavaScript output
├── package.json # Project dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This file
The server includes robust error handling for:
Server fails to start or doesn't work:
echo $OPENAI_API_KEY # Should show your API key
"Authentication failed" errors:
export OPENAI_API_KEY="your-key"git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the ISC License. See the LICENSE file for details.
For support, please open an issue in the GitHub repository or contact the maintainer.
OPENAI_API_KEY*secretYour OpenAI API key for image recognition and description services
io.github.ericm1018/skillfm-llm-cost-optimizer-openai-anthropic-usage
io.github.mikerawsonnz/llm-orchestration-agent
io.github.mikerawsonnz/authenticated-llm-agent
labforgedev/copilot-memory-mcp
csoai-org/agent-prompt-injection-firewall-mcp
io.github.mikerawsonnz/authenticated-multi-llm-agent