{"$schema":"https://wellknown.network/schemas/agent-record-v1.json","schemaVersion":"1","id":"ag_khbf9wpa76bx","handle":"iflow-mcp-yanjunz-mcp-search-images","url":"https://wellknown.network/agents/iflow-mcp-yanjunz-mcp-search-images","links":{"self":"https://wellknown.network/agents/iflow-mcp-yanjunz-mcp-search-images/record.json","html":"https://wellknown.network/agents/iflow-mcp-yanjunz-mcp-search-images","markdown":"https://wellknown.network/agents/iflow-mcp-yanjunz-mcp-search-images/record.md","api":"https://wellknown.network/api/v1/agents/iflow-mcp-yanjunz-mcp-search-images","status":"https://wellknown.network/api/v1/agents/iflow-mcp-yanjunz-mcp-search-images/status","claim":"https://wellknown.network/agents/iflow-mcp-yanjunz-mcp-search-images/claim","claimApi":"https://wellknown.network/api/v1/claims","claimDescriptor":"https://wellknown.network/agents/iflow-mcp-yanjunz-mcp-search-images/claim.json","badge":"https://wellknown.network/agents/iflow-mcp-yanjunz-mcp-search-images/badge.svg","openapi":"https://wellknown.network/openapi.json","history":"https://wellknown.network/api/v1/agents/iflow-mcp-yanjunz-mcp-search-images/history","tools":"https://wellknown.network/api/v1/agents/iflow-mcp-yanjunz-mcp-search-images/tools"},"ard":{"identifier":"urn:air::server:iflow-mcp-yanjunz-mcp-search-images","type":"application/mcp-server-card+json"},"kind":"mcp_server","declared":{"name":"iflow-mcp_yanjunz-mcp_search_images","summary":"A project for searching images in MCP","description":"# MCP 图像搜索与图标生成服务\n\n基于多个图片API的搜索服务和图标生成功能，专门设计用于与 Cursor MCP 服务集成。支持图片搜索、下载和AI生成图标。\n\n![MCP图像搜索工具示例](examples/mcp_search_example.png)\n\n## 工作原理\n\n本工具通过MCP (Model Control Protocol) 为Cursor IDE提供图像搜索和图标生成功能：\n\n1. **搜索图片**: 连接Unsplash、Pexels和Pixabay等图片源，根据关键词搜索高质量图片\n2. **下载图片**: 将搜索到的图片下载到指定位置，方便直接在项目中使用\n3. **生成图标**: 基于文本描述生成自定义图标，满足项目UI需求\n\n### 系统工作流程\n\n```\n用户 (在Cursor中) → 向Claude/大模型提问 → 大模型调用MCP工具 → 工具处理请求 → 返回结果 → 大模型展示结果\n```\n\n比如，你可以在Cursor中向Claude询问\"帮我找5张关于太空的图片\"，Claude会通过MCP工具搜索并展示图片，然后你可以进一步要求下载或生成特定图标。\n\n## 功能特点\n\n* 支持多个图片源搜索 (Unsplash, Pexels, Pixabay)\n* 高质量图标生成 (基于Together AI)\n* 简单易用的API\n* 完整的错误处理\n* 自定义保存路径和文件名\n* 可调整图片尺寸\n\n## 环境准备\n\n### 1. Python 环境\n\n* Python 3.10+\n* 下载地址： https://www.python.org/downloads/\n* 推荐使用 pyenv 管理 Python 版本：\n\n```bash\n# macOS 安装 pyenv\nbrew install pyenv\n\n# 安装 Python\npyenv install 3.13.2\npyenv global 3.13.2\n```\n\n### 2. uv 包管理工具\n\nuv 是一个快速的 Python 包管理器，需要先安装：\n\n```bash\n# macOS 安装 uv\nbrew install uv\n\n# 或者使用 pip 安装\npip install uv\n```\n\n### 3. 图片API密钥\n\n#### Unsplash API 密钥\n1. 访问 [Unsplash Developers](https://unsplash.com/developers)\n2. 注册/登录账号\n3. 创建新的应用程序\n4. 获取 Access Key\n\n#### Pexels API 密钥\n1. 访问 [Pexels API](https://www.pexels.com/api/)\n2. 注册/登录账号\n3. 请求API密钥\n\n#### Pixabay API 密钥\n1. 访问 [Pixabay API](https://pixabay.com/api/docs/)\n2. 注册/登录账号\n3. 获取API密钥\n\n#### Together AI API 密钥\n1. 访问 [Together AI API Keys](https://api.together.xyz/keys)\n2. 注册/登录账号\n3. 创建新的 API 密钥\n\n### 4. Cursor\n\n* 下载并安装 [Cursor IDE](https://cursor.sh/)\n* 确保 Cursor 已正确配置 Python 环境\n\n## 安装配置\n\n1. 克隆项目：\n\n```bash\ngit clone https://github.com/yanjunz/mcp_search_images.git\n```\n\n2. 安装依赖：\n\n```bash\npython3 -m pip install fastmcp requests\n```\n\n出现证书问题可以使用：\n\n```bash\npython3 -m pip install fastmcp requests --trusted-host pypi.org --trusted-host files.pythonhosted.org --upgrade --force-reinstall --no-cache-dir\n```\n\n3. 配置 API 密钥：\n\n从模板创建配置文件：\n\n```bash\n# 复制模板文件作为配置文件\ncp config.json.template config.json\n\n# 编辑配置文件，设置API密钥\nnano config.json  # 或使用其他编辑器\n```\n\n在 `config.json` 中修改以下配置：\n\n```json\n{\n    \"api\": {\n     …","publisher":null,"homepage":"https://example.com","repository":null,"version":"0.1.2","license":null,"protocols":["mcp"],"tags":["mcp"],"pricing":null,"endpoints":[{"url":"pypi:iflow-mcp_yanjunz-mcp_search_images","type":"package_pypi","auth":null,"probeable":false}],"skills":null,"tools":null,"extra":null,"attribution":{"kind":"pypi","name":"pypi","summary":"pypi","version":"pypi","description":"pypi","homepageUrl":"pypi"}},"derived":{"capabilities":[{"slug":"dev.version-control","name":"Version Control","confidence":0.745,"provenance":"derived"}],"categories":["dev"],"language":"en"},"observed":{"status":"unknown","statusReason":"Distributed as a package to run locally; no network endpoint to check.","lastOkAt":null,"lastProbedAt":null,"statusComputedAt":null,"reliability30d":null,"latestObservations":[],"tools":null,"package":{"name":"iflow-mcp_yanjunz-mcp_search_images","registry":"pypi","observedAt":"2026-09-15T20:21:40.546Z","publishedAt":"2026-02-06T21:05:00.787196Z","latestVersion":"0.1.2"},"toolSurface":null,"endpointFacts":[]},"verification":{"claimed":false,"claimedAt":null,"proofs":[]},"provenance":{"sources":[{"source":"pypi","key":"iflow-mcp_yanjunz-mcp_search_images","url":"https://pypi.org/project/iflow-mcp_yanjunz-mcp_search_images/","firstSeenAt":"2026-09-09T21:25:12.612Z","fetchedAt":"2026-09-15T20:20:56.018Z","normalizedAt":"2026-09-15T20:20:56.018Z"}]},"firstSeenAt":"2026-09-09T21:25:12.612Z","updatedAt":"2026-09-15T20:21:40.546Z"}