Knock MCP server for AI agents

Live

BEARER TOKEN

NOTIFICATIONS

Communication

Knock gives your agent notification infrastructure in your Knock account: trigger workflows, manage users, objects, tenants, and audiences, update preferences and channel data, and read message delivery logs and events.

  • Per-user credentials: each call uses the actual user's access token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Knock
agent · Acme Q3
Run
Trigger the invoice-paid workflow for user_123.
S
knock_workflow_trigger
204ms
Notifications agent
Triggered the invoice-paid workflow for user_123.
Sources: Knock workflow trigger, 1 recipient
knock
1 recipient
18:29
Message Claude...

Tools your notification agent reaches for on Knock, scoped per user.

CALL ANY TOOL
54 tools for notification in Knock: trigger and cancel workflows, manage users, objects, tenants, audiences, and schedules, set channel data and preferences, and read messages and delivery logs.
knock_audience_members_add
Add audience members
Add one or more members to the specified audience. Returns an empty response on success (HTTP 204).
Parameters
Name
Type
Required
Description
key
string
Required
The key of the audience. Example: new-comment
members
array
Required
A list of audience members to add. You can add up to 1,000 members per request. Example: [{"tenant": "ingen_isla_nublar", "user": {"email": "ellie@ingen.net", "id": "dr_sattler", "name": "Dr. Ellie Sattler"}}]
create_audience
boolean
Optional
Create the audience if it does not exist. Example: false
knock_audience_members_list
List audience members
knock_audience_members_remove
Remove audience members
knock_bulk_operation_get
Get bulk operation
knock_message_archive
Archive message
knock_message_content_get
Get message content
knock_message_delivery_logs_list
List message delivery logs
knock_message_mark_interacted
Message mark interacted
knock_message_mark_read
Read message mark
knock_message_mark_seen
Message mark seen
knock_object_channel_data_get
Get object channel data
knock_object_channel_data_set
Set object channel data
knock_object_delete
Delete object
knock_object_messages_list
List object messages
knock_object_set
Set object
knock_schedules_create
Create schedules
knock_schedules_delete
Delete schedules
knock_schedules_list
List schedules
knock_schedules_update
Update schedules
knock_tenant_get
Get tenant
knock_tenant_set
Set tenant
knock_user_channel_data_get
Get user channel data
knock_user_channel_data_unset
User channel data unset
knock_user_delete
Delete user
knock_user_merge
Merge user
knock_user_messages_list
List user messages
knock_user_preference_set_get
Get user preference set
knock_user_subscriptions_list
List user subscriptions
knock_workflow_cancel
Cancel workflow
knock_workflow_trigger
Trigger workflow

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Knock tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["knock"], toolNames: [
    "knock_user_identify",
    "knock_workflow_trigger",
    "knock_user_messages_list"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Identify a new user, trigger the welcome workflow for them, and list the messages they received" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["knock"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Identify a new user, trigger the welcome workflow for them, and list the messages they received" }],
  tools,
});

// Execute the tool call with the user's vaulted Knock access token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["knock"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Identify a new user, trigger the welcome workflow for them, and list the messages they received" }],
  tools,
});

// Tool call runs with the user's vaulted Knock access token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["knock"] }, pageSize: 100,
});

const agent = new Agent({
  name: "notifications_agent",
  model: "gemini-2.5-pro",
  instruction: "Knock tools scoped to this user",
  tools,
});

await agent.run("Identify a new user, trigger the welcome workflow for them, and list the messages they received");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Knock tool. Click to copy, paste into your agent, done.
Workflows
Copy the prompt
Copied
Trigger the invoice-paid workflow for user_123.
Copy the prompt
Copied
Cancel the in-flight runs of this workflow for this cancellation key.
Copy the prompt
Copied
List the recent workflow runs.
Users and preferences
Copy the prompt
Copied
Identify a user with this name, email, and timezone.
Copy the prompt
Copied
Show the preference sets for user_123.
Copy the prompt
Copied
Set the push token for user_123 on my push channel.
Messages
Copy the prompt
Copied
List the messages sent to user_123.
Copy the prompt
Copied
Show the delivery logs for this message.
Copy the prompt
Copied
Mark this message as read.
SEE HOW AUTH WORKS
Each user connects their own Knock access token once; Scalekit sends it with every call. Tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Knock
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Knock
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Knock
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Knock
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other communication and developer tools connectors.
Engineering Teams
Slack triage
Polls Slack for new messages, classifies bugs and support requests with a LangGraph router, files GitHub issues or Zendesk tickets, and confirms in the thread.
Test other agents
See the same per-user auth pattern across other communication and developer tools connectors.
ENGINEERING
Slack triage agent
Classify new Slack messages as bugs or support requests, file the GitHub issue or Zendesk ticket, and reply in the thread.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Knock access token looks fine in a demo. In production every workflow trigger and user change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Knock today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Knock as the user or through a shared access token?
As the user. Each user connects their own Knock access token once, and Scalekit sends it with every call. Audit logs attribute every workflow trigger and user change to that user, not a shared service account.
Where is the Knock access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Knock?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the get and list tools without knock_user_delete, knock_users_bulk_delete, or knock_tenant_delete, which permanently delete data. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Knock access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
How does the agent send a notification?
knock_workflow_trigger triggers a Knock workflow by its key for one or more recipients, which can be user IDs, inline user objects, or objects. knock_workflow_cancel stops in-flight runs that were triggered with a cancellation_key.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""knock"": {
""url"": ""https://mcp.scalekit.com/knock"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.knock]
url = ""https://mcp.scalekit.com/knock""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""knock"": {
""url"": ""https://mcp.scalekit.com/knock"",
""type"": ""http""
}
}
}