Image Recognition Mcp

io.github.shalevshalit由 GitHub 账号 shalevshalit 发布v1.0.0更新于 Oct 24, 2026

MCP server for AI-powered image recognition and description using OpenAI vision models.

已验证STDIO仅桌面媒体与设计AI 与机器学习

概览

AI 生成的概览

一个本地 MCP 服务器,让助手把图片 URL 交给 OpenAI 视觉模型,返回详细的文字描述。

可以做什么
分析来自 URL 的图片,并借助 OpenAI 视觉模型返回详细的文字描述。
适用场景
当助手需要理解或描述以 URL 引用的图片(如截图、商品照片或图表)而不想离开对话时适用。
运行要求
通过 npx 在本地运行,需要 Node.js 18+ 以及 npm 或 yarn。需要在 OPENAI_API_KEY 环境变量中提供 OpenAI API 密钥,并需要网络访问以获取图片和调用 OpenAI。
安装前请注意
必须提供 OpenAI API 密钥,这是服务器运行的唯一方式,请勿将其写入共享配置。图片 URL 会被发送到 OpenAI 进行分析,OpenAI 用量会计入你的账户,需确保账户有可用额度。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Image Recognition Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Image Recognition MCP Server

A Model Context Protocol (MCP) server that provides AI-powered image recognition and description capabilities using OpenAI's vision models.

Overview

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.

Features

  • Image Analysis: Analyze images from URLs and get detailed descriptions
  • OpenAI Integration: Uses OpenAI's latest vision models for accurate image recognition
  • MCP Protocol: Fully compatible with the Model Context Protocol standard
  • TypeScript: Built with TypeScript for type safety and better development experience
  • Simple API: Easy-to-use interface for image description requests

Installation

Prerequisites

  • Node.js 18+
  • npm or yarn
  • OpenAI API key

MCP Client Configuration

To use this server with an MCP client, add the following configuration:

json
{  "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.

Usage

Available Tools

describe-image

Analyzes an image from a URL and provides a detailed description.

Parameters:

  • imageUrl (string): The URL of the image to analyze

Example:

json
{  "tool": "describe-image",  "arguments": {    "imageUrl": "https://example.com/image.jpg"  }}

Response:

json
{  "content": [    {      "type": "text",      "text": "The image shows a beautiful sunset over a mountain landscape with vibrant orange and pink colors in the sky..."    }  ]}

Integration with AI Assistants

This MCP server can be integrated with various AI assistants that support the MCP protocol, such as:

  • Claude Desktop
  • Other MCP-compatible AI systems

Development

Project Structure

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

Error Handling

The server includes robust error handling for:

  • Invalid image URLs
  • Network connectivity issues
  • OpenAI API errors
  • Invalid input parameters

Troubleshooting

Common Issues

Server fails to start or doesn't work:

  • ✅ Check if OpenAI API key is set: This is the #1 cause of issues
    bash
    echo $OPENAI_API_KEY  # Should show your API key
  • ✅ Verify API key is valid: Test with OpenAI's API directly
  • ✅ Check API key has sufficient credits: Ensure your OpenAI account has available credits

"Authentication failed" errors:

  • The OpenAI API key is missing or invalid
  • Set the environment variable: export OPENAI_API_KEY="your-key"

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the ISC License. See the LICENSE file for details.

Support

For support, please open an issue in the GitHub repository or contact the maintainer.

来源:README.md,提交 0f19b62

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。