Image Recongnition 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 API。
安裝前請注意
必須提供 OPENAI_API_KEY 金鑰,這是伺服器運作的唯一方式,請勿寫入共用設定。圖片 URL 會傳送到 OpenAI 進行分析,費用計入你的 OpenAI 帳戶,因此帳戶需有足夠額度。圖片 URL 由伺服器擷取,請只指向可信來源。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Image Recongnition 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 分

    請在儲存庫或註冊中心條目中宣告授權條款。