Skip to main content
Glama

pinterest-mcp

Claude(または任意のMCPクライアント)がPinterestを検索し、画像を直接あなたのマシンにダウンロードできるようにするMCPサーバーです。手動でのブラウジングも手動保存も不要です。

これはPinterest独自の内部Web API(ログイン時にブラウザが行うのと同じリクエスト)と通信し、個人のセッションCookieで認証します。これに対する公式の公開Pinterest APIは存在しないため、このプロジェクトは内部APIをリバースエンジニアリングしています。

機能

  • 検索とダウンロード — キーワードを指定すると、N枚のフル解像度画像がローカルに保存されます。

  • ボードのダウンロード — ボードのリンク(pin.it ショートリンクも可)を指定すると、そこからN枚の画像を取得します。

  • ボード一覧 — 直接リンクなしで、ユーザーのボードとピン数を確認できます。

  • ボード情報 — ボードの名前とピン数を調べます。

  • 再実行時の重複排除 — 同じクエリやボードを再取得する際、既にダウンロードした画像はスキップされ、再取得や古いファイルの残置は行われません。

  • メタデータのサイドカー — 各画像のタイトル、説明、ソースリンクは、隠しフォルダ .meta 内の対応する .json ファイルに保存されるため、画像フォルダ自体はきれいなままです。

Related MCP server: pinterest-mcp

要件

  • Python 3.14+

  • uv

  • ブラウザでログインしたPinterestアカウント

インストール

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

Pinterestクッキーの取得

これはあなたとして、あなた自身のログインセッションを使用して実行されます。別途APIキーを作成したり必要としたりしません。

  1. pinterest.com をブラウザで開き、ログインしていることを確認します。

  2. DevTools(F12)を開き、Network タブを選択します。

  3. ページを再読み込みし、pinterest.com への任意のリクエストをクリックします。

  4. リクエストヘッダーで Cookie: を見つけ、その値全体をコピーします。

この値はログインセッションと同等なので、秘密にしてください。

設定

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 はデフォルトで www.pinterest.com です。ログイン時にPinterestが国別ドメイン(例:in.pinterest.com)にリダイレクトする場合は、そちらを使用してください。

画像はデフォルトで ~/Pictures/pinterest-downloads/<name>/ に保存されます。または、ツールに渡すカスタム out_dir に保存されます。

使い方

設定が完了したら、次のように依頼するだけです:

  • "Pinterestでミニマリストなロゴデザインを検索して、10枚ダウンロードして"

  • "私のPinterestボードを一覧表示して"

  • "このボードから5つのピンを取得して:https://pin.it/xxxxxxx"

ツール

Tool

Description

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

画像を検索してダウンロード

get_pinterest_boards(username)

ユーザーのボードを一覧表示

get_pinterest_board_info(board_url)

ボードの名前とピン数を調べる

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

ボードから画像をダウンロード

開発

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

免責事項

これはPinterestの内部の非公式APIを使用しており、公開開発者APIではありません。Pinterestがエンドポイントを変更すると動作しなくなる可能性があり、過度な使用はボット検出の対象になる可能性があります。自己責任で自分のアカウントに対して使用してください。

ライセンス

MIT — LICENSE を参照してください。

コントリビューション

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).

NameRequiredDescriptionDefault
countYes
out_dirNo/root/Pictures/pinterest-downloads
board_urlYes

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must fully disclose behavior. It mentions the count limit and that pin.it short links are accepted, but it does not describe side effects such as file writing to out_dir, overwrite behavior, failure modes, rate limits, or whether authentication is required. For a download tool, this is insufficient transparency—it appears to write files but does not explain what happens on existing files or errors.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the primary action and includes a useful parenthetical about short links. It avoids unnecessary words and is easy to scan. It loses a point because it could be slightly more organized with parameter mentions, but it is otherwise concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with three parameters, no annotations, no output schema, and 0% schema description coverage, the description is not complete enough. It covers the main purpose and two parameters partially, but leaves out behavioral details (e.g., what happens when files exist, error handling) and the out_dir parameter entirely. An agent would have to infer too much to use this tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It partially explains 'count' (up to count images) and 'board_url' (including short links), but it does not mention 'out_dir' at all. Given that out_dir is a parameter with a default, the description should at least state that it specifies the output directory. The explanation is incomplete, especially since only two of three parameters are addressed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's action (download), the resource (full-resolution images from a Pinterest board), and a key capability (accepting pin.it short links). It is distinct from sibling tools like search_pinterest_images, get_pinterest_boards, and get_pinterest_board_info, which focus on searching, listing, or fetching metadata rather than downloading image files.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The usage context is implied through the verb 'download' and the reference to 'images from a Pinterest board,' but there is no explicit statement of when to prefer this tool over alternatives or any exclusions. For example, it does not say 'Use this when you need to download images; use search_pinterest_images to find boards.' The guidance is indirect and relies on the user inferring from the purpose.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_pinterest_board_infoA

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

