Drefly Ads for AI agents
Let AI agents plan, book, pay links for and track Drefly Ads over MCP.
The agent can never pay.
It creates the ad and gives you a payment link. You pay, and the Drefly team reviews the ad before it goes live.
What agents can do
- Plan: list placements with prices, discounts and traffic, check dates and get exact quotes.
- Book: upload or import an image or video and create the ad, which holds its dates.
- Get the payment link: return a checkout link for the owner to pay.
- Track: read status, review decisions, views, clicks, video progress and spend.
Server details
| Item | Value |
|---|---|
| Server URL | https://ads.drefly.pro/api/ads/mcp |
| Transport | Streamable HTTP, POST only, JSON replies |
| Protocol versions | 2025-11-25, 2025-06-18, 2025-03-26 |
| Sign in | OAuth 2.1 with PKCE, or an API key sent as a Bearer token |
| Scopes | read, write |
| Server name | drefly-ads |
Ways to connect
| Way | Best for | Setup |
|---|---|---|
| One click connect | Claude, ChatGPT, Claude Code, Cursor, VS Code, Windsurf, Gemini CLI | Add the server URL in your app and press Allow on Drefly |
| API key | Scripts, servers and apps without OAuth | Create a key under Agents and send it as a Bearer token |
Supported apps
Any MCP client that supports remote servers over Streamable HTTP works. These have step by step setup:
- Connect in one click: Claude, ChatGPT, Claude Code, Cursor, VS Code, Windsurf and Gemini CLI
- Use it from code: Python, TypeScript and plain HTTP
Next steps
QuickstartConnect an agent and book your first ad in a few minutes.
Connect in one clickOne click OAuth setup for Claude, ChatGPT, Claude Code, Cursor, VS Code, Windsurf and Gemini CLI.
Book an adThe full flow from placements and quotes to a live ad.
Tools referenceEvery MCP tool with access, arguments and examples.
Was this page helpful?
Thanks for the feedback. Tell us what was missing