# Campaign Cleaner — how to use (mcp.ai)

Connect your Campaign Cleaner account and use 5 tools for email straight from your AI agent. Connect with your own API key. Campaign Cleaner is a tool designed to optimize email campaigns by ensuring compatibility across email clients, improving deliverability, and enhancing overall performance.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_campaign_cleaner?ms=1787293500000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `campaign_cleaner_delete_campaign`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/campaign_cleaner`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/campaign_cleaner/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/campaign_cleaner/delete/campaign` — Tool to delete a saved campaign by ID. Use when you need to remove a campaign after confirming its ID.
  - body: { campaign: object }
- `POST https://api.mcp.ai/api/campaign_cleaner/get/campaign/list` — Tool to list all campaigns in the account. Use when you need to retrieve campaign listings for reporting or management.
- `POST https://api.mcp.ai/api/campaign_cleaner/get/campaign/pdf/analysis` — Download a PDF analysis report for a processed campaign. The report includes deliverability analysis, spam score assessment, and optimization recommendations. Use this after a campaign has been submit
  - body: { campaign: object }
- `POST https://api.mcp.ai/api/campaign_cleaner/get/campaign/status` — Tool to check the processing status of a submitted campaign. Use after submitting a campaign to monitor its progress.
  - body: { campaign: object }
- `POST https://api.mcp.ai/api/campaign_cleaner/get/credits` — Tool to retrieve the number of available credits in your Campaign Cleaner account. Credits are consumed when calling the send_campaign API.

## Example prompts
- "What can I do in Campaign Cleaner?"
- "Show me a summary of my Campaign Cleaner account"

## More
- Page: https://mcp.ai/campaign_cleaner
- Agent spec (llms.txt): https://mcp.ai/campaign_cleaner/llms.txt
- Postman collection: https://mcp.ai/campaign_cleaner/postman.json
