{"_id":"@advertising-chat/mcp","name":"@advertising-chat/mcp","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.1":{"name":"@advertising-chat/mcp","version":"0.2.1","description":"MCP server for Advertising.chat — give any agent the ability to serve ads (fetch_ad, record_event)","license":"MIT","author":{"name":"Advertising.chat"},"homepage":"https://docs.advertising.chat/","repository":{"type":"git","url":"git+https://github.com/advertising-chat/adkit.git","directory":"packages/mcp"},"keywords":["mcp","model-context-protocol","advertising","ads","llm","monetization"],"main":"bin/index.js","types":"bin/index.d.ts","bin":{"adchat-mcp":"bin/cli.js"},"scripts":{"build":"tsc -p .","clean":"rm -rf ./bin","prepack":"npm run clean && npm run build","test":"mocha"},"engines":{"node":">=18"},"dependencies":{"@advertising-chat/sdk":"^0.2.0","@modelcontextprotocol/sdk":"^1.29.0","zod":"^4.0.0"},"_id":"@advertising-chat/mcp@0.2.1","gitHead":"b2fd51fa84823a3ac6767e0c50d60d6986048486","bugs":{"url":"https://github.com/advertising-chat/adkit/issues"},"_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-KoQ7AVNfeLm/eQJrgQ0NEpNZfJRwaUZl0gv+QjATSUcEY5VCkqJqTKCtpkHEU9NbImJPNhdZOlNTXmrWbkkiyA==","shasum":"caa52c55fa254762a59d604c27db4af673dcfb42","tarball":"https://registry.npmjs.org/@advertising-chat/mcp/-/mcp-0.2.1.tgz","fileCount":11,"unpackedSize":19959,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCm0Lo3F6fDxDxP2n9VPkqmb09Ek58K/rCEmUm9zdxhlQIhAMENrF7FjalyG43MlQYIypf9n/PI27aMNl82gFJee/6o"}]},"_npmUser":{"name":"myk","email":"myk@mykwillis.com"},"directories":{},"maintainers":[{"name":"myk","email":"myk@mykwillis.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp_0.2.1_1783137058410_0.39739392305321486"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-04T03:50:58.275Z","0.2.1":"2026-07-04T03:50:58.537Z","modified":"2026-07-04T03:50:58.743Z"},"maintainers":[{"name":"myk","email":"myk@mykwillis.com"}],"description":"MCP server for Advertising.chat — give any agent the ability to serve ads (fetch_ad, record_event)","homepage":"https://docs.advertising.chat/","keywords":["mcp","model-context-protocol","advertising","ads","llm","monetization"],"repository":{"type":"git","url":"git+https://github.com/advertising-chat/adkit.git","directory":"packages/mcp"},"author":{"name":"Advertising.chat"},"bugs":{"url":"https://github.com/advertising-chat/adkit/issues"},"license":"MIT","readme":"# @advertising-chat/mcp\n\nMCP server for [Advertising.chat](https://advertising.chat) — give any\nagent the ability to serve (clearly labeled) sponsored messages and earn\nrevenue from its conversations.\n\n```bash\nADCHAT_API_KEY=... npx @advertising-chat/mcp\n```\n\nAgent host config:\n\n```json\n{\n  \"mcpServers\": {\n    \"adchat\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@advertising-chat/mcp\"],\n      \"env\": {\n        \"ADCHAT_API_KEY\": \"<your key from console.advertising.chat>\",\n        \"ADCHAT_AD_UNIT\": \"<optional default ad unit>\"\n      }\n    }\n  }\n}\n```\n\n## Tools\n\n- **`fetch_ad`** — fetch one sponsored message for the current\n  conversation. Takes `conversation_context` (a short topic/intent\n  summary used only to select the ad), optional `subscriber` (anonymous\n  id for frequency capping), `ad_unit`, `format`. Returns the ad with a\n  mandatory sponsored-disclosure reminder and click-tracked URLs, or\n  `no_ad`.\n- **`record_event`** — report engagement (`click`, `conversion` with\n  optional value/currency, or message lifecycle events) for a fetched ad.\n\nPair it with the [Ad Skill](https://github.com/advertising-chat/adkit/blob/main/skill/SKILL.md)\nso your assistant knows *when* to fetch and how to present ads.\n\nEnv: `ADCHAT_API_KEY` (required), `ADCHAT_AD_UNIT`, `ADCHAT_BASE_URL`.\nQuickstart: [docs.advertising.chat](https://docs.advertising.chat).\n","readmeFilename":"README.md","_rev":"1-9bf6f8740dc9406c53787e94099cd015"}