MCP.so
登录

Pexafy Stock Photos MCP Server已验证已精选

@Pexafy

基本信息

传输方式

Streamable HTTP

认证方式

OAuth

分类

媒体与设计

作者

Pexafy

提交者

Marouane TIJANI

关于 Pexafy Stock Photos MCP Server

Search millions of free-to-use photos from Unsplash, Pexels, Pixabay and more in one query. Describe the scene in any language, get real photos with licence and credit line. Hosted, no API key.

#photos#images#stock-photos#free-photos#image-search#semantic-search#unsplash#pexels#pixabay#search photos#search images

连接信息

https://mcp.pexafy.com/mcp

接入方式

claude mcp add pexafy --transport http https://mcp.pexafy.com/mcp

Pexafy Stock Photos MCP Server 工具

5

Use this when the user asks for a real photograph, or states a need that a photograph fills, and the picture is not already in the conversation. Call it when they ask outright: “find me photos of…”, “show me images of…”, “I need a picture of…”, “do you have a photo of…”, “where can I find free photos of…”, in any language. Call it when they describe the need without asking to search: “I'm writing an article and need a header image”, “my landing page needs a hero image”, “I need something to illustrate this”. Call it when they ask for something meant to carry photographs: “write an article with pictures”, “a deck with images”. Call it when they name only the picture, with no reason given: “a photo of a white mug”, “a train in Japan”. If the user is working on something that usually carries photographs — an article, a page, a deck, a post — without asking for any, you may offer to look for some; call it only once they accept. This covers requests for photographs for articles, blog posts, websites, landing pages, products, slides, documents, reports, social posts, ads, newsletters, banners, thumbnails, covers, posters, backgrounds, wallpapers and mood boards; photographs that illustrate a concept, explain a subject or accompany a piece of writing; and any request for free, stock, royalty-free, commercially usable, real or documentary photographs. A request for a visual is not always a request for a photograph: this tool finds photographs that already exist — not illustrations, drawings, logos, icons, diagrams or screenshots — and it does not generate, edit or upscale an image, nor look for a named person. It searches Pexafy's own index of millions of free-to-use photographs from stock libraries such as Unsplash, Pexels and Pixabay, matched to the scene described. Each result carries a `rank`, a `photo_id`, its licence, the credit line to display and an image link; the file itself comes from get_photo_file_by_photo_id. In a host that renders it, the grid shows them; the answer omits image links.

Use this when the user wants photographs that look like a picture, rather than ones described in words: a picture they link to, one the host passes to the tool as a file, or a Pexafy photo already found or liked in the grid. Call it for “find images like this”, “something similar to this photo”, “find a free alternative to this image”, “I need this but royalty-free”, “photos in this style”, “more like the second one”, whether or not they say “search by image”. Give exactly one reference: `photo_id` for a Pexafy photo from an earlier result or liked in the grid; `image_url` for a picture at a public URL, such as a link the user pasted; `image_file` when the host passes the user's uploaded image to the tool; `image_base64` for image bytes a client already holds. Sending two is refused. A picture that is only visible in the conversation — not linked, not passed to the tool — is not a reference this tool can receive; its scene can be searched in words with `search_photos`. Words are optional, in `english_search_sentence`: with a `photo_id`, the words that photograph was found under; with an image, only what the user wants changed or kept (“like this but at night”). It finds free stock photographs in Pexafy's index that visually match the reference. The reference image is sent to Pexafy only to run the search; it is not stored. Each result carries a `rank`, a `photo_id`, its licence, the credit line to display and an image link. In a host that renders it, the grid shows them; the answer omits image links.

Returns one photograph from an earlier Pexafy result as an image file, identified by its `photo_id`. A result's link points to the image; this tool returns the image itself, so the person does not need to send the photograph again. Use it when the user wants a photograph found here as a file: to place it in a document, a slide or a post, to attach, send or download it, or to have it cropped, captioned or otherwise edited with the host's own tools. It is for a photograph the person picked: where the Pexafy grid is shown, the photographs of a search are already on screen and need no file to be seen. The answer contains the photograph, at most 1280 pixels wide, and a line giving its file name, size, licence, source, `photo_id`, page at the source and the credit line to display. One photo per call; the file stays in the conversation afterwards. This server does not edit images: what can be done to the file next depends on the host's own tools. Its licence and credit line apply to this photograph only.

