remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Allows searching for images on Pinterest by keywords and retrieving detailed information about Pinterest images
Pinterest MCP 服务器
用于 Pinterest 图像搜索和信息检索的模型上下文协议 (MCP) 服务器。
特征
- 通过关键词在 Pinterest 上搜索图片
- 检索有关 Pinterest 图片的详细信息
- 通过 MCP 与 Cursor IDE 无缝集成
- 支持无头浏览器模式
- 搜索结果的限制控制
先决条件
- Node.js (v18 或更高版本)
- 用于 MCP 集成的Cursor IDE
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 mcp-pinterest:
Copy
手动的
- 克隆此存储库:Copy
- 安装依赖项:Copy
用法
命令模式(推荐)
构建服务器:
Copy
您现在可以将此服务器用作 Cursor 中的 MCP 服务器。
在 Cursor 中配置为 MCP 服务器
- 打开游标 IDE
- 前往“设置”(⚙️) > 扩展程序 > MCP
- 点击“添加服务器”
- 输入以下详细信息:
- 名称:Pinterest MCP
- 类型:命令
- 命令:
node
- 参数:
["/path/to/mcp-pinterest/dist/pinterest-mcp-server.js"]
或者直接编辑Cursor的MCP配置文件(通常位于
~/.cursor/mcp.json
),添加以下内容:Copy - 点击“保存”
可用的 MCP 功能
服务器公开以下 MCP 功能:
pinterest_search
:按关键字在 Pinterest 上搜索图片- 参数:
keyword
:搜索词(必填)limit
:返回的图像数量(默认值:10)headless
:是否使用无头浏览器模式(默认值:true)
- 参数:
pinterest_get_image_info
:获取有关 Pinterest 图片的详细信息- 参数:
image_url
:Pinterest 图片的 URL(必需)
- 参数:
游标中的使用示例
配置完成后,您可以直接在 Cursor 的 AI 聊天中使用 Pinterest MCP 功能:
Copy
AI 将使用 MCP 服务器搜索 Pinterest 并显示结果。
示例截图
屏幕截图显示搜索了 20 张《三上悠亚》的图片,并且所有图片均已成功下载。
发展
项目结构
pinterest-mcp-server.ts
:主服务器文件dist/pinterest-mcp-server.js
:为生产环境构建的 JavaScript 文件package.json
:项目配置和依赖项
添加新功能
要添加新的 MCP 功能:
- 修改
pinterest-mcp-server.ts
- 使用 MCP SDK 注册新功能
- 实现函数逻辑
- 使用
npm run build
重建
故障排除
- 如果服务器启动失败,请检查端口是否已被使用
- 确保使用
npm install
正确安装了所有依赖项 - 确保使用
tsconfig.json
文件正确配置了 TypeScript - 如果遇到构建错误,请尝试运行
npm install -D typescript @types/node
- 验证 Pinterest 访问的网络连接
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
This server cannot be installed
用于图像搜索和信息检索的 Pinterest 模型上下文协议 (MCP) 服务器
- Features
- Prerequisites
- Installation
- Usage
- Configuring as MCP Server in Cursor
- Available MCP Functions
- Example Usage in Cursor
- Development
- Troubleshooting
- License