Build your first AI MCP Server
Configured with Agent, Chat Trigger, Debug Helper, Execute Workflow Trigger, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- AI & models
- Integration
- Trigger
- Routing
- Transform
- Subworkflow
- Data store
- Web / API
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| AI Agent | AI & models | Agent | See node parameters |
| SearchEvent | Integration | Google Calendar Tool | getAll |
| CreateEvent | Integration | Google Calendar Tool | See node parameters |
| UpdateEvent | Integration | Google Calendar Tool | update |
| DeleteEvent | Integration | Google Calendar Tool | delete |
| Google Calendar MCP | Trigger | Mcp Trigger | See node parameters |
| When Executed by Another Workflow | Trigger | Execute Workflow Trigger | See node parameters |
| Switch | Routing | Switch | See node parameters |
| Convert Text to Upper Case | Transform | Edit Fields | See node parameters |
| Convert Text to Lower Case | Transform | Edit Fields | See node parameters |
| Convert Text | Subworkflow | Tool Workflow | See node parameters |
| When chat message received | Trigger | Chat Trigger | See node parameters |
| Simple Memory | Data store | Memory Buffer Window | See node parameters |
| Calendar MCP | Integration | Mcp Client Tool | See node parameters |
| My Functions | Integration | Mcp Client Tool | See node parameters |
| My Functions Server | Trigger | Mcp Trigger | See node parameters |
| Random user data | Integration | Debug Helper | See node parameters |
| Generate random user data | Subworkflow | Tool Workflow | See node parameters |
| Return only some fields | Transform | Edit Fields | See node parameters |
| Joke Request | Web / API | HTTP Request | See node parameters |
| Random Jokes | Subworkflow | Tool Workflow | See node parameters |
| OpenAI 4o | AI & models | OpenAI Chat Model | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
googleCalendarOAuth2ApiopenAiApi
Workflow notes
Activate the workflow to make the MCP Trigger work
Activate the workflow to make the MCP Trigger work
In order to make the MCP server available, you need to activate the workflow.
Then copy the Production URL of the MCP Trigger and paste it in the corresponding MCP Client tool.
MCP Clients
MCP Clients
For every tool here you need to obtain he corresponding Production URL from the MCP Triggers on the right 👉
Try these example requests with the AI Agent
Try these example requests with the AI Agent
My Functions MCP
-
Use your tools to convert this text to lower case:
EXAMPLE TeXt -
Use your tools to convert this text to upper case:
example TeXt -
Generate 5 random user data, please.
-
Please obtain 3 jokes.
Calendar MCP
-
What is my schedule for next week?
-
I have a meeting with John tomorrow at 2pm. Please add it to my Calendar.
-
Adjust the time of my meeting with John tomorrow from 2pm to 4pm, please.
-
Cancel my meeting with John, tomorrow.
The My Functions MCP calls this sub-workflow every time.
The My Functions MCP calls this sub-workflow every time.
A subworkflow is a separate workflow that can be called by other workflows and is able to receive parameters. Learn more about sub-workflows here
Google Calendar tools require credentials
Google Calendar tools require credentials
If you don't have your Google Credentials set up in n8n yet, watch this video to learn how to do it.
If you are using n8n Cloud plans, it's very intuitive to setup and you may not even need the tutorial.
Author
Author
Solomon
Freelance consultant from Brazil, specializing in automations and data analysis. I work with select clients, addressing their toughest projects.
Currently running the Scrapes community with Simon 💪
For business inquiries, email me at user@example.com Or message me on Telegram for a faster response.
Check out my other templates
👉 https://n8n.io/creators/solomon/
Need help?
Need help?
For getting help with this workflow, please create a topic on the community forums here: https://community.n8n.io/c/questions/
Why model 4o? 👆
Why model 4o? 👆
After testing 4o-mini it had some difficulties handling the calendar requests, while the 4o model handled it with ease.
Depending on your prompt and tools, 4o-mini might be able to work well too, but it requires further testing.
Build your first AI MCP Server
Build your first AI MCP Server
Purpose and structure
This folder contains the Build your first AI MCP Server workflow. Its executable nodes use agent, chatTrigger, debugHelper, executeWorkflowTrigger, googleCalendarTool, httpRequest, lmChatOpenAi, mcpClientTool, mcpTrigger, memoryBufferWindow, set, switch, toolWorkflow. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
Google Calendar MCP, When Executed by Another Workflow, When chat message received, My Functions Server
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Debughelper/1184_Debughelper_HTTP_Create_Webhook.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Learn How to Build an MCP Server and Client