Skip to main content
Glama

pinterest-mcp

An MCP server that lets Claude (or any MCP client) search Pinterest and download images directly to your machine — no manual browsing, no manual saving.

It talks to Pinterest's own internal web API (the same requests your browser makes when you're logged in), authenticated with your personal session cookie. There's no official public Pinterest API for this, so this project reverse-engineers the internal one.

Features

  • Search and download — give a keyword, get N full-resolution images saved locally.

  • Board download — give a board link (pin.it short links work), get N images from it.

  • List boards — see a user's boards, with pin counts, without needing a direct link.

  • Board info — look up a board's name and pin count.

  • Dedup on re-run — re-fetching the same query or board skips images you already downloaded instead of re-fetching or leaving stale files behind.

  • Metadata sidecars — each image's title, description, and source link is saved to a matching .json file in a hidden .meta folder, so the image folder itself stays clean.

Related MCP server: Pinterest MCP Server

Requirements

  • Python 3.14+

  • uv

  • A Pinterest account, logged in via browser

Install

git clone https://github.com/Nuu-maan/pinterest-mcp.git
cd pinterest-mcp
uv sync

This runs as you, using your own logged-in session — it does not create or need a separate API key.

  1. Open pinterest.com in your browser and make sure you're logged in.

  2. Open DevTools (F12) → Network tab.

  3. Reload the page, click any request to pinterest.com.

  4. In the request headers, find Cookie: and copy the entire value.

Keep this value secret — it's equivalent to your login session.

Configure

Register the server with Claude Code:

claude mcp add pinterest --scope user \
  -e PINTEREST_COOKIE="<paste your cookie here>" \
  -e PINTEREST_DOMAIN="www.pinterest.com" \
  -- uv --directory /path/to/pinterest-mcp run server.py

PINTEREST_DOMAIN defaults to www.pinterest.com. If Pinterest redirects you to a country-specific domain when logged in (e.g. in.pinterest.com), use that instead.

Images are saved to ~/Pictures/pinterest-downloads/<name>/ by default, or a custom out_dir you pass to a tool.

Usage

Once configured, just ask:

  • "Search Pinterest for minimalist logo design, download 10"

  • "List my Pinterest boards"

  • "Fetch 5 pins from this board: https://pin.it/xxxxxxx"

Tools

Tool

Description

search_pinterest_images(query, count=20, out_dir=...)

Search and download images

get_pinterest_boards(username)

List a user's boards

get_pinterest_board_info(board_url)

Look up a board's name and pin count

fetch_pinterest_board(board_url, count, out_dir=...)

Download images from a board

Development

uv run -- python -m tests.test_pins
uv run -- python -m tests.test_downloader

Disclaimer

This uses Pinterest's internal, unofficial API, not a public developer API. It can break if Pinterest changes their endpoints, and heavy use may draw attention from their bot detection. Use it against your own account, at your own risk.

License

MIT — see LICENSE.

Contributing

See CONTRIBUTING.md.

Available Tools

4 tools
fetch_pinterest_boardB

Download up to count full-resolution images from a Pinterest board (accepts pin.it short links).

Inputs: count (required), board_url (required), out_dir.

get_pinterest_board_infoA

Look up a Pinterest board's name and total pin count from its URL (accepts pin.it short links).

Inputs: board_url (required).

get_pinterest_boardsA

List a Pinterest user's boards with url and pin count.

Inputs: username (required).

search_pinterest_imagesB

Search Pinterest for query and download up to count full-resolution images.

Inputs: query (required), count, out_dir.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool has a clear purpose: search images, list boards, get board info, and fetch board images. The slight overlap between search_pinterest_images and fetch_pinterest_board (both download images) is mitigated by their distinct sources (query vs. board). No two tools are truly confusing.

    Naming Consistency4/5

    All names follow a verb_noun pattern (search, get, fetch). However, there is a mix of 'get' and 'fetch' for similar actions, and 'get_pinterest_boards' vs 'get_pinterest_board_info' could be slightly more distinctive. Still, the pattern is consistent enough for an agent to predict behavior.

    Tool Count4/5

    Four tools is a reasonable scope for a Pinterest-focused server. It covers the core actions of searching and retrieving board content without being overly sparse or bloated. The count fits well within the typical 3-15 range.

    Completeness3/5

    The server covers browsing and downloading images from searches and boards, but lacks operations for pin-level details, user profiles, or any create/update/delete actions. For a read-only image-centric tool, it's decent, but there are noticeable gaps for a full Pinterest API surface.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Extracts images, gifs, videos, and search results from Pinterest without authentication. Supports search, pin details, board pins, related pins, autocomplete, and media downloads.
      6
      1
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables image search and information retrieval from Pinterest using the Model Context Protocol. Supports searching by keywords, getting similar pins, and downloading images directly.
      5
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to search public Pinterest pins, retrieve pin metadata and media URLs, and download matching images, GIFs, or videos into a local folder, with read-only tools and explicit confirmation for downloads.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI coding agents to search pins, inspect and preview images, find related pins, read public boards, and download full-resolution originals with no login, API key, or headless browser required.
      6
      2
      MIT