n8n
Connect Madgicx MCP to n8n workflows using the MCP Client node.
n8n
n8n supports MCP servers through the MCP Client tool node. You can connect Madgicx MCP to any n8n AI Agent workflow using HTTP Streamable transport and OAuth 2.0 authentication.
Requirements
- An n8n instance (self-hosted or n8n Cloud)
- An AI Agent workflow (or any workflow that supports tool nodes)
Setup Instructions
Add an MCP Client Node
You can add the MCP Client node in two ways:
- Search: Open the nodes panel and search for MCP Client
- AI Agent: Add an AI Agent node → click Tool → select MCP Client Tool
Configure the MCP Client Node
In the MCP Client node parameters, set:
- Endpoint:
https://mcp.madgicx.com/mcp - Server Transport:
HTTP Streamable - Authentication:
MCP OAuth2 - Tools to Include:
All
Create MCP OAuth2 Credentials
Click the Credential for MCP OAuth2 API dropdown → Create new credential, then fill in the following:
| Field | Value |
|---|---|
| Server URL | https://app.madgicx.com/.well-known/oauth-authorization-server |
| Use Dynamic Client Registration | Enabled |
Leave all other fields at their defaults. Dynamic Client Registration will automatically handle client ID and secret provisioning.
Authenticate with Madgicx
Click Connect in the credentials dialog. A browser window will open where you:
- Log in to your Madgicx account
- Select team — choose which Madgicx team to connect
- Authorize — click the "Authorize" button
Once authorized, you'll see Account connected in the credentials dialog.
n8n will display an OAuth Redirect URL in the credentials dialog. When prompted during the OAuth flow to enter a callback or redirect URL, use the URL shown there.
Verify the Connection
Run the workflow and ask your AI Agent: "What Madgicx team am I connected to?" — it should call the whoiam tool and return your user and team details.