Unspam API and MCP Integration: Connect AI Assistants with Dedicated Tokens

Unspam opens API and MCP integration, emphasizing dedicated token isolation and a custom plan barrier.
Unspam recently opened up API and MCP integration, letting developers and AI assistants run spam tests directly. The official demo emphasizes assigning a dedicated token to each integration so it can be revoked individually without affecting others, reducing global risk from token leaks. Unlike the API, the MCP server needs no token—each AI app logs in once, and the same server address can serve CLAWD, ChatGPT, and Cursor, lowering the configuration barrier while relying on application-side login state for access control. The API offers 44 endpoints at 100 requests per minute, so high-frequency batch scenarios need retry or queue mechanisms. Both features are custom plan only; whether to upgrade depends on your automation frequency and integration depth.
Why Every Integration Needs Its Own Token
Unspam recently opened up its API and MCP (Model Context Protocol) integration capabilities, allowing developers or AI assistants to run spam tests directly. The official demo specifically highlights one security practice: assigning a dedicated token to each integration. This way, when an integration is no longer trustworthy or needs to be replaced, you can revoke that token individually without affecting other running integrations.

This approach is not uncommon in API key management, but Unspam makes it the default recommendation, signaling that they want to reduce the global risk users face when a token leaks. For teams connecting multiple AI applications at once, this is a baseline strategy worth adopting.
The Practical Value of Token Isolation
Suppose you used the same token to connect both ChatGPT and Cursor. Once that token is exposed at any point, you would have to revoke everything and reconfigure all integrations. Dedicated tokens let each integration's lifecycle stay independent, so revoking one does not affect the rest. Unspam explicitly called out this scenario in the demo without elaborating much, but the logic is clear enough.
API Token is a credential issued by a server to a client, used in each request to prove the caller's identity and permissions. Unlike usernames and passwords, tokens can typically be generated independently, scoped to specific permissions, and revoked at any time, making them suitable for machine-to-machine automated calls. Common ways tokens leak include: hardcoding into public repositories, embedding in frontend code, logging in plaintext, or interception during relay through third-party platforms. The principle of least privilege requires each token to grant only the minimum scope needed to accomplish a specific task, and token isolation is an extension of this principle in credential management—assigning different tokens to each integration and each environment (development/production) so that the blast radius of a single credential failure stays controllable. Common industry practices also include regular rotation, setting expiration times, and recording the last-used time of tokens for auditing.
Why the MCP Server Needs No Token
Unlike the API, Unspam's MCP server does not require a token. The official explanation is that each AI application only needs to log in once, after which it works through the same server address. Currently, the compatible clients mentioned in the demo include CLAWD, ChatGPT, and Cursor.

This design lowers the configuration barrier for MCP integration. Users do not need to generate and manage separate tokens for each AI application—they simply complete a one-time login authorization. However, this also means MCP's access control relies on the login state on the application side rather than an additional token layer. For scenarios with higher security requirements, the API's token mechanism remains the more granular choice.
One Address, Multiple AI Clients
The same MCP server address can serve CLAWD, ChatGPT, and Cursor simultaneously. This unified entry point reduces the configuration burden for users switching between different clients. From a product experience perspective, this is a key step toward broader MCP adoption.

MCP (Model Context Protocol) is an open protocol proposed by Anthropic in late 2024 to enable AI applications to connect to external tools and data sources in a unified way. Its core is the client-server model: AI applications (such as ChatGPT, Cursor, and other clients) request a tool list from an MCP server through a standard interface and invoke tools, without writing separate adapter code for each tool. MCP servers typically communicate via stdio (local process) or HTTP/SSE (remote). Authentication is determined by the specific server implementation; a common approach is OAuth-based login authorization, where the server issues session credentials to the client rather than requiring users to manually paste API keys. This also explains why the demo emphasizes "log in once"—access control is delegated to the application-side login state and session management rather than an additional static token layer.
API Scale and Limits
The Unspam API currently offers 44 endpoints with a rate limit of 100 requests per minute. Both figures come from the official demo and can serve as benchmarks for evaluating whether it meets your workflow needs. The 44 endpoints cover a broad range, sufficient to support common spam testing scenarios; the 100-requests-per-minute limit is usually adequate for small-to-medium-scale automated testing, but high-frequency batch scenarios may require additional planning.
Rate Limit Considerations
A limit of 100 requests per minute means roughly 1.6 calls per second on average. If your testing process involves a large number of concurrent requests, you need to design retry or queue mechanisms. The official demo did not explain the behavior after exceeding the limit, so it is advisable to consult the full documentation before actual integration.
Rate Limiting is a cap on call frequency set by API servers to protect their own resources and ensure fair usage. Common industry rate-limiting algorithms include fixed window, sliding window, token bucket, and leaky bucket: token bucket allows a certain degree of burst traffic, while sliding window offers more precise control over time boundaries. When the limit is exceeded, the server typically returns an HTTP 429 (Too Many Requests) status code and may provide information such as Retry-After and X-RateLimit-Remaining in response headers; clients should implement exponential backoff retries accordingly. For a limit of 100 requests per minute, in practice you can serialize requests through a queue, do local counting on the client to anticipate limits, or split batch tasks across multiple time windows to avoid triggering rate limiting and interrupting the workflow.
Pricing Barrier: Custom Plan Only
Unspam candidly states in the demo that API and MCP features are included in the custom plan, and free accounts cannot connect. This is a clear commercial boundary—users need to upgrade to the custom plan to use these two integration capabilities.

For individual developers or small teams, this may pose a certain barrier. But if your workflow already depends on Unspam's spam testing capabilities, the API and MCP access provided by the custom plan can deliver significant automation benefits. Whether it is worth upgrading depends on your needs for automated testing frequency and integration depth.
How to Get Started
The official guidance is to visit unspam.email.api for details, with the full demo video on their YouTube channel. The recommended starting path is: first confirm whether your account plan supports it, then generate a dedicated token for each integration (for API scenarios), or directly use the unified MCP server address to complete a one-time login (for MCP scenarios).
Who It's For
- Developers who need to embed spam testing into CI/CD or automated workflows
- Users who want to invoke Unspam capabilities directly within AI assistants like ChatGPT and Cursor
- Teams managing multiple integrations that need fine-grained token control
If you only test manually from time to time, a free account may already be enough; but once you need automation or AI assistant integration, the API and MCP become necessary reasons to upgrade.
Related articles

Bonsai 2.5 27B Hands-On: Opus-Level Performance on a Single 6GB GPU
Bonsai 2.5 27B hands-on: just 5.9GB, runs on a single consumer GPU, agentic coding close to full-precision Qwen 3.8, impressive front-end generation, and major speed gains.

GPT-6 Astra Accused of Sabotaging AI Safety Efforts: Community Controversy Intensifies
A Hacker News post claims GPT-6 Astra sabotages AI safety efforts, drawing 70 points and 20 comments. This article reviews the background, controversy, and community reaction, analyzing trust challenges from the safety-capability tension in frontier models.

SoftREU: Differentiable and Numerically Stable Revisable Evidence Update
SoftREU presents a differentiable and numerically stable revisable evidence update framework, solving evidence retraction, numerical cancellation, and discrete authorization in Bayesian conditioning via conflict-penalized variational free energy, subtraction-free segment trees, and commit-gated straight-through gradient analysis.