Agno agents use Pexafy through its MCP server, https://mcp.pexafy.com/mcp, with your API key in the Authorization header. The agent searches free-to-use photos (Unsplash, Pexels, Pixabay and more) and gets each one back with its URL, licence and credit line.

Install

pip install "agno[mcp]" anthropic
export PEXAFY_API_KEY="pexafy_..."      # free key: pexafy.com/dashboard/api-keys/create
export ANTHROPIC_API_KEY="sk-ant-..."   # for this example; any Agno model works

Use

import asyncio
import os

from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.tools.mcp import MCPTools


async def main():
    async with MCPTools(
        url="https://mcp.pexafy.com/mcp",
        transport="streamable-http",
        headers={"Authorization": f"Bearer {os.environ['PEXAFY_API_KEY']}"},
        include_tools=["search_photos", "search_photos_by_image"],
    ) as pexafy:
        agent = Agent(
            model=Claude(id="claude-haiku-4-5"),
            instructions="Find free stock photos and give each photo's URL and credit line.",
            tools=[pexafy],
        )
        result = await agent.arun("Find a header photo for a post about remote work.")
        print(result.content)


asyncio.run(main())
include_tools keeps the two search tools. The other tools are for chat clients, where a person views a photo grid or links an account. On the free plan, show the credit line next to each photo you publish. See MCP server for the full tool list.