Overview
ChatAds supports the Model Context Protocol (MCP) for seamless integration with AI assistants like Claude, GPT, and others.MCP Wrapper SDK
Install the ChatAds MCP wrapper:Configuration
Add ChatAds to your MCP server configuration:Available Tools
chatads_analyze
Analyze a message for affiliate product recommendations. Parameters:message(required): The user message to analyzecountry(optional): ISO country codelanguage(optional): ISO language code
Integration Examples
Claude Desktop
Add to your Claude Desktop config (~/.config/claude/mcp.json):
Custom MCP Server
Response Format
The MCP tool returns the standard ChatAds response:Best Practices
Use in server context
MCP servers run server-side, keeping your API key secure.
Handle errors gracefully
Implement proper error handling for rate limits and network issues.
Cache when possible
Consider caching responses for repeated queries to save API calls.
Set appropriate timeouts
Configure reasonable timeouts for the MCP tool calls.