Skip to content

Menu

Knock MCP Server logo

Knock MCP Server

Published

At a glance

GitHub repository
knocklabs/knock-mcp
Watch out for
A service token is a high-privilege credential, and service-token sessions enable all tool groups, so least privilege depends on the token's own scopes.

Knock publishes a remote MCP server at https://mcp.knock.app/mcp that sits in front of the Knock API. It lets a coding assistant work with your notification setup: workflows, channels, templates, email layouts, users, tenants and message logs. The source is public in knocklabs/knock-mcp, which runs as a Cloudflare Worker.

Most people never run it themselves. You point an MCP client at the URL and sign in with your Knock account through OAuth 2.1 with PKCE. During that consent step you pick which tool groups to grant, and you choose read only or read and write access for the Management API tools.

For CI or unattended agents there is a second path: pass a Knock service token as a bearer header. Knock describes this as token passthrough rather than MCP-conformant OAuth, and a service-token session turns on every tool group.

How it connects

Your AI app

An assistant or agent that supports MCP

Knock MCP Server

Runs as

  • Local process
  • Remote (HTTP)

Gives the agent

  • Management API in code mode
  • Resource management
  • Commits
  • Debugging
  • Data management
  • Documentation search

Knock

Signs in with

  • OAuth / browser sign-in
  • Token
Your AI app talks to Knock MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Management API in code mode
search_mapi explores the Management API's OpenAPI spec, execute_mapi_read runs GET calls and execute_mapi_write runs POST, PUT, PATCH and DELETE when write access is granted, all from sandboxed JavaScript.
Resource management
An opt-in classic tool group creates and manages workflows, channels, templates, email layouts and partials.
Commits
A tool group for committing changes and promoting them across Knock environments.
Debugging
Inspect environments and view logs of sent messages.
Data management
An opt-in group for managing users, tenants and object data, useful for building test fixtures.
Documentation search
Search Knock's documentation and guides from inside the agent session. A separate Knock agent group, on by default, starts sessions with the same Knock agent found in the dashboard.

Setting it up

For Claude Code, run claude mcp add --transport http knock https://mcp.knock.app/mcp, then start Claude Code and run /mcp to sign in with your Knock account. In Cursor, go to Settings, Cursor Settings, Tools & Integrations, click New MCP server, and add a "knock" entry with "url": "https://mcp.knock.app/mcp" to mcp.json; sign in when Cursor prompts. The repo README shows the same URL with "type": "http" for Claude Desktop, and Knock is also listed in Claude's connectors directory. On first connection a browser window opens where you authorize and pick tool groups. For headless use, generate a service token under Settings, Service tokens in the Knock dashboard and add a headers block with "Authorization": "Bearer ${KNOCK_SERVICE_TOKEN}"; clients that send an Authorization header skip OAuth. Self-hosting needs Node.js, a Cloudflare account with Workers, wrangler, an OAUTH_KV namespace and the variables in .dev.vars.example, after which npm run dev serves http://localhost:8788/mcp.

Run in a terminal
claude mcp add --transport http knock https://mcp.knock.app/mcp

If the server needs a sign-in or an API key, the setup notes above say which. Combine several servers in the MCP config generator

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Create a welcome email workflow for a B2B SaaS app from a plain-language description.
  • Trigger a specific workflow for a test user to check an integration end to end.
  • Seed a test user and a tenant such as acme-corp in a development environment.
  • Look up recent message logs to see why a notification didn't go out.
  • Commit configuration changes and promote them to the next environment.

Limitations and things to watch

  • A service token is a high-privilege credential, and service-token sessions enable all tool groups, so least privilege depends on the token's own scopes.
  • Management API writes through execute_mapi_write and the manage groups change real workflows and templates, so grant read only unless you need writes.
  • The classic per-resource tools are marked deprecated and are opt-in; the default set favours the code mode tools.
  • Self-hosting requires Cloudflare Workers, a KV namespace and a Knock AuthKit setup, not a simple local stdio process.
  • When analytics is configured on a deployment, tool-call events are recorded, and ordinary personal data in tool parameters is not removed automatically.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…