Connect to remote MCP servers and extend AI capabilities with Google Calendar, Google Sheets, and custom tools. Supports OAuth 2.0 authentication, tool discovery, per-server AI instructions, and full call logging.

This guide covers the NEXTPION - AI MCP Servers DLC, which extends the AI Integration Enhancers plugin to connect your AI with remote MCP (Model Context Protocol) servers — including Google Calendar, Google Sheets, and any custom MCP-compatible server — turning your AI into an assistant that can interact with external services.
NEXTPION - AI MCP Servers is a DLC expansion for the AI Integration Enhancers plugin. By default, the AI can only generate text replies and use local function tools. This DLC gives your AI the ability to connect to remote MCP servers and use their tools during conversations — such as checking a user's Google Calendar, looking up data in Google Sheets, or calling any custom API exposed through MCP protocol.
The AI decides when and how to use MCP tools based on conversation context. All MCP operations happen silently in the background — the subscriber never sees any server names, tool calls, or technical details. They simply experience an AI assistant that can do more.
✅ MCP protocol support — connect to any remote MCP-compatible server
✅ Built-in NEXTPION servers — Google Calendar, Google Sheets with one-click OAuth authorization
✅ Custom MCP servers — connect with no auth, API key, custom headers, or OAuth 2.0
✅ Tool discovery — automatically discover and selectively enable tools from connected servers
✅ Per-server AI Instruction — customize when and how the AI uses each server's tools
✅ OAuth 2.0 authentication — built-in Google OAuth flow with encrypted token storage
✅ Admin settings — NEXTPION Cloud / Whitelabel OAuth mode, per-service enable/disable
✅ Real-time call tracking — see MCP tool calls live in AI Playground
✅ Live Chat records — MCP tool call results appear as system messages in Live Chat
✅ Call logging — full audit trail with parameters, results, and AI reasoning
✅ Per-Agent configuration support
This DLC requires the AI Integration Enhancers base plugin to be installed and enabled. If you have not set up the base plugin yet, follow the parent plugin guide first:
After purchasing the DLC from the NEXTPION marketplace, you can install it using the NEXTPION Plugin Manager.
Open your NEXTPION Plugin Manager from the main dashboard. Locate the NEXTPION - AI MCP Servers DLC in your purchased DLC list and click the Install button. During installation, you will be asked to enter the license key for this DLC.
After installation is complete, click the Enable button on the DLC card. A modal will open directly on the current page and prompt you to enter the DLC license key. Once the license is verified, you can enable or disable the DLC from this same interface without leaving the page.
The MCP Servers DLC includes a dedicated admin settings page for configuring OAuth providers and NEXTPION official services. Click the Settings button below the plugin card to access it.
At the top of the left sidebar, you will find the NEXTPION Cloud master toggle. This controls whether NEXTPION's hosted OAuth services and marketplace features are enabled.
Turning off NEXTPION Cloud disables ALL OAuth functionality — both NEXTPION Cloud mode and Whitelabel mode. When disabled, no OAuth providers will work regardless of your configuration. Keep this enabled unless you specifically want to disable all OAuth features.
The left sidebar Providers list shows all supported OAuth providers (currently Google). Each provider displays its current mode (Cloud / Whitelabel) and configuration status. Click a provider to view and edit its OAuth settings on the right panel.
Each provider supports two authentication modes:
NEXTPION Cloud Mode:
Whitelabel Mode:
Best Practice: Create a separate OAuth 2.0 Client for each Google service (Calendar, Sheets, etc.). Do not use the same OAuth client across multiple services. This approach provides better security isolation, clearer permission scopes, and easier troubleshooting when issues occur.
Select the Whitelabel option in the Authentication Mode section. The page will display an OAuth Client Configuration area.
Copy the displayed Authorized JavaScript Origins and Authorized Redirect URI values into your Google Cloud Console OAuth client settings. The redirect URI follows the format: {your_domain}/nextpion_dlc_mcp_servers/oauth_callback.
If the provider shows API Requirements, enable the corresponding APIs in Google Cloud Console (e.g. Google Calendar API, Google Sheets API).
Fill in the Client ID and Client Secret from your Google Cloud Console OAuth client.
Click Save Settings to save your Whitelabel configuration.
If you choose Whitelabel mode, you need to create your own OAuth 2.0 credentials in Google Cloud Console. This section walks you through the complete setup process.
How Whitelabel OAuth Works: In Whitelabel mode, the Google authorization page displays your own app name and branding. Your users authorize on your domain, and after authorization is complete, the OAuth tokens are securely transmitted to and encrypted by NEXTPION's servers for use during MCP tool calls. Your Chatpion instance does not store the actual Google OAuth tokens — NEXTPION handles all token management and refresh operations on your behalf.
Visit Google Cloud Console and sign in with your Google account.
Click the project selector at the top of the page, then click New Project. Give it a descriptive name (e.g. "My MCP Services") and click Create.
Make sure your newly created project is selected in the project selector dropdown before proceeding.
Before creating OAuth clients, you must configure the OAuth consent screen. This is what your users will see when they authorize your app.
Navigate to APIs & Services → OAuth consent screen in the left sidebar (or search for "Auth Platform" in the new Google Auth Platform UI).
Select External to allow any Google account to authorize. Click Create.
| Field | Description |
|---|---|
| App name | Your application name (shown to users during authorization) |
| User support email | Contact email for users |
| App logo | Your brand logo (optional but recommended) |
| App domain | Your website domain |
| Developer contact email | Email for Google to contact you |
Click Add or Remove Scopes and add the scopes required for the services you plan to use:
For Google Calendar:
| Scope | Description | Sensitivity |
|---|---|---|
https://www.googleapis.com/auth/calendar | Full access to Google Calendar | Sensitive |
openid | OpenID Connect | Non-sensitive |
email | View user email | Non-sensitive |
For Google Sheets:
| Scope | Description | Sensitivity |
|---|---|---|
https://www.googleapis.com/auth/spreadsheets | Full access to Google Sheets | Sensitive |
openid | OpenID Connect | Non-sensitive |
email | View user email | Non-sensitive |
Both Google Calendar and Google Sheets require sensitive scopes, which means Google will display a consent screen with additional warnings until your app is verified. See the App Verification section below for more details.
If your app is in Testing publishing status, you can add specific Google accounts as test users. Only these accounts will be able to authorize your app during the testing phase.
Click Save and Continue through each step to complete the consent screen setup.
You must create a separate OAuth 2.0 Client for each Google service. This ensures that disconnecting one service (e.g. Calendar) does not affect another (e.g. Sheets).
Navigate to APIs & Services → Credentials in the left sidebar.
https://yourdomain.com){your_domain}/nextpion_dlc_mcp_servers/oauth_callbackRepeat the same process:
Go back to the NEXTPION MCP Servers admin settings page. For each service:
Each Google service requires its corresponding API to be enabled in your Google Cloud project.
Navigate to APIs & Services → Library in the left sidebar.
Search for Google Calendar API, click on it, and click Enable.
Search for Google Sheets API, click on it, and click Enable.
Google requires OAuth apps that access sensitive or restricted user data to go through a verification process. Understanding this is critical for deciding whether your app needs verification.
What Happens Without Verification:
The 100-user limit applies to the total number of unique users who have ever granted consent to your app. Once you reach this limit, new users will be unable to authorize until you complete the verification process.
When You DON'T Need Verification:
| Scenario | Verification Needed? |
|---|---|
| Personal use — only you or a few team members use it | No — add yourself as a test user |
| Development / testing — still building and experimenting | No — use Testing mode |
| Internal organization — all users are in the same Google Workspace domain | No — select "Internal" user type |
When You SHOULD Get Verified:
| Scenario | Verification Needed? |
|---|---|
| SaaS platform — your end users (subscribers) need to authorize | Yes — recommended |
| More than 100 users — you expect growth beyond the user cap | Yes — required |
| Professional appearance — you don't want users to see the "unverified app" warning | Yes — recommended |
How to Submit for Verification:
Bypassing the Warning Screen (Without Verification): If you or your users encounter the "This app isn't verified" screen, you can still proceed by clicking Advanced → Go to [your app name] (unsafe). This grants the same OAuth permissions — the warning is just informational. For personal or small-team use, this is perfectly acceptable.
When submitting your app for Google verification, you need to explain why your app requires each requested scope. Below are ready-to-use templates — copy, customize the [bracketed] parts, and paste them into the verification form.
Google Calendar — Scope Justification Template:
Scope: https://www.googleapis.com/auth/calendar
Our application [Your App Name] is an AI-powered Facebook Messenger automation
platform. Business owners (our users) connect their Google Calendar so that
the AI chatbot can manage appointments and bookings on their behalf when
interacting with their customers (Facebook Page subscribers).
How we use this scope:
1. READ access: The AI chatbot checks the business owner's calendar
availability in real-time when a customer requests an appointment.
For example, a customer asks "Do you have any openings this Friday?"
and the AI reads the calendar to provide available time slots.
2. WRITE access: The AI chatbot creates appointment events when a customer
confirms a booking (e.g. "Book me in for Friday at 3pm"), updates
events when customers reschedule, and cancels events upon request.
Each event typically includes the customer name, service type, and
contact information collected during the conversation.
Data handling:
- OAuth tokens are encrypted at rest and stored on secure servers.
- We do NOT store, copy, or export any calendar event data. All calendar
operations are performed in real-time via the Google Calendar API.
- Business owners can revoke access at any time through our platform's
settings or through their Google Account permissions page.
- Calendar data is never shared with third parties.
User experience:
- Business owners explicitly initiate the OAuth flow by clicking an
"Authorize with Google" button in our platform's settings page.
- The Google consent screen clearly shows the requested permissions.
- Business owners can disconnect their Google Calendar at any time,
which immediately stops the AI from accessing their calendar.Google Sheets — Scope Justification Template:
Scope: https://www.googleapis.com/auth/spreadsheets
Our application [Your App Name] is an AI-powered Facebook Messenger automation
platform. Business owners (our users) connect their Google Sheets so that
the AI chatbot can record and retrieve customer information collected during
automated conversations with their Facebook Page subscribers.
How we use this scope:
1. READ access: The AI chatbot reads spreadsheet data to look up existing
customer records, check inventory or pricing information, and retrieve
reference data needed during conversations. For example, a customer asks
about product availability, and the AI reads the business owner's
inventory spreadsheet to provide an accurate answer.
2. WRITE access: The AI chatbot logs new customer inquiries, appointment
details, order information, and other data collected during conversations
into the business owner's designated spreadsheets. For example, after
collecting a customer's name, phone number, and service request, the AI
appends a new row to the business owner's lead tracking spreadsheet.
Data handling:
- OAuth tokens are encrypted at rest and stored on secure servers.
- We do NOT store, copy, or export any spreadsheet data beyond the
real-time API operations. All read/write operations are performed
in real-time via the Google Sheets API.
- Business owners can revoke access at any time through our platform's
settings or through their Google Account permissions page.
- Spreadsheet data is never shared with third parties.
User experience:
- Business owners explicitly initiate the OAuth flow by clicking an
"Authorize with Google" button in our platform's settings page.
- The Google consent screen clearly shows the requested permissions.
- Business owners can disconnect their Google Sheets at any time,
which immediately stops the AI from accessing their spreadsheets.Customize Before Use: Replace [Your App Name] with your actual application name. You may also adjust the example use cases to match your specific implementation. Google reviewers appreciate specific, concrete descriptions of how data is accessed and used.
When submitting your app for Google verification, you need to provide a YouTube video (unlisted is fine) that demonstrates:
Suggested video outline:
The video does not need to be high production quality. A simple screen recording with voiceover explaining each step is sufficient. Keep it under 5 minutes.
Below each OAuth provider, a NEXTPION Services section lists all official MCP services under that provider (e.g. Google Calendar, Google Sheets). Each service has an independent toggle:
This gives administrators granular control over which NEXTPION official services are available.
Once the DLC is installed and enabled, a new MCP Servers settings panel automatically appears in the AI configuration page, below the existing settings.
Navigate to the AI Integration Enhancers configuration page as you normally would (API Channels → OpenAI API).
Scroll down in the left-side settings panel to find the MCP Servers section. It displays a toggle switch next to the MCP Servers label.
Turn on the toggle. The panel will expand to reveal the available server list and related controls.
The MCP Servers panel organizes servers into the following categories:
All servers added by you, including:
Each server card displays:
Each server has action buttons:
Built-in non-OAuth remote servers from the system registry. These may require authentication configuration before they can be enabled.
Click the Add Server button to open the multi-step server addition modal.
The modal first displays a marketplace-style interface with two sections:
Built-in Servers — NEXTPION's official MCP servers such as Google Calendar and Google Sheets. Click one to proceed to OAuth authorization.
Custom — Click Custom MCP Server to manually connect any remote MCP server.
Click on one of the built-in servers (e.g. Google Calendar). The modal shows the server information and an OAuth authorization button.
Click the Authorize with Google button. A Google authorization window opens where you select your Google account and grant the requested permissions.
After authorization, the modal shows ✅ Authorized status along with the authorized email address. The system then automatically connects to the MCP server and discovers all available tools — no manual Connect step is needed. You can disconnect and re-authorize if needed.
Once connected, a list of all discovered tools is displayed. Check the tools you want the AI to have access to. Unselected tools will not be available to the AI even if the server is enabled.
Click the Configure button to confirm your selection. Only after clicking Configure will this server be added to your enabled MCP server list. Closing the modal without clicking Configure will discard the setup.
Click Custom MCP Server from the marketplace view.
Complete the configuration form:
| Field | Description |
|---|---|
| URL | MCP server endpoint (e.g. https://mcp.example.com) |
| Label | Server identifier — must start with a letter, only letters/digits/-/_ allowed |
| Description | Optional description of the server's purpose |
| Authentication | Choose from: No authentication, Access token / API key, Custom headers, or OAuth 2.0 |
For Access token / API key: enter the bearer token in the provided field.
For Custom headers: add one or more key-value pairs using the header builder. Click Add Header for additional rows.
For OAuth 2.0: enter your Client ID and Client Secret. The Redirect URI is automatically generated. Click Authorize to complete the OAuth flow before connecting.
Click the Connect button to test the connection and discover tools.
After a successful connection, the modal displays all tools discovered from the server.
Each tool shows:
monospace fontYou can:
Click Add to save the server with your selected tools.
If you don't need all tools from a server, deselect the ones you won't use. This reduces noise in the AI's decision-making and can improve tool usage accuracy.
Click the Edit ✏️ button next to a custom server to open the edit modal. In edit mode:
Click the Configure ⚙️ button on an OAuth server to reconnect and update tool selection. This is useful when a server adds new tools or when you want to change which tools are enabled.
Click the Delete 🗑️ button to remove a server. Deletion will:
Deleting a server is permanent. If the server was enabled in any agent's configuration, it will be automatically removed from those configurations as well.
Each enabled MCP server can have its own AI Instruction that tells the AI when and how to use that server's tools. Click the chat bubble icon 💬 on the server row to open the AI Instruction editor.
Google Calendar:
Use this server to check the user's calendar when they ask about their schedule, upcoming events, or availability.
When the user wants to create a new event, use the create_event tool with the appropriate date, time, and title.
Always confirm the event details with the user before creating.Google Sheets:
Use this server to look up product information, pricing, or inventory data from the spreadsheet.
When the user asks about specific products, search the sheet by product name or category.
Present the results in a clear, readable format.Custom API Server:
Use this server to check order status when a user asks about their order.
Use the search_orders tool with the user's email or order number.
If no results are found, ask the user to verify their information.
Never expose raw API responses — summarize the information naturally.When MCP Servers is enabled with active servers, the system automatically injects MCP tool usage instructions into the AI's system prompt. These rules ensure consistent, invisible, and intelligent tool behavior:
If both MCP Servers and Function Calling are enabled, the system instructs the AI to:
After configuring MCP Servers, you can immediately test the results in the AI Playground panel on the right side of the configuration page.
When using Stream Mode, the AI Playground displays the complete MCP tool calling process in real time:
server_label.tool_nameEach AI message that includes MCP calls displays a clickable summary line below the message:
MCP: 2 tools called >Click this summary to open the detailed MCP call panel showing:
Use Stream Mode in AI Playground as your primary debugging tool: configure servers and AI Instructions → send test messages → observe MCP reasoning and execution in real time → adjust instructions → repeat until the AI behaves as expected.
During real conversations (not AI Playground), when the AI triggers MCP tool calls while chatting with a subscriber, the system automatically inserts system messages into Live Chat to record the result of each MCP tool call.
Each MCP tool call system message follows this format:
✅ Google Calendar: Event "Team Meeting" created successfully
❌ Google Sheets: Row not found for product "XYZ-123"
✅ search_products: Found 3 matching productssender: system, agent_name: tool_call)Live Chat MCP call records let you:
These system messages are only visible to backend administrators. Subscribers never see any MCP call information in their Messenger conversation.
MCP Servers supports both global and per-agent settings:
This means different agents can:
When switching to an agent's configuration, the system loads that agent's dedicated MCP settings. If an agent has no custom MCP configuration, the global configuration is used.
If you use the AI Agents DLC, each agent's configuration page includes its own MCP Servers settings panel. Changes to one agent's settings do not affect other agents or the global configuration.
All sensitive credentials are stored using encryption:
Authentication details are never exposed in the frontend. In edit mode, credentials display as "stored securely" with an option to update.
user_iduser_idsubscriber_id and page_id2025-11-25 is used for all connectionsStart with built-in servers Begin with NEXTPION's built-in OAuth servers (Google Calendar, Google Sheets) to verify your MCP setup works correctly before adding custom servers.
Write specific AI Instructions Generic instructions like "use this server when needed" are too vague. Write clear trigger conditions, such as "check the user's Google Calendar when they ask about their schedule or upcoming events."
Select only the tools you need When adding a server, deselect tools you won't use. Fewer tools mean cleaner AI decisions and less confusion about which tool to choose.
Choose the right model Use gpt-5.4-nano for the best balance of cost and reliability. Use gpt-5-mini or gpt-5 for complex scenarios requiring multiple MCP tools in coordination.
Combine with Function Calling For the most capable AI assistant, enable both MCP Servers and Function Calling. MCP handles external data (calendars, spreadsheets, APIs) while Function Calling handles subscriber operations (labels, sequences).
Test in Stream Mode Always use Stream Mode in AI Playground when testing MCP Servers. This lets you see the AI's reasoning, tool parameters, and execution results in real time — essential for debugging.
Monitor call logs Regularly review MCP call logs to identify failed calls, excessive usage, or unexpected tool patterns, and adjust your AI Instructions accordingly.
Use per-agent configuration for different use cases If different pages or channels need different external services, create separate agents with tailored MCP configurations — different servers, different tool selections, different AI Instructions.
AI MCP Servers is most powerful when combined with clear AI Instructions, the right model, and targeted tool selection. The AI will silently interact with external services — checking calendars, searching spreadsheets, calling APIs — making your Messenger bot feel like a fully capable assistant connected to your business systems.