Pexels MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
A Model Context Protocol server that provides access to the **Pexels API** for searching and retrieving photos, videos, and collections.
Available Tools
- photos_search – Search photos
- photos_curated – List curated photos
- photo_get – Get a photo by id
- videos_search – Search videos
- videos_popular – List popular videos
- video_get – Get a video by id
- collections_featured – List featured collections
- collections_media – List media in a collection
Usage
Using uv (recommended)
1. Install uv.
2. In your MCP client code configuration or **Claude** settings (file claude_desktop_config.json) add pexels mcp server:
uv will download the MCP server automatically using uvx from pypi.org and apply to your MCP client.
Using pip for a project
1. Add pexels-mcp-server to your MCP client code requirements.txt file.
2. Install the dependencies.
3. Add the configuration for your client:
Using pip globally
1. Ensure pip or pip3 is available on your system.
2. MCP client code configuration or **Claude** settings, add pexels mcp server:
Debugging
You can use the MCP inspector to debug the server. For uvx installations:
Or if you've installed the package in a specific directory or are developing on it:
License
pexels-mcp-server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.