1
Install Deno
Install Deno on your machine:For Windows, follow the instructions at https://deno.land/#installation.Verify your installation by running:
2
Download the SendWhale MCP server
Download the SendWhale MCP server package from SendWhale and extract it to a location on your machine. Note the absolute path to the
mcp/ directory — you will need the full path to mcp/stdio.ts when configuring your AI client.3
Create an environment file
Create a All five variables are required. The server will log a startup error to stderr if any are missing.
.env file to hold your credentials. Store this file outside your repository checkout — never commit credentials to source control.4
Find your credentials
Locate the values for your environment file in your SendWhale workspace:
- SENDWHALE_WORKSPACE_ID — go to workspace Settings → Agent Access to find your workspace ID.
- SENDWHALE_ACCESS_TOKEN — this must be your authenticated user JWT obtained from your active SendWhale session. Open your browser’s developer tools while signed in to SendWhale to copy your session token.
5
Configure your MCP client
Below is a Claude Desktop example — adapt the structure to match your client’s config format.For Cursor, VS Code with the MCP extension, or other clients, refer to that client’s documentation for how to register a stdio MCP server — the
command, args, and env fields map directly to the structure above.6
Restart your AI client and verify the connection
Restart your AI client after saving the config. Look for “sendwhale” to appear in the client’s list of connected MCP servers or available tools.If the server does not appear, check the client’s MCP logs or stderr output for startup errors. Common causes are a missing or incorrect path to
stdio.ts, missing environment variables, or an expired access token. See the Troubleshooting page for a full list of diagnostic steps.MCP server logs are written to stderr. stdout is reserved exclusively for MCP protocol messages. Do not add any code or tooling that writes to stdout — doing so will corrupt the MCP message stream and cause parsing failures in your AI client.