Pexels MCP Server
v1.0.1MCP server for the Pexels API: search & fetch stock photos, videos, and collections.
Values you need
| Variable | What it is | |
|---|---|---|
PEXELS_API_KEY | required secret | Your Pexels API key (sent as the Authorization header, no prefix). |
LOG_LEVEL | optional | Log verbosity; all logs go to stderr. Default: info |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add pexels-mcp-server -e 'PEXELS_API_KEY=<PEXELS_API_KEY>' -- npx -y @hanoak/pexels-mcp-server@1.0.1Add to
claude_desktop_config.json{
"mcpServers": {
"pexels-mcp-server": {
"args": [
"-y",
"@hanoak/pexels-mcp-server@1.0.1"
],
"command": "npx",
"env": {
"PEXELS_API_KEY": "<PEXELS_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"pexels-mcp-server": {
"args": [
"-y",
"@hanoak/pexels-mcp-server@1.0.1"
],
"command": "npx",
"env": {
"PEXELS_API_KEY": "<PEXELS_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "PEXELS_API_KEY",
"id": "pexels-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"pexels-mcp-server": {
"args": [
"-y",
"@hanoak/pexels-mcp-server@1.0.1"
],
"command": "npx",
"env": {
"PEXELS_API_KEY": "${input:pexels-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.pexels-mcp-server]
command = "npx"
args = ["-y", "@hanoak/pexels-mcp-server@1.0.1"]
env = { "PEXELS_API_KEY" = "<PEXELS_API_KEY>" }For AI agents
- Ask the user for: PEXELS_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: pexels_search_photos, pexels_curated_photos, pexels_get_photo, pexels_search_videos, pexels_popular_videos, pexels_get_video, pexels_list_featured_collections, pexels_list_my_collections, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json