> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to the Echtpost MCP server

The Echtpost MCP connector routes your AI agent's tool calls to Echtpost's own MCP server through Scalekit. Each user signs in to Echtpost once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 22 tools.

**Authentication:** OAuth 2.1/DCR
**Categories:** Communication, Automation
**Tools:** 22: 0 read, 22 write, 0 destructive
**Users sign in with:** OAuth
**OAuth app:** Your own Echtpost MCP server app
**Built by:** Vendor MCP
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=ECHTPOSTMCP)

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the Echtpost MCP connection

   In **AgentKit > Connections**, create an Echtpost MCP connection and copy its redirect URI. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

4. ### Register an OAuth app

   Echtpost MCP server connections use your own OAuth app. Register one with Echtpost MCP server and add the redirect URI you copied.

   Then enter the app's Client ID and Client Secret on the Echtpost MCP connection.

5. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   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.actions

   const connector = 'echtpostmcp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Echtpost MCP:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'echtpostmcp_get_me',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_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.actions

   connection_name = "echtpostmcp"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize Echtpost MCP:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="echtpostmcp_get_me",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user signs in once. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'echtpostmcp_cancel_card',
  toolInput: {
    id: '<id>',
  },
  connector: 'echtpostmcp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="echtpostmcp_cancel_card",
    tool_input={
        "id": "<id>",
    },
    connection_name="echtpostmcp",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `echtpostmcp_cancel_card`

Cancel Card · Write

Cancel a scheduled postcard. Only cards where "cancelable" is true can be cancelled. Cancellation is asynchronous and may take a few minutes.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `id` (`string`, required): UUID of the card to cancel.

Example input: `{"id":"<id>"}`

### `echtpostmcp_create_card`

Create Card · Write

Create a postcard with custom message and font. Validates that text fits on the card. Use preview_fit first to check if your message fits. Specify recipients via existing contact IDs, group IDs, or inline recipient objects (combinable). For simpler creation from a saved template, use create_card_from_template instead.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `content` (`string`, required): Main message text to print on the postcard.
- `deliver_at` (`string`, required): Delivery date. Accepted values: today, tomorrow, YYYY-MM-DD, or N-days-from-now.
- `motive_id` (`integer`, required): Numeric ID of the motive (front image design) to use on the card.
- `content_ps` (`string`, optional): Optional postscript line printed after the main message (P.S.).
- `content_vertical` (`string`, optional): Optional text printed in the vertical side panel of the card.
- `font_color` (`string`, optional): Font color for the card text. Accepted values: black, blue.
- `font_family` (`string`, optional): Font family for the card text. Accepted values: architects_daughter, reenie_beanie, special_elite.
- `font_size` (`integer`, optional): Font size in pt. Allowed ranges: architects_daughter 12–14, reenie_beanie 15–17, special_elite 11–13.
- `group_ids` (`array`, optional): Array of contact group IDs. All members of each group receive the card.
- `notification_email` (`string`, optional): Email address to receive delivery notifications.
- `notification_send_on` (`string`, optional): Date to send the notification (ISO 8601, YYYY-MM-DD). Defaults to the delivery date.
- `notification_type` (`string`, optional): When to send a delivery notification. Accepted values: before_send, after_sent.
- `qr_code_url` (`string`, optional): URL to encode as a QR code printed on the card.
- `recipient_ids` (`array`, optional): Array of existing contact IDs to send the card to.
- `recipients` (`array`, optional): Array of inline recipient objects. Each requires last_name, street, zip, city, and country_code.

Example input: `{"content":"<content>","deliver_at":"<deliver_at>","motive_id":1}`

### `echtpostmcp_create_card_from_template`

Create Card From Template · Write

Create a postcard from an existing template. The template provides the message, font, and motive. Specify recipients via existing contact IDs, group IDs, or inline recipient objects (combinable). Use list_templates to find templates.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `deliver_at` (`string`, required): Delivery date. Accepted values: today, tomorrow, YYYY-MM-DD, or N-days-from-now.
- `template_id` (`integer`, required): Numeric ID of the template to use for this card.
- `group_ids` (`array`, optional): Array of contact group IDs. All members of each group receive the card.
- `recipient_ids` (`array`, optional): Array of existing contact IDs to send the card to.
- `recipients` (`array`, optional): Array of inline recipient objects. Each requires last_name, street, zip, city, and country_code.

Example input: `{"deliver_at":"<deliver_at>","template_id":1}`

### `echtpostmcp_create_contact`

Create Contact · Write

