{
  "markdown": "# mcp-server-pexels\n\nAn MCP (Model Context Protocol) server for the Pexels API. Built in Rust, exposes photo search, video search, and curated/featured content as MCP tools.\n\nCommunicates via stdio using JSON-RPC 2.0.\n\n## Tools\n\n| Tool | Description |\n|------|-------------|\n| `search_photos` | Search photos by query with optional orientation/size/color/locale filters |\n| `curated_photos` | Get a paginated list of curated, hand-picked photos |\n| `get_photo` | Retrieve a single photo by ID |\n| `search_videos` | Search videos by query with optional orientation/size/locale filters |\n| `popular_videos` | Get popular videos with optional dimension and duration filters |\n| `get_video` | Retrieve a single video by ID |\n| `featured_collections` | List featured collections (themed sets of media) |\n| `collection_media` | List media in a specific collection (filterable by photos/videos) |\n\n## Prerequisites\n\n- Rust (edition 2024)\n- A Pexels API key from [pexels.com/api](https://www.pexels.com/api/)\n\n## Setup\n\n```bash\nmkdir -p ~/.config/mcp-server-pexels\n```\n\nCreate `~/.config/mcp-server-pexels/config.toml`:\n\n```toml\napi_key = \"your-pexels-api-key\"\n```\n\n## Build\n\n```bash\ncargo build --release\n```\n\nProduces `target/release/mcp-server-pexels`.\n\n## MCP configuration\n\n```json\n{\n  \"mcpServers\": {\n    \"pexels\": {\n      \"command\": \"/path/to/mcp-server-pexels\"\n    }\n  }\n}\n```\n\n## Project structure\n\n```\nsrc/\n  main.rs    - entry point, config loading, stdio transport\n  server.rs  - MCP tool definitions\n  api.rs     - Pexels HTTP client and response types\n  params.rs  - tool parameter types\n  config.rs  - TOML config loading\n```\n\n## License\n\nMIT\n",
  "bytes": 1650,
  "sha": "e7da0ac19c379209d92ae8fb56f78dd38c54df75166495e0b487b33e5866d3dd",
  "repo_slug": "codechap/mcp-server-pexels",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_codechap_pexels_8400839b/readme"
}