NameRequiredDescriptionDefault
board_urlYes

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses the core behavior (returns name and pin count) and that it accepts short links, which is useful. However, it does not explicitly state that this is read-only or describe any side effects, error handling, or authentication requirements. For a simple lookup, this is acceptable but not richly transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence that front-loads the primary purpose and returns the exact information. It includes a relevant note about short links without any fluff. Every word earns its place, and it is easily scannable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple single-parameter lookup tool with no output schema or annotations, the description covers the essential context: what it does, what input it expects, and what output it provides (name and pin count). It lacks details about error responses or whether authentication is needed, but the tool's simplicity means an agent likely has enough information to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema provides only a parameter named 'board_url' with a title 'Board Url' and no description (0% coverage). The description compensates by explaining that the parameter is a URL of a board and that pin.it short links are accepted, giving the agent concrete guidance on what value to provide. This adds significant meaning beyond the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's action ('look up') with a specific resource ('Pinterest board') and the exact output ('name and total pin count'). It also notes that it accepts pin.it short links, which adds specificity. This differentiates it from sibling tools like get_pinterest_boards (likely lists boards) and fetch_pinterest_board (likely fetches full board details) without needing to open schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use this tool (when you need just the name and total pin count of a board) but does not explicitly state alternatives or exclusions. It does not mention when to prefer get_pinterest_boards or fetch_pinterest_board. There is no clear 'use this instead of X' guidance, so it's adequate but not explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_pinterest_boardsA

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

NameRequiredDescriptionDefault
usernameYes

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It reveals that the tool returns board urls and pin counts, which implies a read-only listing operation. However, it does not explicitly state that it is read-only, nor does it mention authentication requirements, rate limits, or whether it returns all boards or has any limit. It adds value beyond the schema by specifying the output fields, but lacks depth on side effects or constraints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence with no wasted words. It front-loads the main purpose and the specific output fields. It is appropriately sized for a simple listing tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with one parameter and no output schema, the description provides enough to call it correctly: it states the input (user) and the key output (url and pin count). It could mention pagination or limits, but for a basic listing operation, this is nearly complete. It does not leave critical gaps that would prevent a correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema offers zero description coverage, so the description must compensate. It implicitly ties the 'username' parameter to the Pinterest user whose boards are listed, giving context. However, it does not elaborate on formatting, validation, or optional aspects. This is a minimal but functional clarification of the parameter's role.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action (list), the resource (Pinterest user's boards), and the specific data returned (url and pin count). It distinguishes itself from sibling tools like search_pinterest_images (search images) and get_pinterest_board_info (likely detailed info on a single board) by focusing on listing boards with basic metadata.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. The description does not mention prerequisites, exclusions, or a typical scenario where this tool is preferred over siblings like fetch_pinterest_board or get_pinterest_board_info. An agent must infer usage from the description alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_pinterest_imagesB

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

NameRequiredDescriptionDefault
countNo
queryYes
out_dirNo/root/Pictures/pinterest-downloads

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure. It reveals the tool downloads files (a side effect) and specifies 'full-resolution images,' but omits critical details such as whether it creates the output directory, handles overwrites, requires authentication, or returns any path information. This is minimal behavioral context for a tool with side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that wastes no words. It conveys the action, scope, and key parameter semantics immediately, with backticked placeholders for clarity. Adequately concise without sacrificing essential information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has 3 parameters, no output schema, and no annotations. The description covers the basic search-and-download action but fails to explain the output directory parameter, potential return values (e.g., local file paths), error-handling behavior, or any prerequisites. An agent would lack critical information needed to call this tool correctly and predict its side effects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It explicitly references `query` and `count` (clarifying count as a maximum), but completely ignores `out_dir`, which is a significant parameter controlling where downloads are saved. The schema itself provides defaults and titles, but the description adds little semantic value beyond that.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific verb combination ('Search' and 'download') with a specific resource (Pinterest images) and a quantifiable output (up to `count` full-resolution images). It distinctly differentiates from sibling tools like `get_pinterest_boards` and `fetch_pinterest_board`, which deal with board metadata rather than image search and download.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The purpose is unambiguous and naturally implies when to use it (searching for images), but the description does not explicitly state when not to use it or mention alternatives. The distinction from board-related siblings is implicit via the name and description, but no explicit routing guidance is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 4 tool updatesv0.1.0
    • First observedfetch_pinterest_board
    • First observedget_pinterest_board_info
    • First observedget_pinterest_boards
    • First observedsearch_pinterest_images

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.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to manage Pinterest boards and pins, create and update pins, and track analytics via the Pinterest API v5.
    8
    MIT
  • 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
    28 npm
    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
    150 npm
    MIT
  • F
    license
    Not graded
    quality
    C
    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.
    -