IAB Deals MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
IAB Deals MCP Server
MCP Server implementing IAB Deals API v1.0 for programmatic deal management.
Overview
This MCP server provides tools for managing programmatic advertising deals following the IAB Deals API specification. It enables AI agents to create, manage, and monitor deals across DSPs and SSPs.
Related MCP server: AdButler MCP Server
Features
9 MCP Tools for complete deal lifecycle management
Mock Provider for standalone demo (no external dependencies)
SQLite Database for local persistence
IAB Compliant data models and status codes
Extensible provider architecture for real DSP/SSP integrations
Quick Start
Installation
# Clone the repository
git clone https://github.com/IABTechLab/deals-api-mcp.git
cd deals-api-mcp
# Install dependencies
npm install
# Copy environment file
cp .env.example .env
# Build
npm run build
# Run
npm startClaude Desktop Configuration
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"iab-deals": {
"command": "node",
"args": ["/path/to/iab-deals-mcp-server/dist/index.js"],
"env": {
"NODE_ENV": "demo",
"SEED_DEMO_DATA": "true"
}
}
}
}Or with npx (after publishing):
{
"mcpServers": {
"iab-deals": {
"command": "npx",
"args": ["iab-deals-mcp"],
"env": {
"NODE_ENV": "demo"
}
}
}
}MCP Tools
Tool | Description |
| Create a new deal in PENDING status |
| Update deal properties |
| Send deal to DSP/SSP for approval |
| Activate an approved deal |
| Get deal status and buyer seat info |
| List deals with filtering/pagination |
| Pause an active deal |
| Resume a paused deal |
| List available providers |
Demo Walkthrough
1. List existing deals
Use the deals/list tool to see sample deals2. Create a new deal
Use deals/create with:
- name: "Q2 Video Campaign"
- origin: "ads.mybrand.com"
- seller: "My Brand Inc"
- adTypes: [2] (Video)
- dealFloor: 25.00
- startDate: "2026-04-01T00:00:00Z"3. Send to provider
Use deals/send with:
- dealId: <from step 2>
- providerId: "mock"
- seatId: "buyer-seat-001"4. Check status
Use deals/status with the dealId5. Confirm the deal
Use deals/confirm with the dealId6. Pause/Resume
Use deals/pause and deals/resume to control deliveryData Model
Deal Status Codes (Seller)
Code | Status | Description |
0 | Active | Deal is active and serving |
1 | Paused | Deal is temporarily paused |
2 | Pending | Deal created, not yet sent |
4 | Complete | Deal has completed |
Buyer Status Codes
Code | Status | Description |
0 | Pending | Awaiting provider response |
1 | Accepted | Provider accepted the deal |
2 | Rejected | Provider rejected the deal |
3 | Expired | Deal expired before response |
4 | Paused | Deal paused on provider |
5 | Error | Error communicating with provider |
Ad Types
Code | Type |
1 | Banner |
2 | Video |
3 | Audio |
4 | Native |
Project Structure
iab-deals-mcp-server/
├── src/
│ ├── index.ts # MCP server entry point
│ ├── config.ts # Configuration management
│ ├── models/ # Zod schemas and types
│ │ ├── deal.ts
│ │ ├── terms.ts
│ │ ├── inventory.ts
│ │ ├── buyer-seat.ts
│ │ └── provider.ts
│ ├── tools/ # MCP tool implementations
│ │ └── index.ts
│ ├── providers/ # DSP/SSP provider abstraction
│ │ ├── base.ts
│ │ ├── mock.ts
│ │ └── registry.ts
│ └── db/ # Database layer
│ ├── schema.ts
│ ├── database.ts
│ └── seed.ts
├── package.json
├── tsconfig.json
└── README.mdAuthentication
MCP Server (Client → Server)
Demo Mode: No authentication required
Production: Set
IAB_DEALS_API_KEYenvironment variable
Provider APIs (Server → DSPs/SSPs)
Configure provider credentials in environment variables:
# The Trade Desk
TTD_API_KEY=your-api-key
TTD_PARTNER_ID=your-partner-id
# Google DV360
DV360_SERVICE_ACCOUNT_JSON={"type":"service_account",...}
# FreeWheel
FREEWHEEL_CLIENT_ID=your-client-id
FREEWHEEL_CLIENT_SECRET=your-client-secretDevelopment
# Development mode with hot reload
npm run dev
# Type checking
npm run typecheck
# Linting
npm run lint
# Run tests
npm testAdding a New Provider
Create a new file in
src/providers/(e.g.,ttd.ts)Implement the
DealProviderinterfaceRegister in
src/providers/registry.ts
Example:
import { BaseDealProvider } from "./base.js";
import type { Deal, BuyerSeat, ProviderResponse } from "../models/index.js";
export class TradeDeskProvider extends BaseDealProvider {
readonly id = "ttd";
readonly name = "The Trade Desk";
isAvailable(): boolean {
return !!process.env.TTD_API_KEY;
}
async sendDeal(deal: Deal, seatId: string): Promise<ProviderResponse> {
// Implement TTD API integration
}
// ... other methods
}License
MIT License - see LICENSE for details.
Contributing
This is a reference implementation for the IAB Tech Lab Agentic Working Group. Contributions welcome!
Resources
Built by HyperMindZ for the IAB Tech Lab Agentic Task Force.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
AdCP sales agent. AI agents find inventory, create ads and run campaigns. People approve.
Run Meta, Google, TikTok, LinkedIn, Microsoft, Reddit, X and Pinterest ads from your AI agent.
LinkedIn ads, ABM and CRM data for AI agents: reports, audits, and campaign management.
AI agents that manage paid ads on Meta, LinkedIn, and Google Ads from any MCP client.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to manage Google Ad Manager campaigns, line items, creatives, and advertisers through natural language, automating ad operations that normally require countless clicks through the UI.3533 PyPI20MIT

AdButler MCP Serverofficial
AlicenseCqualityCmaintenanceEnables managing your entire AdButler advertising account from any AI assistant, exposing over 600 tools covering the full AdButler v2 API for display ads, video, targeting, reporting, programmatic, and more, plus pre-built workflow prompts.100125 npm1MIT- -licenseNot gradedqualityDmaintenanceExposes 23 AdTech tools as REST endpoints for AI agents to discover and call via HTTP.-
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to broker creator MSA contracts and escrow deliverable milestones through Impact.com, with deterministic, zero-dependency execution and native MCP integration.8-