摘要
通过 MCP 将 Pinterest API 连接到 ChatGPT。使用 AnythingMCP 通过自然语言分析图钉、板块和广告表现。
使用 ChatGPT 分析你的 Pinterest
Pinterest 没有 MCP 连接器。使用 AnythingMCP,你可以将 Pinterest 的 REST API 转换为 MCP 服务器,让 ChatGPT 分析你的图钉、板块和受众洞察。
分步指南
第一步:部署 AnythingMCP
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
第二步:获取 Pinterest API 访问权限
在 https://developers.pinterest.com 创建一个应用。生成一个具有 boards:read、pins:read 和 user_accounts:read 范围的访问令牌。
第三步:创建 REST 连接器
创建一个基础 URL 为 https://api.pinterest.com/v5 的 REST 连接器。设置 Bearer 令牌身份验证。
第四步:暴露关键端点
GET /user_account— 你的个人资料GET /boards— 你的板块GET /boards/{board_id}/pins— 板块上的图钉GET /pins/{pin_id}— 图钉详情GET /user_account/analytics— 账户分析GET /pins/{pin_id}/analytics— 图钉分析
第五步:连接 ChatGPT
ChatGPT 从 OpenAI 的服务器发起连接,因此你的 AnythingMCP 实例需要公网 HTTPS URL,localhost 无法使用。也可以直接使用 cloud.anythingmcp.com。
- 前往 chatgpt.com/plugins,点击 Add,然后选择 Add custom MCP server。
- 填写名称,例如 Name:
AnythingMCP。 - 在 Connection 下的 Server URL 中填入
https://your-anythingmcp-instance.com/mcp,Authentication 保持为 OAuth。 - 选择 I understand and want to continue,然后点击 Create as a plugin。ChatGPT 提示时,登录 AnythingMCP 并允许访问。
- 在个人插件中安装这个新插件,然后在对话中输入 @ 并选择它。
第六步:获取洞察
- "这个月我的哪些图钉被保存最多?"
- "我最受欢迎的板块的参与趋势如何?"
- "我的图钉本周获得了多少次展示?"
- "哪个板块驱动了最多的外部点击?"
下一步
- 如何将 REST API 转换为 MCP
- 将 Instagram 连接到 ChatGPT
- 连接到 Claude
- 连接到 Cursor
- 连接到 Gemini
- 连接到 Meta Muse
- 连接到 Microsoft Copilot
这份指南对你有帮助吗?