使用说明
图像搜索MCP服务器
使用DuckDuckGo提供图像搜索功能的模型上下文协议(MCP)服务器。
特性
- 使用DuckDuckGo的图像搜索功能搜索图像
- 返回图像URL、缩略图、标题、尺寸和源信息
- 轻松集成Claude Desktop和其他MCP客户端
安装
npm install
npm run build
使用Claude Desktop
将此添加到您的Claude Desktop配置文件中:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
视窗: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"image-search": {
"command": "node",
"args": ["/absolute/path/to/image-search-mcp/dist/index.js"]
}
}
}
可用工具
搜索图片
使用DuckDuckGo搜索图像。
参数:
query(string,必填):查找图像的搜索查询max_results(number,可选):返回的最大结果数(默认值:10,最大值:50)
例子:
{
"query": "sunset landscape",
"max_results": 5
}
退货:
[
{
"title": "Beautiful Sunset",
"url": "https://example.com/image.jpg",
"thumbnail": "https://example.com/thumb.jpg",
"width": 1920,
"height": 1080,
"source": "https://example.com"
}
]
发展
# Watch mode for development
npm run watch
# Build
npm run build
# Run directly
npm run dev
许可证
麻省理工学院