Create a new contact for the account. At minimum, provide last_name and a postal address (street, zip, city, country_code). Optionally assign to groups via group_ids or group_names (group_names auto-creates groups if they do not exist).

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `city` (`string`, required): City for the recipient's postal address.
- `country_code` (`string`, required): ISO 3166-1 alpha-2 country code (e.g. DE for Germany).
- `last_name` (`string`, required): Recipient's last name.
- `street` (`string`, required): Street name and house number.
- `zip` (`string`, required): Postal code for the recipient's address.
- `birthdate` (`string`, optional): Contact's birthdate in ISO 8601 format (YYYY-MM-DD).
- `company_name` (`string`, optional): Company name for the recipient.
- `custom_salutation` (`string`, optional): Custom greeting line. Use when greeting_style is set to custom.
- `department` (`string`, optional): Department within the company.
- `external_id` (`string`, optional): Your own reference ID for this record.
- `first_name` (`string`, optional): Recipient's first name.
- `gender` (`string`, optional): Gender identifier. Accepted values: male_user, female_user, diverse_user.
- `greeting_style` (`string`, optional): Greeting style for the card. Accepted values: formal, informal, custom.
- `group_ids` (`array`, optional): Array of contact group IDs. All members of each group receive the card.
- `group_names` (`array`, optional): Array of group names. Groups are created automatically if they do not exist.
- `state_code` (`string`, optional): State or province code (e.g. BY for Bavaria).
- `title` (`string`, optional): Academic or professional title (e.g. Dr., Prof.).

Example input: `{"city":"<city>","country_code":"<country_code>","last_name":"<last_name>","street":"<street>","zip":"<zip>"}`

### `echtpostmcp_create_group`

Create Group · Write

Create a new contact group. Provide a name; optionally an external_id for your own reference.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `name` (`string`, required): Group name.
- `external_id` (`string`, optional): Your own reference ID for this record.

Example input: `{"name":"<name>"}`

### `echtpostmcp_delete_contact`

Delete Contact · Write

Delete a contact by ID. This is permanent and cannot be undone.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `id` (`integer`, required): Numeric ID of the contact to delete.

Example input: `{"id":1}`

### `echtpostmcp_delete_group`

Delete Group · Write

Delete a contact group. Fails if the group has attached workflows.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `id` (`integer`, required): Numeric ID of the group to delete.

Example input: `{"id":1}`

### `echtpostmcp_get_card`

Get Card · Write

Get details of a specific postcard by its ID. Returns status, content, font, delivery date, and whether the card is cancelable.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `id` (`string`, required): UUID of the card to retrieve.

Example input: `{"id":"<id>"}`

### `echtpostmcp_get_contact`

Get Contact · Write

Get details of a specific contact by their ID. Returns all fields including first_name, last_name, greeting, address, and group_ids.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `id` (`integer`, required): Numeric ID of the contact to retrieve.

Example input: `{"id":1}`

### `echtpostmcp_get_group`

Get Group · Write

Get details of a specific contact group by ID. Returns name, external_id, and recipient count.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `id` (`integer`, required): Numeric ID of the group to retrieve.

Example input: `{"id":1}`

### `echtpostmcp_get_me`

Get Me · Write

Get account info, user email, API key metadata, and current credit balance. Use this to verify the connection and check available credits.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs: none.

Example input: `{}`

### `echtpostmcp_get_motive`

Get Motive · Write

Get details of a specific motive (postcard design) by its ID.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `id` (`integer`, required): Numeric ID of the motive (postcard design) to retrieve.

Example input: `{"id":1}`

### `echtpostmcp_get_template`

Get Template · Write

Get details of a specific template by ID. Returns content, font, motive, and QR code URL.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `id` (`integer`, required): Numeric ID of the template to retrieve.

Example input: `{"id":1}`

### `echtpostmcp_list_cards`

List Cards · Write

List postcards for the account. Returns id, status (pending/scheduled/sent/canceled), content, font, delivery date, and whether the card is cancelable. Supports status filter.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `page` (`integer`, optional): Page number for paginated results. Defaults to 1.
- `per_page` (`integer`, optional): Number of results per page. Defaults to 50, maximum 100.
- `status` (`string`, optional): Filter cards by status. Accepted values: pending, scheduled, sent, canceled.

Example input: `{}`

### `echtpostmcp_list_contacts`

List Contacts · Write

List contacts for the account. Returns id, first_name, last_name, address, greeting, and other fields. Supports search and pagination (50 per page).

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `page` (`integer`, optional): Page number for paginated results. Defaults to 1.
- `per_page` (`integer`, optional): Number of results per page. Defaults to 50, maximum 100.
- `search` (`string`, optional): Search term to filter results by name or company.

