Route MCP tool calls through an intelligent gateway with Claude AI
Needs changesWhat this workflow does
This AI workflow has 19 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Sheets and Anthropic Chat Model.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Validate Auth and MCP Schema (Code): runs custom JavaScript code
- Lookup Tool in Registry (Google Sheets): uses Google Sheets
- Resolve Tool Config and Permissions (Code): runs custom JavaScript code
- Claude AI Intent and Safety Verification (AI Agent): runs an AI agent, with model: Claude AI Model
- Parse Intent Verification Result (Code): runs custom JavaScript code
- Check Rate Limit and Quota (Google Sheets): uses Google Sheets
- Wait: pauses before continuing
- Enforce Rate Limit and Build Execution Context (Code): runs custom JavaScript code
- Dry Run or Live Execution? (If): checks a condition and branches into true / false
- Execute Backend API Call (HTTP Request): calls an HTTP API
…plus 7 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Claude AI Intent and Safety Verification (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Claude AI Intent and Safety Verification (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Send Email
n8n-nodes-base.emailSend - Respond to Webhook
n8n-nodes-base.respondToWebhook - Wait
n8n-nodes-base.wait
From the author
This workflow transforms traditional REST APIs into structured, AI-accessible MCP (Model Context Protocol) tools. It provides a unified gateway that allows Claude AI to safely, granularly, and auditibly interact with any business system — CRM, ERP, databases,…