Before you connect
Use a client that supports remote MCP over Streamable HTTP. For browser sign-in, it also needs OAuth support. Have your Lightdrift account ready, or create one when prompted. New users must agree to the Terms of Service and Privacy Policy during signup. Searches use your workspace’s available credit. Check your balance in the dashboard.If sign-in opens in an embedded browser and Google or passkey sign-in fails, open the sign-in link in your normal browser and complete authentication there.
Tools
Every search result carries the same
rights object as the REST API. See Rights answers. Searches default to real photographs, commercial-use licences, and files at least 1000 px wide; pass a filter as null to opt out (see Defaults).
Choose your client
- Codex
- Claude Code
- Cursor
- Claude
- Other
~/.codex/config.toml:Use an API key instead of sign-in
Create a key in API keys, then use the header configuration shown for your client above. In other clients with custom header support, setX-API-Key to your key. Use either OAuth or an API key for a connection, not both.
Keep keys out of shared project files and source control. Use your client’s private configuration or secret storage when available. API-key requests use the credit of the workspace that owns the key.
Check the connection
Open your client’s MCP tools list and look forsearch_images, find_similar_images, and get_image under lightdrift. If they are missing, reload the connection or restart the client after saving its configuration.
Listing tools does not run a paid image search. The example below does: a successful search costs $0.02.
First search
Once connected, ask for an image the way you would ask a person:Find me a photo of a coastal lighthouse at dusk with room for a headline on the left, and tell me the attribution I need to include.The agent calls
search_images, reads rights.attribution from the top result, and hands you both.
Troubleshooting
Next steps
- Read Plans and limits for upgrades, request allowances, and credit usage.
- Read the search guide for filters and similar-image search.
- Learn how to use license and attribution details.
- Add Docs MCP so your agent can also look up Lightdrift usage.