一个用于Pinterest图片搜索和信息检索的Model Context Protocol (MCP) 服务器,能让你轻松在Pinterest上进行图片搜索与信息获取,还可与Cursor IDE无缝集成。
Pinterest MCP服务器可助力你在Pinterest上开展图片搜索与信息检索工作。下面为你介绍使用前的准备工作。
要通过Smithery为Claude Desktop自动安装mcp - pinterest,可执行以下命令:
npx -y @smithery/cli install mcp-pinterest --client claude
git clone https://github.com/terryso/mcp-pinterest.git pinterest-mcp-server
cd pinterest-mcp-server
npm install
构建服务器:
npm run build
现在,您可以在Cursor中将此服务器作为MCP服务器使用。
PinterestNode.jspinterest-mcp-server/dist)。# 搜索关键词为 "flowers" 的图片,默认返回20条结果
pinterest_search keyword=flowers
# 获取指定图片URL的详细信息
pinterest_get_image_info url=https://example.com/pinterest-image.jpg
# 搜索关键词为 "animals" 的图片并下载到默认目录
pinterest_search_and_download keyword=animals
# 搜索关键词为 "cars" 的图片,返回10条结果
pinterest_search keyword=cars limit=10
# 搜索关键词为 "nature" 的图片并下载到指定目录
pinterest_search_and_download keyword=nature download_dir=./my-downloads
keyword:要搜索的关键词(必填)。limit (可选):返回的结果数量,默认为20。url:图片的完整URL(必填)。keyword:要搜索的关键词(必填)。download_dir (可选):下载文件夹路径,默认为./downloads。该服务器基于Node.js构建,通过MCP协议与Cursor IDE集成。它利用无头浏览器模式来模拟用户在Pinterest上的操作,支持对搜索结果数量的控制,确保能高效准确地进行图片搜索和信息检索。
文档未提及许可证相关信息,故此处不展示。
请勿在调用下载相关工具时通过参数指定下载路径,所有下载文件将保存到环境变量或默认目录中。