
一个用于将Pinterest API与AI代理和大型语言模型集成的模型上下文协议(MCP)服务器。
概览
一个用于将Pinterest API与AI代理和大型语言模型集成的模型上下文协议(MCP)服务器。 该MCP服务器允许AI代理以标准化方式与Pinterest API交互,支持以下功能: - 获取用户信息 - 管理Pinterest板块(列表、创建、查看)- 管理图钉(列表、创建、查看) - Node.js(v14或更新版本)- Pinterest 开发者账户 - Pinterest API 应用凭证 3. 从模板创建 .env 文件: 4. 用你的Pinterest API凭证编辑.env文件: 5. 在Pinterest开发者平台注册您的申请——添加http://localhost:3052/作为授权重定向URI 2. 如果不存在认证令牌,服务器会自动打开浏览器窗口进行认证。
概述(AI 翻译)
一个用于将Pinterest API与AI代理和大型语言模型集成的模型上下文协议(MCP)服务器。
概述
该MCP服务器允许AI代理以标准化方式与Pinterest API交互,支持以下功能:
- 检索用户信息
- 管理Pinterest板块(列表、创建、浏览)
- 管理图钉(列表、创建、查看)
先修条件
- Node.js(v14或更新版本)
- Pinterest 开发者账户
- Pinterest API 应用凭证
布置
-
克隆此仓库:
-
安装依赖:
-
从模板创建
.env文件: -
用你的Pinterest API凭证编辑
.env文件: -
在Pinterest开发者平台注册你的申请
- 添加
http://localhost:3052/作为授权重定向 URI
用途
-
启动MCP服务器:
-
如果不存在认证令牌,服务器会自动打开浏览器窗口进行认证。
-
认证成功后,MCP服务器将准备好接受来自AI代理的连接。
与人工智能代理连接
MCP 服务器在 Socket.IO 上实现 MCP 协议,并公开以下工具:
pinterest.user.get_info- 获取用户信息
本页由 AI 翻译,技术细节请以原文为准。
README
Pinterest MCP Server
A Model Context Protocol (MCP) server for integrating the Pinterest API with AI agents and LLMs.
Overview
This MCP server allows AI agents to interact with the Pinterest API in a standardized way, enabling functionalities like:
- Retrieving user information
- Managing Pinterest boards (listing, creating, viewing)
- Managing pins (listing, creating, viewing)
Prerequisites
- Node.js (v14 or newer)
- Pinterest Developer Account
- Pinterest API App credentials
Setup
- Clone this repository:
git clone https://github.com/yourusername/pinterest-mcp-server.git
cd pinterest-mcp-server
- Install dependencies:
npm install
- Create a
.envfile from the template:
cp .env.template .env
- Edit the
.envfile with your Pinterest API credentials:
PINTEREST_APP_ID=your_pinterest_app_id
PINTEREST_APP_SECRET=your_pinterest_app_secret
- Register your application on the Pinterest Developer Platform
- Add
http://localhost:3052/as an authorized redirect URI
- Add
Usage
- Start the MCP server:
npm start
-
If no authentication token exists, the server will automatically open a browser window for authentication.
-
After successful authentication, the MCP server will be ready to accept connections from AI agents.
Connecting with AI Agents
The MCP server implements the MCP protocol over Socket.IO and exposes the following tools:
pinterest.user.get_info- Get user informationpinterest.boards.list- List user’s boardspinterest.boards.create- Create a new boardpinterest.boards.get- Get board detailspinterest.pins.list- List pins on a boardpinterest.pins.create- Create a new pinpinterest.pins.get- Get pin details
You can connect your AI agents to this MCP server using compatible MCP client libraries.
Example (Claude.ai Desktop App)
- Make sure your MCP server is running
- Open Claude Desktop App
- Click on “Connect local tools” (bottom right)
- Enter
http://localhost:3052as the server URL - You can now ask Claude to perform Pinterest actions like:
- “List my Pinterest boards”
- “Create a new Pinterest board called ‘Vacation Ideas’”
- “Pin this image to my Travel board”
License
MIT
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →