Kurssisisältö
Agentic AI for Business
Agentic AI for Business
Installing and Configuring Gmail and Calendar MCP Servers
To handle Gmail integration, this Gmail MCP server is a great choice. It packs a wide range of useful features and supports everything needed for smart Gmail automation. It can reply to messages and manage threads with multiple participants.
To connect Claude to Gmail and Google Calendar through the MCP server, start by configuring API access to your Google account in the Google Cloud Console. Once there, follow the instructions below to complete the setup.
Click Create a new project or select an existing project. Go to the API & Services tab, then open the Library. Search for the Gmail API and Google Calendar API, and click Enable for each under the project you've selected.
Then go to the Credentials section click Create Credentials and select 0Auth Client ID create a new OAuth 2.0 Client ID.
You may need to configure your consent screen before creating credentials. Follow the link, then fill in a simple form with your App name, email, and basic details.
When asked for the application type, select Desktop App.
Client ID: a public identifier for your app. It tells Google which app is requesting access;
Client secret: a confidential key used to authenticate your app and prove its identity to Google. It should be kept private.
Once the credentials are generated, click to download the JSON file. Rename it to gcp-oauth.keys.json
. Then, navigate to the user's root directory on your machine and create a hidden folder named .gmail-mcp
. Place the JSON file with the credentials inside this folder.
This is necessary to allow Claude to access your account without exposing your actual password or other sensitive information.
Then open Command Prompt (on Windows) or Terminal (on macOS), and run the following command:
terminal.h
When you run the command, a browser window may open prompting you to confirm your email and grant access. After completing this step, a new file called credentials.json
will be generated in the same folder. This file contains the refresh token, which is the final piece needed to complete the setup.
claude_desktop_config.json
The final step is to open the claude_desktop_config.json
file, paste the configuration into it, and save the file to apply the changes.
Adding Google Calendar is a bit trickier, since it requires local installation and setup. But even if you've never done it before, the process is still straightforward. For Google Calendar integration, a good option is this Google Calendar MCP project, which works well and supports all the features needed for calendar automation.
Open Command Prompt (on Windows) or Terminal (on macOS) and use the cd
command to navigate to the folder where you want to install the project. And then clone the repository using next command.
terminal.h
If you see an error saying the git
command is not found, it means Git isn't installed yet.
A good place to get it is Git Downloads, where you can choose your operating system and follow the quick installation process.
Git is a version control system that lets you track changes in your code, collaborate with others, and manage your project history efficiently.
To learn more take the GitHub Fundamentals course to build practical skills.
Download the creadentials file again and paste it into the directory of the project you've cloned using git. Rename .json
file with creadentials to gcp-oauth.keys.json
. What is left is to open the Command Prompt (on Windows) or Terminal (on macOS) and write the next command.
terminal.h
Once that's done, open the claude_desktop_config.json
file and add the new MCP server. Make sure to update the path to match the location where you downloaded the project.
claude_desktop_config.json
Save the file and restart the Claude Desktop application. If everything is set up correctly, both servers will appear.
Kiitos palautteestasi!