Complete working examples of building a DOOH (Digital Out-of-Home) advertising agent using Trillboards APIs.
The Trillboards DOOH MCP server is available through multiple registries:
| Registry | Link |
|---|---|
| Smithery | smithery.ai/servers/trillboards/dooh-advertising |
| MCP Registry | registry.modelcontextprotocol.io |
| Direct (Streamable HTTP) | https://api.trillboards.com/mcp |
Add to your MCP config:
{
"mcpServers": {
"trillboards-dooh": {
"url": "https://api.trillboards.com/mcp"
}
}
}npx @smithery/cli install trillboards/dooh-advertisingnpm install
# Demo mode — no API key needed
node mcp-agent.js --demo
# Full flow with API key
export TRILLBOARDS_API_KEY=trb_partner_xxxxx
node mcp-agent.jsnode mcp-agent.jsConnects to the Trillboards MCP server at https://api.trillboards.com/mcp/ and uses structured tool calling for pricing discovery, inventory browsing, audience analysis, and billing.
node rest-agent.jsSame flow using standard HTTPS requests. Useful as a fallback or for non-MCP environments.
┌─────────────────┐
│ 1. Get Pricing │ No auth needed
│ get_pricing │ → pricing, free tiers, billing URLs
└────────┬────────┘
│
┌────────▼────────┐
│ 2. Register │ No auth needed
│ agent/register │ → API key, sandbox screens
└────────┬────────┘
│
┌────────▼─────────────┐
│ 3. Use Free Tier │ API key auth
│ discover_inventory │ → screens, audience data
│ get_live_audience │
│ get_audience_forecast│
└────────┬─────────────┘
│ Free tier exhausted → 402
┌────────▼────────┐
│ 4. Set Up │ API key auth
│ Billing │ setup_billing → active billing
│ │ purchase_credits → volume discounts
└────────┬────────┘
│
┌────────▼────────┐
│ 5. Pay-Per-Use │ Metered usage, monthly invoicing
│ Full API Access │
└─────────────────┘
| Tool | Auth | Description |
|---|---|---|
get_pricing |
No | Machine-readable pricing for all products |
discover_inventory |
Yes | Find available ad slots and screens |
get_live_audience |
Yes | Real-time audience data for a screen |
get_audience_forecast |
Yes | Predict audience for a screen/time |
get_usage_summary |
Yes | Current billing period usage |
get_billing_status |
Yes | Billing setup status and credit balance |
setup_billing |
Yes | Attach Stripe payment method |
purchase_credits |
Yes | Buy credits at volume discounts |
Option A: Self-service registration (recommended for agents)
curl -X POST https://api.trillboards.com/v1/partner/agent/register \
-H "Content-Type: application/json" \
-d '{"agent_type":"developer","name":"My Agent","email":"you@example.com"}'Option B: Via MCP — The agent can register itself using the register_partner tool.
Trillboards uses usage-based pricing with generous free tiers:
- Data API: 10,000 free calls/month
- Proof-of-Play: 50,000 free proofs/month
When free tier is exhausted, API returns 402 Payment Required with pricing details and billing setup URL.
- API Documentation
- MCP Server (Streamable HTTP)
- Smithery Listing
- MCP Registry
- Pricing
- NPM SDK
- Proof-of-Play Verifier
MIT