A project for searching images in MCP
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"iflow-mcp-yanjunz-mcp-search-images","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# MCP 图像搜索与图标生成服务 基于多个图片API的搜索服务和图标生成功能,专门设计用于与 Cursor MCP 服务集成。支持图片搜索、下载和AI生成图标。  ## 工作原理 本工具通过MCP (Model Control Protocol) 为Cursor IDE提供图像搜索和图标生成功能: 1. **搜索图片**: 连接Unsplash、Pexels和Pixabay等图片源,根据关键词搜索高质量图片 2. **下载图片**: 将搜索到的图片下载到指定位置,方便直接在项目中使用 3. **生成图标**: 基于文本描述生成自定义图标,满足项目UI需求 ### 系统工作流程 ``` 用户 (在Cursor中) → 向Claude/大模型提问 → 大模型调用MCP工具 → 工具处理请求 → 返回结果 → 大模型展示结果 ``` 比如,你可以在Cursor中向Claude询问"帮我找5张关于太空的图片",Claude会通过MCP工具搜索并展示图片,然后你可以进一步要求下载或生成特定图标。 ## 功能特点 * 支持多个图片源搜索 (Unsplash, Pexels, Pixabay) * 高质量图标生成 (基于Together AI) * 简单易用的API * 完整的错误处理 * 自定义保存路径和文件名 * 可调整图片尺寸 ## 环境准备 ### 1. Python 环境 * Python 3.10+ * 下载地址: https://www.python.org/downloads/ * 推荐使用 pyenv 管理 Python 版本: ```bash # macOS 安装 pyenv brew install pyenv # 安装 Python pyenv install 3.13.2 pyenv global 3.13.2 ``` ### 2. uv 包管理工具 uv 是一个快速的 Python 包管理器,需要先安装: ```bash # macOS 安装 uv brew install uv # 或者使用 pip 安装 pip install uv ``` ### 3. 图片API密钥 #### Unsplash API 密钥 1. 访问 [Unsplash Developers](https://unsplash.com/developers) 2. 注册/登录账号 3. 创建新的应用程序 4. 获取 Access Key #### Pexels API 密钥 1. 访问 [Pexels API](https://www.pexels.com/api/) 2. 注册/登录账号 3. 请求API密钥 #### Pixabay API 密钥 1. 访问 [Pixabay API](https://pixabay.com/api/docs/) 2. 注册/登录账号 3. 获取API密钥 #### Together AI API 密钥 1. 访问 [Together AI API Keys](https://api.together.xyz/keys) 2. 注册/登录账号 3. 创建新的 API 密钥 ### 4. Cursor * 下载并安装 [Cursor IDE](https://cursor.sh/) * 确保 Cursor 已正确配置 Python 环境 ## 安装配置 1. 克隆项目: ```bash git clone https://github.com/yanjunz/mcp_search_images.git ``` 2. 安装依赖: ```bash python3 -m pip install fastmcp requests ``` 出现证书问题可以使用: ```bash python3 -m pip install fastmcp requests --trusted-host pypi.org --trusted-host files.pythonhosted.org --upgrade --force-reinstall --no-cache-dir ``` 3. 配置 API 密钥: 从模板创建配置文件: ```bash # 复制模板文件作为配置文件 cp config.json.template config.json # 编辑配置文件,设置API密钥 nano config.json # 或使用其他编辑器 ``` 在 `config.json` 中修改以下配置: ```json { "api": { …
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.