
# claude-pinterest-plugin
MCP server and Claude plugin for searching Pinterest pins, reading pin metadata, and inspecting reference images without a Pinterest API key.
## Overview
Pinterest's official v5 API only exposes a user's own boards and pins and does not provide public search. This plugin queries Pinterest's public search endpoint using an anonymous session token, with a headless Edge/Chrome CDP fallback if an HTTP request is ever blocked.
Key properties:
- **Zero runtime dependencies**: Pre-bundled standalone `dist/server.cjs` (MCP server) and `skills/pinterest-research/scripts/pinterest.js` (CLI fallback). No `npm install` required after cloning or installing via `npx`.
- **Visual inspection**: `search_pins` can return up to 4 pin thumbnails as MCP image blocks (`include_images: true`), and the skill CLI supports `--download` to save thumbnails locally for inspection.
- **Cross-client support**: Works in Claude Desktop (Chat), Claude Code, and Claude Cowork.
## Requirements
- **Node.js** 18 or newer (`fetch` and `WebSocket` support; Node 22+ recommended).
- **Microsoft Edge** or **Google Chrome** (only required if the optional CDP fallback is triggered).
## Installation
### Claude Desktop
Add the `pinterest` server to your `claude_desktop_config.json`:
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
```json
{
"mcpServers": {
"pinterest": {
"command": "npx",
"args": ["-y", "github:Francesco4u/claude-pinterest-plugin"]
}
}
}
```
Fully quit Claude Desktop (from the system tray on Windows or menu bar on macOS) and reopen it.
### Claude Code
Install from the marketplace or load the repository directly:
```bash
claude --plugin-dir /path/to/claude-pinterest-plugin
```
Or inside Claude Code:
```text
/plugin marketplace add Francesco4u/claude-pinterest-plugin
```
### Claude Cowork (Plugins UI)
1. Open **Plugins -> Add marketplace**.
2. Enter `Francesco4u/claude-pinterest-plugin` and select **Sync**.
3. Install **pinterest-research**.
In environments where Cowork does not attach local `stdio` MCP servers, the bundled `pinterest-research` skill automatically falls back to `skills/pinterest-research/scripts/pinterest.js`.
## Tools
### `search_pins`
Searches Pinterest for pins matching a query.
| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `query` | `string` | required | Search keywords (for example, `"minimalist desk setup"`). |
| `limit` | `integer` | `15` | Number of pins to return (`1` to `50`). |
| `include_images` | `boolean` | `false` | Attach up to 4 pin thumbnails as MCP image blocks for visual analysis. |
Each returned pin object includes:
- `id`, `pin_url`
- `title`, `description`
- `image_url` (original resolution), `thumbnail_url`
- `width`, `height`, `dominant_color`
- `pinner`, `board`, `source_url`, `domain`
### `get_pin_details`
Fetches metadata for a specific pin URL or pin ID.
| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `pin` | `string` | required | Full Pinterest pin URL or pin ID. |
### `download_pin_image`
Downloads a Pinterest image (from `image_url` or `pin_url`) to a local file or directory so Claude can use it directly in a project.
| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `url` | `string` | required | Direct `image_url` or Pinterest pin URL. |
| `output_path` | `string` | required | Destination file path or directory path. |
## CLI Usage
The standalone script in `skills/pinterest-research/scripts/pinterest.js` can also be run directly:
```bash
# Search pins and print JSON
node skills/pinterest-research/scripts/pinterest.js search "brutalist web design" 10
# Search pins and download up to 6 thumbnails to a temporary folder
node skills/pinterest-research/scripts/pinterest.js search "brutalist web design" 10 --download
# Fetch metadata for a single pin
node skills/pinterest-research/scripts/pinterest.js pin "https://www.pinterest.com/pin/123456/"
# Download a full-resolution image to a target file or folder
node skills/pinterest-research/scripts/pinterest.js download "https://i.pinimg.com/originals/..." ./assets/reference.png
```
## Optional Environment Variables
| Variable | Description |
| --- | --- |
| `PINTEREST_COOKIE` | Raw `Cookie` header string from an authenticated Pinterest browser session, if you want personalized or login-gated metadata. |
| `BROWSER_EXECUTABLE_PATH` | Explicit path to a Chromium/Edge/Chrome binary for the CDP fallback. |
## Development
```bash
npm install
npm run build # Rebuilds dist/server.cjs and skills/pinterest-research/scripts/pinterest.js
npm test # Runs MCP stdio handshake, search_pins, and get_pin_details smoke tests
```
## Project Structure
```text
.
├── .claude-plugin/
│ ├── marketplace.json
│ └── plugin.json
├── .mcp.json
├── dist/
│ └── server.cjs
├── skills/
│ └── pinterest-research/
│ ├── SKILL.md
│ └── scripts/
│ └── pinterest.js
├── src/
│ ├── pinterest.js
│ ├── server.js
│ └── skill-cli.js
└── test/
└── smoke.js
```
TDQS
Scored across 2 tools
search_pins is keyword-based discovery, while get_pin_details fetches a single known pin by URL/ID; these are clearly distinct workflows with no overlap. An agent can trivially decide which to call based on whether it has a pin reference or a search query.
Both tools use a consistent snake_case verb_noun pattern (search_pins, get_pin_details). The minor plural/singular difference reflects the resource shape rather than a convention break.
Two tools is thin even for a narrow read-only Pinterest surface; a design-reference server could reasonably add board browsing, related pins, or pagination controls. The set is coherent but feels minimal rather than well-scoped.
Search plus detail covers the core lookup loop, but there is no way to browse boards, see related pins, or page through results, which are common follow-up needs for design research. Agents can work around this only partially.