Connect an AI assistant with MCP
Connect Claude, Codex, Cursor, and other MCP clients to Easymailing using OAuth.
The Easymailing MCP server lets an AI assistant work with your Easymailing account: your contacts, companies, deals, campaigns, sequences and automations. Use it to read information, review a campaign before it goes out, or carry out a task you have explicitly requested.
Connection details
| Setting | Value |
|---|---|
| Server name | easymailing |
| Server URL | https://mcp-server.easymailing.com/mcp |
| Transport | Streamable HTTP |
| Preferred authentication | OAuth through your browser |
This is the public server URL published by
Easymailing.
Use the complete URL, including /mcp.
With OAuth, your client opens Easymailing's sign-in and authorization flow. Choose the account you intend to connect and review the requested permissions. You do not need to copy an API key into the conversation or create an OAuth client manually for the standard setup below.
The server can expose operations that change data or send messages. Start with the read-only check below and review the operation and its arguments before authorizing changes.
Claude web and Claude Desktop
Add Easymailing as a remote custom connector:
- Open Customize → Connectors.
- Select + → Add custom connector.
- Enter Easymailing and
https://mcp-server.easymailing.com/mcp. - Add the connector, select Connect, and complete Easymailing's OAuth flow.
- In a conversation, enable Easymailing through + → Connectors.
On Team or Enterprise, an owner first adds it through Organization settings → Connectors → Add → Custom → Web. Members then connect their own accounts.
Remote connectors use your Claude account and connect from Anthropic's cloud.
Configure this hosted URL through Connectors; it does not require a local
server process or an entry in claude_desktop_config.json.
See Claude's remote connector instructions
for plan availability and organization controls.
Claude Code
Register the server for your user account:
claude mcp add --transport http --scope user easymailing https://mcp-server.easymailing.com/mcpOpen Claude Code and run:
/mcpSelect Easymailing and complete the browser authentication flow. The user
scope makes this connection available across your projects. Check its status
in /mcp before asking Claude to use it.
See the Claude Code MCP reference.
Codex app and CLI
Desktop app
In the desktop app that hosts Codex, open Settings → MCP servers → Add server.
Enter easymailing, choose Streamable HTTP, and paste
https://mcp-server.easymailing.com/mcp. Save, restart when prompted, and select
Authenticate to sign in.
CLI
Add the server:
codex mcp add easymailing --url https://mcp-server.easymailing.com/mcpIf sign-in is still required, start OAuth:
codex mcp login easymailingFor configuration as a file, the equivalent entry in ~/.codex/config.toml is:
[mcp_servers.easymailing]
url = "https://mcp-server.easymailing.com/mcp"Use either the add command or the file entry. Preserve your other settings.
The desktop app, CLI, and IDE extension share configuration on the same Codex
host. In the Codex composer or terminal interface, /mcp shows connected
servers. See OpenAI's MCP documentation.
Cursor
Merge this server entry into .cursor/mcp.json for the current project, or
~/.cursor/mcp.json for your user account:
{
"mcpServers": {
"easymailing": {
"url": "https://mcp-server.easymailing.com/mcp"
}
}
}Open Customize, enable Easymailing, and complete the OAuth sign-in when requested. Confirm that its tools appear under Available Tools. Keep existing entries if the file already contains other servers. See Cursor's MCP documentation.
API key alternative
Use OAuth where your client supports it. For a client or environment that
requires a static credential, the MCP server also accepts an Easymailing API
key in Authorization: Bearer …. The REST API's X-Auth-Token header is not
the authentication header for this MCP endpoint. See
Authentication for API key management.
Make the key available as an environment variable named EASYMAILING_API_KEY
to the process running your client, using your normal secret-management setup.
The examples below store only that variable's name. Keep the value out of
chat, shared configuration files, and source control.
For Codex, use this alternative entry:
[mcp_servers.easymailing]
url = "https://mcp-server.easymailing.com/mcp"
bearer_token_env_var = "EASYMAILING_API_KEY"For Cursor, use environment interpolation in the header:
{
"mcpServers": {
"easymailing": {
"url": "https://mcp-server.easymailing.com/mcp",
"headers": {
"Authorization": "Bearer ${env:EASYMAILING_API_KEY}"
}
}
}
}For Claude Code, a project .mcp.json uses a different interpolation syntax
and requires type:
{
"mcpServers": {
"easymailing": {
"type": "http",
"url": "https://mcp-server.easymailing.com/mcp",
"headers": {
"Authorization": "Bearer ${EASYMAILING_API_KEY}"
}
}
}
}Replace the existing connection when changing authentication methods; avoid conflicting definitions. A desktop app must receive the variable in its own environment. Setting it in an unrelated terminal may not make it available to an app that is already running. For Claude web and Desktop remote connectors, use the OAuth flow above.
Client-specific syntax is documented by OpenAI, Cursor, and Claude Code.
Verify the connection
After signing in, ask your assistant:
Use Easymailing to read the first page of my audiences.
Show their names and identifiers, and indicate whether more pages exist.
Do not create, update, delete, subscribe, unsubscribe, or send anything.Each public API operation available to MCP clients is a tool with the
operation's own name, so the assistant calls list_audiences directly, with the
operation's parameters as the tool's arguments:
{
"page": 1,
"itemsPerPage": 10
}list_audiences is the read-only
GET /audiences.
These are MCP tool arguments, not JSON bodies to send directly to the REST
API. Tool names may appear with a client-added server prefix. Parameter names
that contain brackets in the API are listed without them: order[name] becomes
order_name, and type[] becomes type.
Tools carry MCP annotations based on what the operation does: read-only operations are marked as such, and operations that can delete data or reach other people (sending a campaign, for example) are marked as destructive. Clients can use these hints to ask for your approval before running a tool that changes something; how and when they ask depends on the client. Operations that pay, purchase, or change or cancel your plan are not available through MCP; do those in Easymailing.
A successful account read verifies more than a saved server entry. Confirm that the returned audiences belong to the intended account; an empty collection can also be a valid result.
Guides and views
For work with several steps, the assistant can call list_guides and
get_guide to load Easymailing's own rules for that area before it acts.
In clients that support MCP Apps, some answers are shown as a view instead of text: the sales pipeline, a contact, a deal, an email draft, the review of a campaign before sending and its results. The views only read; any change still goes through a tool that you approve.
Limits and troubleshooting
The server lists one tool per available API operation, several hundred in
total, plus a small set of helper tools (guides, views, knowledge search,
templates and images). Clients that load tools on demand handle this on their
own. If your client needs a short tool list with a search step instead,
connect it to https://mcp-server.easymailing.com/mcp/compact, with the same
authentication. It keeps the helper tools and replaces the per-operation tools
with search_tools, list_tools_by_tag, get_tool_info and three tools that
run an operation by its class: execute_read_operation,
execute_write_operation and execute_destructive_operation.
For collections, request small pages such as itemsPerPage: 10 and use filters.
Check pagination and any _truncated marker before treating a response as a
complete list. See Pagination, filters and errors.
| Symptom | What to check |
|---|---|
| Authentication is required | Complete OAuth in the client's connection panel. A plain request to /mcp or /mcp/compact without a token returns 401; the public metadata endpoints remain accessible. |
401 with an API key | Check that the client received the environment variable and sends Authorization: Bearer with a valid Easymailing key. Do not use X-Auth-Token at /mcp. |
| An operation is denied | Review the connected account, the authorization granted, and the operation's permissions. Reconnect if the sign-in has expired or been revoked. |
| No tools appear | Check that Easymailing is enabled, finish authentication, and refresh or restart the client connection. Check organization restrictions on custom MCP servers. |
| A tool rejects its arguments | Check the tool's parameters and try again. Pass the operation's inputs directly as the tool's arguments. |
| Only part of a list is returned | Use smaller pages and filters, inspect pagination, and check _truncated. |
For a connectivity check that does not access an account, fetch the public protected-resource metadata:
curl -q --fail --silent --show-error --max-time 20 \
https://mcp-server.easymailing.com/.well-known/oauth-protected-resource/mcpThe resource field should be https://mcp-server.easymailing.com/mcp.
For the compact route, use /.well-known/oauth-protected-resource/mcp/compact;
its resource is https://mcp-server.easymailing.com/mcp/compact.
This verifies discovery reachability, not account authorization.
Other clients need remote Streamable HTTP support and either OAuth discovery or a configurable Bearer header. Use the same endpoint and the client's own configuration format; a JSON example for one client is not necessarily valid in another.