How To Use OpenAI Agent MCPs For Beginners
By corbin
Key Concepts
- MCP (Multi-Cloud Platform/Connector Platform): Refers to integrations within OpenAI's agent workflow.
- Native Integration (OpenAI connectors): Connections leveraging OpenAI's back-end infrastructure for easy plug-and-play with an API key.
- Non-Native Integration: Integrations via third-party servers like Zapier.
- Access Token: A temporary key granting permission to access a specific resource (e.g., Google Calendar) on behalf of a user.
- Refresh Token: A long-lived token used to obtain new access tokens after the current one expires, enabling continuous access without re-authentication.
- API (Application Programming Interface): A set of rules and protocols for building and interacting with software applications.
- API Key: A unique identifier used to authenticate a user or program to an API.
- Scope: The specific permissions or rights granted to an access token or API key.
- Granularization: Breaking down API actions into more specific, smaller categories.
- Endpoint: A specific URL where an API can be accessed to perform an action (e.g.,
/calfor Google Calendar). - Production Level: The stage of software development where an application is fully functional and deployed for end-users.
Utilizing Native MCP Integrations in OpenAI Agent Workflow
The video details how to leverage Multi-Cloud Platform (MCP) integrations natively within the OpenAI agent builder, focusing on the nuances, benefits, and significant drawbacks of this approach. The speaker notes that OpenAI's implementation can be "way more confusing than it needs to be."
Native vs. Non-Native Integrations
- Native Integrations (OpenAI Connectors): These connections utilize OpenAI's back-end infrastructure, designed for "easy plug-and-play" by providing an API key. Examples include Gmail, Google Calendar, SharePoint, and Dropbox.
- Non-Native Integrations: These involve third-party servers like Zapier, Stripe, or Shopify, offering alternative methods for connecting services.
Step-by-Step Google Calendar Native Integration
The video provides a detailed walkthrough for setting up Google Calendar as a native MCP integration:
- Access Agent Tools: Navigate to the agent workflow, then select "Tools" and choose "MCP Server," followed by "Google Calendar."
- Request Access Token: The system will prompt for an access token, which serves as a key telling OpenAI that the user has rights to the specified Google Calendar (e.g.,
[email protected]). - Obtain Access Token:
- Click "Get Access Token," which redirects to a Google authorization page.
- On the "Authorize APIs" page, use
Command ForControl Fto search for "calendar." - API Selection: Google granularizes API actions. For a top-level integration, select the API link starting with
/cal. This represents the main endpoint, with subsequent links (e.g.,calendar.acls,calendar.events) being subcategories. For broader access or if unsure, the speaker suggests selecting all relevant API links. - Click "Authorize APIs" and select the desired Google account.
- Copy and Connect Token: After authorization, a long string (starting with
y a something something) representing the access token will be displayed. Copy this token. - Paste and Consent: Paste the copied token into the OpenAI agent builder and click "Connect." Grant consent to the relevant actions (e.g., "everything").
Demonstration of Functionality
To verify the integration, the speaker uses the prompt: "You are my calendar assistant. Find all my events for October." A pre-added event, "live stream tonight" on October 15th, was successfully retrieved by the agent, confirming the access token and data retrieval method worked.
Critical Limitation: Access Token Expiry
A significant drawback of OpenAI's native MCP integration is the temporary nature of the access token:
- 7-Day Expiry: Access granted via this method for Google Calendar will be revoked after 7 days, requiring the user to repeat the entire setup process to obtain a new token.
- Industry Standard vs. OpenAI: The speaker, drawing from experience developing software like "Bumpups" (an AI video model that integrated YouTube channels), notes that Google's production-level access tokens typically expire every 24 hours. This usually necessitates a refresh token to programmatically obtain new access tokens without user intervention.
- OpenAI's Missing Feature: OpenAI's agent builder currently only provides an option for an access token, lacking the crucial refresh token functionality. This implies that workflows built with native integrations will inevitably break after the token expires (either 24 hours or 7 days, depending on Google's policy for this specific integration type).
- Security Rationale: Major platforms implement token expiry for security reasons.
Solution for Persistent Integrations: Third-Party Services (Zapier)
To circumvent the pain point of constantly resetting access tokens, the speaker proposes using third-party integration platforms:
- Refresh Token Logic: Services like Zapier handle refresh tokens automatically. The software hits the refresh token, which then provides a new access token (typically expiring in 24 hours), and this cycle continues in the background without user intervention.
- Zapier as a Workaround: By integrating Google Calendar with Zapier's platform, and then connecting Zapier to OpenAI, users can achieve persistent workflows without manual re-authentication. The speaker plans a future video demonstrating an AI YouTube bot using Zapier for this purpose.
Synthesis and Conclusion
OpenAI's native MCP integration offers a straightforward way to connect services like Google Calendar to agent workflows. However, its fundamental limitation is the lack of refresh token support, leading to access tokens expiring after 7 days (or potentially 24 hours in other contexts). This necessitates manual re-authentication, making native integrations unsuitable for persistent, automated workflows. For robust and continuous operations, leveraging third-party integration platforms like Zapier, which manage refresh tokens automatically, is currently the recommended solution. The speaker expresses hope that OpenAI will eventually implement native refresh token functionality to enhance the utility of its MCP integrations.
Chat with this Video
AI-PoweredLoad the transcript when you're ready to chat so the initial page stays lighter.
Related Videos

How the hometown humiliation of Putin marks a turning point for Ukraine | DW News
DW News

Shocking video shows moment paramedics are hit by Israel in 'double-tap' strike
Sky News

Putin Xi, To Catch a Castro, Red Carpet Rebellion • FRANCE 24 English
FRANCE 24 English

Trump's supporters furious over Trump smartphone scam.
ABC News In-depth

Nvidia Crushes Earnings again — What Jensen Huang sees next for AI
CGTN America

Samsung union suspends strike after reaching tentative pay deal • FRANCE 24 English
FRANCE 24 English

OH SH*T! The Banks are Dumping AI Loans!
Steven Van Metre