Skip to content
Charming Docs
Esc
navigateopen⌘Jpreview
On this page

Set up n8n

Use Charming tools in an n8n AI Agent workflow.

Pair n8n with Charming

n8n’s MCP Client Tool needs a bearer token. Start a device pairing from a terminal:

curl -sS -X POST https://charm.ing/api/pair/start \
  -H 'Content-Type: application/json' \
  -d '{"label":"n8n"}'

The response contains a user_code, a device_code, and verification_url. Open charm.ing/pair, enter the user code, and approve access.

Poll for approval with the device code:

curl -sS -X POST https://charm.ing/api/pair/poll \
  -H 'Content-Type: application/json' \
  -d '{"device_code":"PASTE_DEVICE_CODE"}'

If the response says pending, wait and poll again. Copy the chrm_user_* token from the first approved response; Charming shows it once.

Add the MCP Client Tool

  1. Add an AI Agent node to your n8n workflow.

  2. Attach an MCP Client Tool node.

  3. Set SSE Endpoint to:

    https://charm.ing/mcp
  4. Choose Bearer Auth and create a credential with the chrm_user_* token.

  5. Choose the Charming tools the workflow may use.

  6. Run the workflow and ask the agent to list your Charming apps.

The workflow receives each finished app’s Charming URL. n8n does not draw the app inside the workflow editor.

See n8n’s MCP Client Tool guide for node and credential options.

Paired tokens expire after 30 days. Pair again to replace one, then revoke the old token under Connected agents.

Was this page helpful?