A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

Pexels MCP server for AI agents
An MCP server that exposes the Pexels API for stock photos, videos, and curated collections as tools callable from compatible AI clients.
WHAT IT DOES
- •Provides nine Pexels tools covering photo search, video search, and collections.
- •Photo search supports orientation, size, color, and locale filters, and can fetch the curated feed or a single photo by id.
- •Video tools allow searching videos with filters, fetching popular videos with constraints, and retrieving a video by id.
- •Every tool response includes a rate-limit object so the agent can self-throttle.
BEST FOR
- •Illustrating slide decks and documents with royalty-free photos pulled into an agent's workflow.
- •Sourcing thumbnail and background video options for blog posts, social media, and video editing.
- •Generating placeholder imagery in coding agents and pulling curated collections into context.
ABOUT MCP-PEXELS
Pexels MCP server for AI agents is cataloged as an MCP server attributed to developer-ishan. An MCP server that exposes the Pexels API for stock photos, videos, and curated collections as tools callable from compatible AI clients. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
HOW TO INSTALL
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
LICENSE
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力检查器
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
Tools (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Resources (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Prompts (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Newsletter subscriptions are not open yet
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Community Reviews
Reviews for Pexels MCP server for AI agents are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
FREQUENTLY ASKED QUESTIONS
Does mcp-pexels work offline?
No. The server is a thin wrapper over the Pexels HTTPS API and requires network access.
Is there a hosted version?
No; it is run locally, since Pexels API keys are per-user.
How does the server handle rate limiting?
Every response includes a rate-limit object, and a 429 from Pexels surfaces as a PexelsApiError.
上游原版 README
README.md · 218c9a891f6f · 采集于 2026-11-13 12:16:05 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
mcp-pexels — Pexels MCP server for Claude, Cursor, and other AI agents
A Model Context Protocol server that exposes the Pexels API — free stock photos, videos, and curated collections — as MCP tools that any compatible AI client (Claude Desktop, Claude Code, Cursor, Cline, Continue, etc.) can call directly from a chat.
📦 npm: mcp-pexels · 🏷 Latest release: v1.0.0 · 💻 Source: developer-ishan/mcp-pexels
Photos & videos provided by Pexels.
Drop-in config
{
"mcpServers": {
"pexels": {
"command": "npx",
"args": ["-y", "mcp-pexels"],
"env": { "PEXELS_API_KEY": "your_key_here" }
}
}
}
Paste into your MCP client's config, restart, and the nine pexels_* tools are live. Get a free key at https://www.pexels.com/api/.
Table of contents
- What can you build with this?
- Capabilities — nine tools
- Connect to your MCP client
- Example prompts
- How it compares
- FAQ
- Requirements
- Development
- Releasing
- Contributing
- Attribution & License
What can you build with this?
Once mcp-pexels is connected to an AI client, the agent can pull royalty-free photos and videos straight into its workflow. A few concrete uses:
- Slide-deck and document illustration — "Find me a landscape photo of mountains at sunset for slide 3" → the agent searches Pexels, picks one, and embeds it.
- Blog post / social media drafting — "Suggest three thumbnail options for an article about remote work" → returns three Pexels URLs with photographer credit.
- Background research for video editing — "Show me popular drone footage under 30 seconds in 4K" → uses
pexels_popular_videoswith size and duration filters. - Mood boards — "Build me a mood board of warm-toned coffee shop photos" → searches with
color: "orange". - Coding agents — generate CSS/HTML with realistic placeholder imagery instead of
lorem-pixelboxes. - Curated collections — pull a specific Pexels collection (e.g. company-owned shots tagged on Pexels) into the agent's context.
Because every response includes a _rateLimit object, the agent can self-throttle and respect the Pexels free-tier quota (200 req/hour, 20 000/month).
Capabilities — nine tools
| Domain | Tool | What it does |
|---|---|---|
| Photos | pexels_search_photos | Search photos by query with orientation / size / color / locale filters. |
| Photos | pexels_curated_photos | Fetch the Pexels team's real-time curated photo feed. |
| Photos | pexels_get_photo | Retrieve a single photo by its numeric id. |
| Videos | pexels_search_videos | Search videos by query with orientation / size / locale filters. |
| Videos | pexels_popular_videos | Fetch popular videos with optional width / height / duration constraints. |
| Videos | pexels_get_video | Retrieve a single video by its numeric id. |
| Collections | pexels_featured_collections | List Pexels featured collections. |
| Collections | pexels_my_collections | List the authenticated user's own collections. |
| Collections | pexels_collection_media | Retrieve the photos and videos inside a specific collection. |
Each tool response is the raw Pexels JSON merged with a top-level _rateLimit field exposing limit, remaining, and reset (UNIX timestamp).
See docs/tools/ for per-tool parameter tables and example payloads.
Connect to your MCP client
All paths below use npx -y mcp-pexels — no global install required. Replace your_key_here with a real Pexels API key.
Claude Desktop
Option 1 — one-click .mcpb install (recommended). Download the latest mcp-pexels-*.mcpb from the Releases page, double-click the file, paste your Pexels API key when Claude Desktop prompts, and click Install.
Option 2 — manual JSON config. Edit claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"pexels": {
"command": "npx",
"args": ["-y", "mcp-pexels"],
"env": { "PEXELS_API_KEY": "your_key_here" }
}
}
}
Restart Claude Desktop.
Claude Code
claude mcp add pexels -e PEXELS_API_KEY=your_key_here -- npx -y mcp-pexels
Or edit ~/.claude.json directly and add the same mcpServers block as above.
Cursor
Edit ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project):
{
"mcpServers": {
"pexels": {
"command": "npx",
"args": ["-y", "mcp-pexels"],
"env": { "PEXELS_API_KEY": "your_key_here" }
}
}
}
Cline (VS Code)
Open the Cline extension settings → MCP Servers → Edit Settings. Add:
{
"mcpServers": {
"pexels": {
"command": "npx",
"args": ["-y", "mcp-pexels"],
"env": { "PEXELS_API_KEY": "your_key_here" }
}
}
}
Continue.dev
In ~/.continue/config.json:
{
"experimental": {
"modelContextProtocolServers": [
{
"transport": {
"type": "stdio",
"command": "npx",
"args": ["-y", "mcp-pexels"],
"env": { "PEXELS_API_KEY": "your_key_here" }
}
}
]
}
}
Generic / other clients
If your client supports stdio MCP servers it just needs command, args, and env. Use the same shape as Cursor / Claude Desktop above. For inspector / debugging:
export PEXELS_API_KEY=your_key_here
npx -y @modelcontextprotocol/inspector npx -y mcp-pexels
This opens a browser UI where you can call each tool interactively.
Example prompts
Once connected, try prompts like:
- "Find me five landscape photos of mountains at golden hour. Make sure they're at least full HD."
- "Get me popular Pexels videos shorter than 15 seconds, 1080p or higher, of city traffic."
- "Pull photo id 2014422 and tell me the photographer."
- "List the featured Pexels collections — I want one I can browse for cooking photos."
- "Search videos of 'forest' in portrait orientation; pick the highest-quality HD file for me."
- "Show me Pexels photos with predominantly orange tones suitable for a fall-themed newsletter header."
The agent will pick the appropriate tool, send the right parameters, and include photographer/videographer credit as part of its answer.
How it compares
| mcp-pexels | Raw Pexels REST API | Image-only general MCP servers | |
|---|---|---|---|
| Photos | ✅ | ✅ | varies |
| Videos | ✅ | ✅ | usually ❌ |
| Collections | ✅ | ✅ | ❌ |
| Rate-limit headers exposed to agent | ✅ | ❌ (raw headers, agent must parse) | ❌ |
| Zod-validated input | ✅ | ❌ | varies |
npx-installable, zero config | ✅ | ❌ | varies |
| Type-safe TS source | ✅ | n/a | varies |
| MIT-licensed | ✅ | n/a | varies |
If you only need photos and you already have a generic image MCP server wired up, that may be enough. If you want first-class video and collection support with rate-limit awareness, this is purpose-built for it.
FAQ
How do I get a Pexels API key?
Sign up at https://www.pexels.com/api/ — keys are issued instantly and the free tier allows 200 requests/hour and 20 000 requests/month.
Does this cost anything?
No. The Pexels API is free, the npm package is free (MIT), and mcp-pexels itself does not call any paid service.
Will this work offline?
No — the server is a thin wrapper over the Pexels HTTPS API and requires network access.
Can I use Pexels content commercially?
Yes, per the Pexels license, but you must attribute the platform and (when possible) the photographer. See Attribution.
Does it work with Claude.ai (browser)?
Claude.ai's web product doesn't yet support stdio MCP servers — only Claude Desktop, Claude Code, and the API do. Anthropic is rolling out browser MCP support, so this should change.
Is there a hosted / SaaS version?
No. Run it locally via npx. Because Pexels API keys are per-user, hosting a shared instance doesn't make sense.
How do I update to a newer version?
npx always fetches the latest published version. If you've installed globally, run npm update -g mcp-pexels.
Can I add more Pexels endpoints?
The Pexels API surface is fully implemented (9/9 endpoints as of Pexels API v1). New endpoints will be added via PR — see Contributing.
Does it work with @modelcontextprotocol/inspector?
Yes:
export PEXELS_API_KEY=your_key_here
npx -y @modelcontextprotocol/inspector npx -y mcp-pexels
How is rate limiting handled?
Every tool response includes a _rateLimit object with limit, remaining, and reset (UNIX timestamp). The agent can read this and self-throttle. If Pexels returns 429, the server surfaces it as a PexelsApiError so the agent sees the failure.
Where does my API key go?
It is read from the PEXELS_API_KEY env var on the local process. It never leaves your machine except in Authorization headers to api.pexels.com. Nothing is logged.
Requirements
- Node.js ≥ 20 (uses native
fetchand--env-file) - A free Pexels API key — request one here
Development
git clone https://github.com/developer-ishan/mcp-pexels.git
cd mcp-pexels
npm install
echo "PEXELS_API_KEY=your_key_here" > .env
npm test # 42 mocked vitest cases, no network
npm run build # tsc → dist/
npm run dev # tsx watch
npm run test:watch # vitest in watch mode
npm start # node --env-file=.env dist/index.js
Project layout
src/
├── index.ts # MCP server entrypoint (stdio)
├── http/
│ ├── client.ts # PexelsClient (injectable fetch for tests)
│ └── types.ts # PexelsApiError, RateLimit, PexelsResponse
├── tools/
│ ├── index.ts # composes the three domain factories
│ ├── photos.ts # 3 photo tools
│ ├── videos.ts # 3 video tools
│ └── collections.ts # 3 collection tools
└── types/
├── tool.ts # defineTool helper + ToolDefinition
├── photos.ts
├── videos.ts
└── collections.ts
tests/
├── helpers/mockClient.ts # makeMockClient() — fake fetch via vitest mocks
├── photos.test.ts # 17 cases
├── videos.test.ts # 13 cases
└── collections.test.ts # 12 cases
Testing approach
Tests construct a PexelsClient with a vi.fn() fetchImpl returned by makeMockClient(responses). No real HTTP is performed. Each tool is exercised for:
- Happy path — URL serialization and
Authorizationheader. - Error mapping — non-2xx →
PexelsApiErrorwithstatusandbody. - Zod validation — required params, enum membership, integer bounds.
Releasing
This repo uses a tag-driven release workflow (.github/workflows/release.yml):
- Bump the version:
npm version patch(orminor/major) — creates a commit and tag. - Push:
git push && git push --tags. - The workflow runs tests, builds, publishes to npm with provenance using the
NPM_TOKENrepository secret, builds the.mcpbbundle vianpm run pack:mcpb, and creates a GitHub release with auto-generated notes that includes the bundle as a downloadable asset.
See CHANGELOG.md for version history.
Contributing
Issues and pull requests welcome. See CONTRIBUTING.md for the development workflow and SECURITY.md to report a vulnerability privately.
If you ship mcp-pexels inside a tool or product, open a PR adding it to the "Used by" list in CONTRIBUTING.md.
Listed on / submit to
- Smithery — auto-discovered via
smithery.yaml. - mcp.so — community directory.
- awesome-mcp-servers — curated GitHub list.
- modelcontextprotocol/servers — Anthropic's official directory.
See docs/MARKETPLACES.md for the submission cheatsheet.
Attribution & License
When you use Pexels content, please follow the Pexels API guidelines:
- Show a prominent link to Pexels — e.g. "Photos provided by Pexels".
- Credit photographers/videographers when possible — e.g. "Photo by John Doe on Pexels".
The mcp-pexels package itself is released under the MIT License.
Install configuration
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Pexels MCP server for AI agents from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-pexels)REPOSITORY STATS
Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
下载与拉取统计
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Related media design MCP Servers
Alternative and complementary servers in the same category

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.
