Build an MCP server with Airtable
Who is this for?
This template is designed for anyone who wants to integrate MCP with their AI Agents using Airtable. Whether you're a developer, a data analyst, or an automation enthusiast, if you're looking to leverage the power of MCP and Airtable in your n8n workflows, this template is for you.
What problem is this workflow solving?
This template caters to MCP beginners seeking a hands-on example and developers looking to integrate Airtable MCP service. When integrating MCP with Airtable, manually updating AI Agents after changes to Airtable data on the MCP Server is time-consuming and error-prone.
This template automates the process, enabling the AI Agent to instantly recognize changes made to Airtable on the MCP Server. In data management, for example, it ensures that record updates or additions in Airtable are automatically detected by the AI Agent. With detailed steps, it simplifies the integration process for all users.
What this workflow does
This workflow focuses on integrating MCP with Airtable within n8n. Specifically, it allows you to build an MCP Server and Client using Airtable nodes in n8n. Any changes made to the Airtable Base/Table on the MCP Server are automatically recognized by the MCP Client in the workflow. This means that you can make changes to your Airtable (such as adding, deleting, or modifying records) on the MCP Server, and the MCP Client in the n8n workflow will immediately detect these changes without any manual intervention.
Setup
Requirements
An active n8n account. Access to Airtable API. A sample base and rows in Airtable that you can use to test. An API key from your preferred LLM to power the AI agent.
Step-by-step guide
- Create a new workflow in n8n: Log in to your n8n account and create a new workflow.
- Add Airtable nodes: Search for and add the Airtable nodes to your workflow that you wish the MCP client to have access to.
- Set up the MCP Server and Client: Use the appropriate nodes in n8n to set up the MCP Server and Client. Connect the Airtable nodes to the MCP nodes as required.
- Activate and test the workflow: Talk to the chat trigger once all credentials have been updated and table data synced and try adding some rows, deleting or finding and updating cells.
How to customize this workflow to your needs
If you want to customize this workflow, you can:
- Modify the triggers: You can change the conditions under which the MCP Client detects changes. For example, you can set it to detect changes only in specific fields or based on certain record values in Airtable.
- Integrate with other services: You can add more nodes to the workflow to integrate with other services, such as sending notifications to Slack or triggering further actions based on the detected Airtable changes.
Need help?
Feel free to contact us at 1 Node. Get instant access to a library of free resources we created.
Build an MCP Server with AI Agent and OpenAI Chat Model
This n8n workflow demonstrates how to set up a Model Context Protocol (MCP) server that leverages an AI Agent powered by an OpenAI Chat Model and a simple memory to respond to incoming chat messages. This allows you to expose an intelligent agent that can maintain conversational context.
What it does
- Listens for MCP Chat Messages: The workflow is triggered by incoming chat messages via the MCP Server Trigger.
- Initializes Simple Memory: A
Simple Memorynode is used to maintain conversational context across messages, allowing the AI agent to remember previous interactions. - Configures OpenAI Chat Model: An
OpenAI Chat Modelnode is set up to provide the underlying language model for the AI agent's responses. - Processes with AI Agent: An
AI Agentnode receives the incoming chat message and the conversational memory. It uses the OpenAI Chat Model to generate a relevant response, taking into account the conversation history. - Sends Response via MCP Client: The AI Agent's response is then sent back to the client using the
MCP Client Toolnode.
Prerequisites/Requirements
- n8n Instance: An active n8n instance.
- OpenAI API Key: An API key from OpenAI to use their Chat Model. This will need to be configured as a credential in n8n.
- LangChain Nodes: Ensure the
@n8n/n8n-nodes-langchainpackage is installed and enabled in your n8n instance.
Setup/Usage
- Import the Workflow: Import the provided JSON into your n8n instance.
- Configure OpenAI Credentials:
- Find the "OpenAI Chat Model" node.
- Click on the "Credentials" field and select or create a new "OpenAI API" credential.
- Enter your OpenAI API Key.
- Activate the Workflow: Once the credentials are set, activate the workflow.
- Interact with the MCP Server: Your n8n instance will now be running an MCP server. You can send chat messages to it using an MCP client, and the AI agent will respond. The exact URL for the MCP server will be visible in the "MCP Server Trigger" node after activation.
Related Templates
Generate, encrypt, and send invoices with PDF Generator API & Google Suite
Why Creating and sending invoices manually is a major administrative bottleneck. It's not only slow but also prone to human error, such as creating duplicate invoice numbers or sending sensitive financial data in an unsecured format. This workflow solves these problems by creating a robust, end-to-end automation. It ensures every invoice has a unique ID, is professionally generated, is password-protected, and is delivered to your customer automatically. What This workflow provides a complete, secure solution for automated invoicing. It is designed to be triggered by a Webhook (e.g., from your e-commerce store, CRM, or billing platform) that provides customer and order details. The workflow then executes the following steps: Generate & Verify ID: It first generates a new invoice ID. It then performs a critical check by reading your master Google Sheet to ensure this ID is unique, preventing duplicate invoices. Generate PDF: Once the ID is verified, it passes the data to the PDF Generator API. This service dynamically populates your custom invoice template. (PDF Generator API makes it incredibly easy to build and manage your document templates via their web-based editor). Encrypt Document: For enhanced security, the workflow uses a PDF Generator API operation to encrypt the newly generated invoice with a password, protecting your client's sensitive data. Store & Deliver: Finally, it uploads the secure PDF to a specified Google Drive folder for your records and then automatically sends it to the customer as an attachment using Gmail. How Prerequisites: You will need active accounts for: PDF Generator API (for both generation and encryption) Google Suite (for Sheets, Drive, and Gmail) PDF Generator API Setup: Log in to your PDF Generator API account and use their template builder to create your invoice design. Note your Template ID, API Key, and API Secret. In the n8n PDFGeneratorAPI node (Generate a PDF document), create new credentials using your Key and Secret. In the node's parameters, select your Template ID from the list. Google Sheets Setup: Create a Google Sheet to act as your master list of invoices. In the Check If ID Already Exists node, authenticate your Google Sheets account. Set the Spreadsheet ID and Sheet Name. In the "Columns to Return" field, enter the name of the column where you store your invoice IDs. Security & Delivery Setup: Encrypt Node: In the Encrypt PDF document node, authenticate your PDF Generator API credentials (the same ones from Step 2). You can set a static password, or for better security, use an expression to set a dynamic password from the webhook data (e.g., the customer's postal code or order ID). Google Drive Node: Authenticate the Upload file node and specify the Drive and Folder ID where invoices should be stored. Gmail Node: Authenticate the Send a message + file node. Use an expression to map the customer's email from the trigger data into the "To" field. Test & Activate: The Webhook node has pinned test data. You can click "Test workflow" to run the entire process with this sample data. Once you confirm the file is generated, encrypted, and sent, connect your live app (e.g., Shopify, Stripe, etc.) to the production Webhook URL. Activate the workflow.
Workshop certificate generator with Google Drive, Gmail & QR verification
Automated Pre-Issued Workshop Certificate Generator Description: This workflow automates the entire pre-issuance process of workshop participation certificates. When an attendee submits a registration form via a webhook, the workflow validates the data, verifies the attendee’s email, generates a unique Certificate ID and QR code, creates a styled certificate image, stores it on Google Drive, emails the certificate to the attendee, logs all details in Google Sheets, and notifies organizers via Slack — all fully automated. This template is ideal for institutions, event teams, training organizations, hackathons, and workshops that want to automate certificate issuing and remove manual processing. --- Key Features: Webhook-based registration intake Required field + email validation using VerifiEmail API Auto-generated Certificate ID, QR code, and verification URL Dynamic HTML-to-Image certificate generation Automatic email delivery with certificate attachment (Gmail) Auto-upload certificate to Google Drive Real-time Slack notification for organizers Registration + certificate logging in Google Sheets Instant webhook response with certificate metadata --- How It Works (Short Summary): Webhook Trigger receives registration details. Validator checks for mandatory fields (name, email, event). Email verification ensures the email is deliverable. Certificate generation creates unique ID + QR + HTML. HTML-to-Image converts the certificate to PNG. Upload to Google Drive stores the certificate file. Email node sends the certificate to the attendee. Google Sheets logs the registration + certificate details. Slack message notifies organizers instantly. Webhook response returns success JSON. --- Use Cases: Workshops Webinars Training sessions Bootcamps Corporate events Hackathons Student registrations Event ticketing / entry pass systems --- Required Credentials: VerifiEmail API – email validation at verifi.email HTMLCSStoImage API – convert certificate HTML to PNG at htmlcsstoimg.com Gmail OAuth2 – send certificate emails Google Drive OAuth2 – store certificate files Google Sheets OAuth2 – logging Slack API – organizer notifications --- Setup Instructions: Import this template into your n8n instance. Open the Webhook node and copy the generated webhook URL. Use this URL in your registration form / frontend / Postman. Add all required credentials in the Credentials Manager. Customize certificate HTML (colors, branding, logos) if needed. Test with a sample POST request containing all required fields: name email event date time venue organization designation Enable the workflow. --- Input Format (POST Body Required): json { "name": "John Doe", "email": "john@example.com", "event": "AI Workshop 2025", "date": "25 Nov 2025", "time": "10:00 AM", "venue": "Auditorium Hall", "organization": "Tech University", "designation": "Student" } --- Output (Webhook Response): json { "success": true, "message": "Registration successful! Certificate sent to your email.", "certificateId": "CERT-12345-ABCD", "verifyUrl": "https://workshopverify.com/cert?id=CERT-12345-ABCD" } --- Why This Workflow is Useful: Eliminates manual certificate design & sending Ensures professional, consistent certificates Reduces event staff workload Guarantees accurate data logging Provides instant attendee confirmation Enhances event experience with automation ---
Release a new version via Telegram bot command
This workflow allows you to release a new version via a Telegram bot command. This workflow can be used in your Continous Delivery pipeline. Telegram Trigger node: This node will trigger the workflow when a message is sent to the bot. If you want to trigger the workflow via a different messaging platform or a service, replace the Telegram Trigger node with the Trigger node of that service. IF node The IF node checks for the incoming command. If the command is not deploy, the IF node will return false, otherwise true. Set node: This node extracts the value of the version from the Telegram message and sets the value. This value is used later in the workflow. GitHub node: This node creates a new version release. It uses the version from the Set node to create the tag. NoOp node: Adding this node is optional.