Example input: `{}`

### `echtpostmcp_list_credits`

List Credits · Write

Show the current credit balance, how many local/foreign postcards can be sent, and the price per card in EUR.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs: none.

Example input: `{}`

### `echtpostmcp_list_groups`

List Groups · Write

List contact groups for the account. Groups can be used as recipients when creating cards.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `page` (`integer`, optional): Page number for paginated results. Defaults to 1.
- `per_page` (`integer`, optional): Number of results per page. Defaults to 50, maximum 100.

Example input: `{}`

### `echtpostmcp_list_motives`

List Motives · Write

List available postcard motives (designs). Returns id, name, orientation, and feature flags. Supports search by name/description. Use the motive id when creating cards.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `page` (`integer`, optional): Page number for paginated results. Defaults to 1.
- `per_page` (`integer`, optional): Number of results per page. Defaults to 50, maximum 100.
- `search` (`string`, optional): Search term to filter results by name or company.

Example input: `{}`

### `echtpostmcp_list_templates`

List Templates · Write

List available card templates for the account. Templates contain pre-configured message, font, and motive — use create_card_from_template to send one.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `page` (`integer`, optional): Page number for paginated results. Defaults to 1.
- `per_page` (`integer`, optional): Number of results per page. Defaults to 50, maximum 100.

Example input: `{}`

### `echtpostmcp_preview_fit`

Preview Fit · Write

Check if a message fits on a postcard with the given font settings. Returns fits (true/false), lines used, max lines, and a suggested smaller font size if it overflows. Use this before create_card to iterate on message length.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `content` (`string`, required): Message text to check for fit on the postcard.
- `font_family` (`string`, optional): Font family for the card text. Accepted values: architects_daughter, reenie_beanie, special_elite.
- `font_size` (`integer`, optional): Font size in pt. Allowed ranges: architects_daughter 12–14, reenie_beanie 15–17, special_elite 11–13.
- `sample_greeting` (`string`, optional): Sample greeting string used to expand the {anrede} placeholder when checking fit.

Example input: `{"content":"<content>"}`

### `echtpostmcp_update_contact`

Update Contact · Write

Update one or more fields on an existing contact. Optional fields not provided are left unchanged. To clear an optional field, pass an empty string. group_ids replaces all memberships; group_names additively assigns groups (auto-creating).

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `id` (`integer`, required): Numeric ID of the contact to update.
- `birthdate` (`string`, optional): Contact's birthdate in ISO 8601 format (YYYY-MM-DD).
- `city` (`string`, optional): City for the recipient's postal address.
- `company_name` (`string`, optional): Company name for the recipient.
- `country_code` (`string`, optional): ISO 3166-1 alpha-2 country code (e.g. DE for Germany).
- `custom_salutation` (`string`, optional): Custom greeting line. Use when greeting_style is set to custom.
- `department` (`string`, optional): Department within the company.
- `external_id` (`string`, optional): Your own reference ID for this record.
- `first_name` (`string`, optional): Recipient's first name.
- `gender` (`string`, optional): Gender identifier. Accepted values: male_user, female_user, diverse_user.
- `greeting_style` (`string`, optional): Greeting style for the card. Accepted values: formal, informal, custom.
- `group_ids` (`array`, optional): Array of contact group IDs. All members of each group receive the card.
- `group_names` (`array`, optional): Array of group names. Groups are created automatically if they do not exist.
- `last_name` (`string`, optional): Recipient's last name.
- `state_code` (`string`, optional): State or province code (e.g. BY for Bavaria).
- `street` (`string`, optional): Street name and house number.
- `title` (`string`, optional): Academic or professional title (e.g. Dr., Prof.).
- `zip` (`string`, optional): Postal code for the recipient's address.

Example input: `{"id":1}`

### `echtpostmcp_update_group`

Update Group · Write

Update a contact group. Only provided fields are changed.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `id` (`integer`, required): Numeric ID of the group to update.
- `external_id` (`string`, optional): Your own reference ID for this record.
- `name` (`string`, optional): Group name.

Example input: `{"id":1}`

## Related

Other Communication connectors ([all 79](/agentkit/connectors/?category=communication)):

- [Crisp](/agentkit/connectors/crisp/): Scalekit connector, API key, 50 tools
- [Gmail](/agentkit/connectors/gmail/): Scalekit connector, OAuth, 48 tools
- [Google Calendar](/agentkit/connectors/googlecalendar/): Scalekit connector, OAuth, 30 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
