Endpoint
Streamable HTTP. Grok and other MCP clients connect with OAuth on this site. One successful extract uses one credit.
/api/mcp
Grok / GrokBot prompt
Paste this as the agent instruction when you connect the MCP.
Extract the text surrounding a coupon code or promotion and run it in CouponBrain. If a coupon comes back, report it to the user. If CouponBrain returns no coupon, say so — do not invent a code. Do not ask the user for an Affensus API key. CouponBrain connects with OAuth. After the grant, call create_api_key if you need a key.
Cursor / Claude
{
"mcpServers": {
"couponbrain": {
"url": "/api/mcp"
}
}
}Grok
Add the public MCP URL as couponbrain. Do not add an Authorization header — that blocks OAuth. Grok opens the grant card on this site. Sign in and press Allow. After that, Grok can create an API key itself.
{
"mcpServers": {
"couponbrain": {
"type": "http",
"url": "/api/mcp"
}
}
}stdio clients
If the client cannot open a remote URL, bridge it.
npx -y mcp-remote /api/mcp