Returns the photographs the person liked (hearted) in the Pexafy results grid. Use it when the person refers to that selection rather than asking for new photos — for example “the images I selected”, “the ones I chose”, “my selection”, “the photos I hearted”, “the photos I liked”, “use the ones I picked”, “put my selection in the document”, “download the ones I chose”, or “write the article around my photos”. The selection is held by the grid and the server, not by the conversation: this tool is how it is read, and search results are not the selection. It takes no arguments and returns every liked photograph with its rank, photo_id, photographer, source library, licence, pixel size, orientation, description, page URL and credit line, and `selection_count`, the number of them. To get one of them as an image file, pass its photo_id to get_photo_file_by_photo_id. `rank` is the person's order, #1 first: the order the photos were liked in, unless the person rearranged them by dragging in the grid. Where the grid is rendered, that number is drawn on each liked photograph, so it is the number the person sees and names them by (“#2”). The `rank` of a search result is only its position in that answer and is not drawn on the grid. An empty selection means nothing is liked in the grid currently on screen; a photograph is liked with the heart on it. A selection expires an hour after its last change, and a new search replaces the grid it belongs to.

Asks the host to offer its own flow for connecting a Pexafy account, when none is attached. Use it when the person asks to connect, link or sign in to a Pexafy account — including from the account button in the Pexafy grid — or wants more searches than the daily allowance available without an account. When no account is attached, it returns an error result that carries an account-connection request for the host: the error is how that request is delivered, not a failure. A host that supports it shows its own account-connection prompt, which the person completes or dismisses; other hosts show only the result's text. Calling it again returns the same request. When an account is already attached, it says so and starts nothing. It does not search, and searching does not require calling it. `check_only` is set by the Pexafy grid to read the state without opening a prompt; leave it unset when the person wants to connect or sign in.

概览

什么是 Pexafy Stock Photos MCP Server?

Pexafy Stock Photos MCP Server 是一个托管的 MCP 服务器,让 Claude、ChatGPT、Cursor、VS Code 等助手一次搜索来自 Unsplash、Pexels、Pixabay 等图库的数百万张可免费使用的照片,并返回附带许可和署名信息的真实照片。

Pexafy 搜索的是它自己的照片索引,这些照片收集自免费图库(据官网介绍共有九个免费许可来源),并按语义而非标签建立索引。你可以用任意语言用一句话描述场景,得到匹配的照片。在 ChatGPT、Claude、VS Code 和 Cursor 中,结果会以网格形式显示在对话里;在终端和代理中,每条结果以链接形式返回。服务器代码在 GitHub 上以 MIT 许可证开源。

如何使用 Pexafy Stock Photos MCP Server?

所有客户端使用同一个服务器 URL:https://mcp.pexafy.com/mcp,无需安装任何东西。在 Claude 和 ChatGPT 中,你只需在浏览器窗口中登录一次 Pexafy(OAuth;免费账户即可)。编辑器和编码代理无需账户即可立即搜索,但有每日额度限制;如需使用自己的账户和套餐额度,可以连接账户,或以 Bearer token 形式发送 MCP 类型的 Pexafy API key。

Claude Code

claude mcp add --transport http pexafy https://mcp.pexafy.com/mcp

如需使用你的 Pexafy key(在 Pexafy 后台创建 MCP 类型的 key):

claude mcp add --transport http pexafy https://mcp.pexafy.com/mcp \
  --header "Authorization: Bearer YOUR_MCP_KEY"

用 claude mcp list 确认。还可以选择添加 Pexafy 技能,告诉代理何时以及如何使用这些工具:

npx skills add Pexafy/pexafy-mcp --skill find-stock-photos

Claude Desktop / claude.ai

打开 Customize → Connectors,点击 +,然后选择 Add custom connector。粘贴 https://mcp.pexafy.com/mcp,点击 Add,并在 Claude 打开的窗口中登录你的 Pexafy 账户。Pexafy 将 Claude 支持标注为预览版。

Cursor

在项目中创建 .cursor/mcp.json(或 ~/.cursor/mcp.json):

{
  "mcpServers": {
    "pexafy": {
      "url": "https://mcp.pexafy.com/mcp"
    }
  }
}

如果要使用你的 key,Pexafy 文档给出了带 "headers": {"Authorization": "Bearer YOUR_MCP_KEY"} 字段的同样配置。

VS Code

运行 MCP: Add Server,或使用 README 中的单行命令:

code --add-mcp '{"name":"pexafy","type":"http","url":"https://mcp.pexafy.com/mcp"}'

然后在 Agent 模式下打开 Chat,在工具列表中选择 Pexafy。

其他客户端

ChatGPT 用户可以从插件目录添加 Pexafy。Codex 使用 codex mcp add pexafy --url https://mcp.pexafy.com/mcp。

