Pexels

io.github.codeChap由 GitHub 账号 codeChap 发布v0.1.0更新于 Oct 24, 2026

MCP server for Pexels — search photos and videos, and browse collections

概览

AI 生成的概览

面向 Pexels 图库 API 的 MCP 服务器,让助手搜索照片和视频、按 ID 获取单个素材,并浏览精选合集。

可以做什么
  • 按关键词搜索照片,可按方向、尺寸、颜色和语言筛选,并按 ID 获取单张照片
  • 按关键词搜索视频,可按方向、尺寸和语言筛选,并按 ID 获取单个视频
  • 浏览精选照片列表和热门视频,可按尺寸与时长筛选
  • 列出精选合集,以及指定合集中的照片或视频
适用场景
适合让助手为项目、文章或设计寻找图库照片或视频素材,或在不离开对话的情况下查询 Pexels 素材详情与合集内容。
运行要求
以 stdio 方式在本机运行;README 说明用 Rust 编写,需用 cargo 编译出可执行文件并注册为 MCP 命令。需要 Pexels API 密钥,从 ~/.config/mcp-server-pexels/config.toml 配置文件读取。需要能访问 Pexels API 的网络。
安装前请注意
Pexels API 密钥以明文保存在本机 TOML 配置文件中,需注意保护该文件。搜索与查询内容会发送给第三方 Pexels API。所列工具仅用于读取和搜索素材,未描述写入或删除操作。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Pexels,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

mcp-server-pexels

An MCP (Model Context Protocol) server for the Pexels API. Built in Rust, exposes photo search, video search, and curated/featured content as MCP tools.

Communicates via stdio using JSON-RPC 2.0.

Tools

ToolDescription
search_photosSearch photos by query with optional orientation/size/color/locale filters
curated_photosGet a paginated list of curated, hand-picked photos
get_photoRetrieve a single photo by ID
search_videosSearch videos by query with optional orientation/size/locale filters
popular_videosGet popular videos with optional dimension and duration filters
get_videoRetrieve a single video by ID
featured_collectionsList featured collections (themed sets of media)
collection_mediaList media in a specific collection (filterable by photos/videos)

Prerequisites

Setup

bash
mkdir -p ~/.config/mcp-server-pexels

Create ~/.config/mcp-server-pexels/config.toml:

toml
api_key = "your-pexels-api-key"

Build

bash
cargo build --release

Produces target/release/mcp-server-pexels.

MCP configuration

json
{  "mcpServers": {    "pexels": {      "command": "/path/to/mcp-server-pexels"    }  }}

Project structure

src/  main.rs    - entry point, config loading, stdio transport  server.rs  - MCP tool definitions  api.rs     - Pexels HTTP client and response types  params.rs  - tool parameter types  config.rs  - TOML config loading

License

MIT

来源:README.md,提交 302a871

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。