The SMTP2GO MCP connector routes your AI agent's tool calls to SMTP2GO's own MCP server through Scalekit. Each user connects their own SMTP2GO API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 5 tools.
- Tools
- 5
- What they doRead · write · destructive
- 4 · 0 · 14 read0 write1 destructive
- Users sign in with
- API key
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the SMTP2GO MCP connection
In AgentKit > Connections, create a SMTP2GO MCP connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'smtp2gomcp'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize SMTP2GO MCP:', link)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'smtp2gomcp_get_server_variables',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "smtp2gomcp"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize SMTP2GO MCP:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="smtp2gomcp_get_server_variables",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user opens the link once and enters their SMTP2GO credentials there. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toolsmtp2gomcp_get_endpointGets detailed information about a specific SMTP2GO API endpoint, including security schemes and servers.Read-onlyGet Endpoint
Gets detailed information about a specific SMTP2GO API endpoint, including security schemes and servers.
Inputs
methodstringrequired- The HTTP method (e.g. GET, POST, PUT, DELETE).
pathstringrequired- The API endpoint path (e.g. /api/v1/users).
smtp2gomcp_get_server_variablesGets the server variables for each server within the SMTP2GO OpenAPI spec.Read-onlyGet Server Variables
Gets the server variables for each server within the SMTP2GO OpenAPI spec.
Inputs
This tool takes no inputs.
smtp2gomcp_list_endpointsLists all API paths and their HTTP methods with summaries, organized by path.Read-onlyList Endpoints
Lists all API paths and their HTTP methods with summaries, organized by path. Results can be passed directly into 'get-endpoint'.
Inputs
This tool takes no inputs.
smtp2gomcp_search_endpointsPerforms a deep search through paths, operations, and parameters to discover relevant SMTP2GO API endpoints.Read-onlySearch Endpoints
Performs a deep search through paths, operations, and parameters to discover relevant SMTP2GO API endpoints. Use this tool to find specific API capabilities, required parameters, or data models based on search keywords. Results can be passed directly into 'get-endpoint'.
Inputs
patternstringrequired- Search pattern (case-insensitive).
smtp2gomcp_execute_requestExecutes an SMTP2GO API request using a given HAR (HTTP Archive) request object — the method, url, headers, query string, and body describing the call to make.DestructiveExecute Request
Executes an SMTP2GO API request using a given HAR (HTTP Archive) request object — the method, url, headers, query string, and body describing the call to make. Use 'list-endpoints', 'get-endpoint', and 'search-endpoints' first to discover the correct path, method, and parameters.
Inputs
harRequestobjectrequired- HAR request object describing the API call to execute.
No tools match.