图像分析MCP服务器

图像分析MCP服务器

一个接收图片URL或本地路径并使用GPT-4o-mini模型分析内容的MCP服务器。

快速入门

安装

通过 Smithery 安装

运行以下命令: npx -y @smithery/cli install @champierre/image-mcp-server --client claude

手动安装

  1. 克隆仓库: git clone https://github.com/champierre/image-mcp-server.git cd image-mcp-server
  2. 安装依赖: npm install
  3. 编译 TypeScript: npm run build

配置

设置 OpenAI API 密钥环境变量: OPENAI_API_KEY=your_openai_api_key

配置 MCP 服务器文件(如 Cline 或 Claude Desktop),添加以下内容: { "mcpServers": { "image-analysis": { "command": "node", "args": ["/path/to/image-mcp-server/dist/index.js"], "env": { "OPENAI_API_KEY": "your_openai_api_key" } } } }

使用

  • 分析图片 URL: 请分析此图片 URL: https://example.com/image.jpg
  • 分析本地图片路径: 请分析此图片: /path/to/your/image.jpg

开发模式运行:npm run dev