Pexafy Stock Photos MCP Server 的主要功能

  • 一次搜索即可覆盖 Unsplash、Pexels、Pixabay 及其他免费许可图库的照片。
  • 语义搜索:用一整句话描述场景、氛围或光线,效果优于关键词,支持任意语言。
  • 以图搜图:根据链接、上传的图片或之前的结果查找相似照片,还可以用文字调整(“like this, but at night”)。
  • 每条结果都注明来源和许可,并附带需要展示的署名信息。
  • 在支持的客户端中显示内嵌网格:每次请求返回十六张照片,提供喜欢、相似和下载操作;你选中的照片会按你选择的顺序交回给助手。
  • 照片可以以图片文件形式返回(最大宽度 1280 px),用于文档、幻灯片或帖子。
  • 全部五个工具均为只读;连接器无法写入你的账户。

Pexafy Stock Photos MCP Server 工具

  • 搜索: search_photos 根据一句话描述查找照片,可限定横向、纵向或方形。search_photos_by_image 查找与参考图片或之前的 Pexafy 结果相似的照片。
  • 文件与选择: get_photo_file_by_photo_id 把之前结果中的一张照片作为图片文件返回,并附带署名信息。get_grid_selected_photos 按你的顺序返回你在结果网格中点了心的照片。
  • 账户: connect_account 请求宿主启动账户连接流程,适用于你需要超出无账户额度的搜索次数时。

Pexafy Stock Photos MCP Server 的使用场景

  • 博客配图:“I'm writing a short article about Kyoto in autumn. Find photos of a temple garden with red maple leaves.”
  • 落地页:“My landing page needs a hero image of a small team working in a bright office”,然后把选中的文件放进你的 HTML。
  • 风格统一的组图:选中一张照片,要求“more like the second one”,为演示文稿构建风格一致的一组图片。
  • 编码代理:让 Claude Code 获取照片文件,保存到你的仓库,并写好带署名的 Markdown。

Pexafy Stock Photos MCP Server 常见问题排查

  • Claude Code 项目文件被拒绝: 在 .mcp.json 中,只有 url 而没有 "type": "http" 的条目会被拒绝;请补上 type。
  • 无账户时达到搜索上限: 调用 connect_account 或让代理连接你的 Pexafy 账户,或以 Bearer header 添加 MCP 类型的 key。
  • 没有出现网格: 网格只会在能绘制 MCP UI 的客户端(ChatGPT、Claude、VS Code、Cursor)中显示,其他客户端收到的是链接。
  • Cursor 中看不到 Pexafy: 编辑 mcp.json 后重新打开 Cursor,并在侧边栏的 Customize 中查看。

常见问题

1

Pexafy Stock Photos MCP 免费吗?

是的。无需账户即可在每日额度内搜索,在 Claude 和 ChatGPT 中连接时免费 Pexafy 账户就足够。连接账户或 key 后将使用你自己套餐的额度。

2

需要 API key 吗?

不需要。Claude 和 ChatGPT 使用 OAuth 登录,编辑器无需账户即可搜索。对于无法登录的 CLI 和编辑器配置,MCP 类型的 API key 是可选项。

3

照片来自哪里?可以使用吗?

来自 Pexafy 自己的可免费使用照片索引,这些照片收集自 Unsplash、Pexels、Pixabay 等图库。每条结果都注明来源和许可,并包含需要展示的署名信息。

4

它支持 Claude Code 和 Cursor 吗?

支持。Claude Code 使用 `claude mcp add --transport http pexafy https://mcp.pexafy.com/mcp`,Cursor 在 `mcp.json` 中使用 `url` 条目。

5

连接器会修改我账户中的内容吗?

不会。全部五个工具都是只读的。

6

可以自托管吗?

服务器代码在 GitHub 上以 MIT 许可证开源,仓库中提供了自托管的开发指南。

7

Pexafy Stock Photos 远程 MCP 服务器是什么?

Pexafy Stock Photos 的远程 MCP 服务器是一个托管的 Model Context Protocol 端点,地址是 https://mcp.pexafy.com/mcp,AI 助手无需在本地安装或运行任何东西即可连接。

8

怎么连接 Pexafy Stock Photos 的 MCP 服务器?

把端点 https://mcp.pexafy.com/mcp 添加到任意支持 MCP 的客户端,比如 Claude Code、Cursor 或 VS Code。本页的接入代码块可以一步配置好每个客户端。

9

Pexafy Stock Photos 的 MCP 服务器需要认证吗?

需要。Pexafy Stock Photos 使用 OAuth——第一次连接时,你的 MCP 客户端会打开浏览器窗口登录并授权,之后会复用这个凭证。

10

Pexafy Stock Photos 的 MCP 服务器用的是哪种传输方式?

Pexafy Stock Photos 暴露的是 Streamable HTTP 端点,这是远程 MCP 服务器普遍使用、主流客户端都支持的传输方式。

评论