@advertising-chat/mcp
v0.2.1
Published
MCP server for Advertising.chat — give any agent the ability to serve ads (fetch_ad, record_event)
Downloads
51
Maintainers
Readme
@advertising-chat/mcp
MCP server for Advertising.chat — give any agent the ability to serve (clearly labeled) sponsored messages and earn revenue from its conversations.
ADCHAT_API_KEY=... npx @advertising-chat/mcpAgent host config:
{
"mcpServers": {
"adchat": {
"command": "npx",
"args": ["-y", "@advertising-chat/mcp"],
"env": {
"ADCHAT_API_KEY": "<your key from console.advertising.chat>",
"ADCHAT_AD_UNIT": "<optional default ad unit>"
}
}
}
}Tools
fetch_ad— fetch one sponsored message for the current conversation. Takesconversation_context(a short topic/intent summary used only to select the ad), optionalsubscriber(anonymous id for frequency capping),ad_unit,format. Returns the ad with a mandatory sponsored-disclosure reminder and click-tracked URLs, orno_ad.record_event— report engagement (click,conversionwith optional value/currency, or message lifecycle events) for a fetched ad.
Pair it with the Ad Skill so your assistant knows when to fetch and how to present ads.
Env: ADCHAT_API_KEY (required), ADCHAT_AD_UNIT, ADCHAT_BASE_URL.
Quickstart: docs.advertising.chat.
