Quickstart
Prerequisites
Python 3.11+
Python package manager
We recommend UV
Retrieve from Connectors Console the necessary credentials:
GL Connectors Client API Key
GL Connectors User Token
Getting Started
Setting Up the Integration
Note that the Connectors Console currently requires you to have an allowlisted email domain. You need to log in using your @gdplabs.id email in order to access the Console, otherwise your access will be rejected.
The API Key and User Token are accessible through our console. To use the console, please see the following page: Connectors Console, or if you want to go directly to the console, it is here in https://connector.gdplabs.id/console.
In the dashboard, to activate one of the integration, we will use our Google Drive Integration to search for files.
Under
Google_drivemodule, clickAdd New IntegrationbuttonFollow the generated URL and complete the authentication
Later, you will have an active integration for
google_driveunder your email.

Quickstart Example
This example uses search_files action to get 10 files at maximum from google_drive integration that contains "wfo" within the file itself. For this example, we will utilize GL Connectors' Fluent Style execution for readability.

To run the following script, you will need to replace the following strings in the script below with the appropriate values:
GL_CONNECTORS_API_KEY(required) - Use your Client API Key, see aboveGL_CONNECTORS_USER_TOKEN(required) - Obtained User Token from the console, see above
from gl_connectors_sdk.connector import GLConnectors
connector = GLConnectors(api_key="GL_CONNECTORS_API_KEY")
response = (connector.connect('google_drive')
.action('search_files')
.params({"query": "name contains 'wfo'"})
.token('GL_CONNECTORS_USER_TOKEN')
.run())
print(response.get_data())Note that you can also authenticate and get the token using the SDK. For more details about authentication and advanced setup, please check In-Depth Setup and Credentials for more information.
Understanding the Code
Line 1: Only one import is needed for
GLConnectorsLine 3: Instantiates the Connectors with the API Key you've obtained from the Console.
Line 5 - 9: Fluent-style execution. We also offer direct style execution, see the link for complete information. It can be shorter, but for readability, we recommend fluent-style.
Connects to the Connector (for a list of Connector, see Agentic Tools and Model Context Protocol (MCP))
Selects the action to execute (the list of Connector above also lists the possible actions)
Sets the parameters in the form of a dictionary (key, value pair).
Sets the User Token as obtained above. Note that you may retrieve the token from other means. See Credentials for more information.
Executes the Connector and retrieves the response data and status code.
Line 11: Prints it to STDOUT.
GL Connectors MCP
For more details on how to retrieve credentials, see the following: Credentials and the URL for each MCP Servers, you can check the Agentic Tools and Model Context Protocol (MCP).
To specifically see how to connect to various clients and authentication methods beyond the scope of quickstart here, see GL Connectors MCP Setup Guide.
GL Connectors provide a comparable MCP server with the Connectors SDK functionality. We provide an MCP Server for each Connectors we have (they are hosted under different MCP endpoints). They are authorized using API Key and the preauthorized token that can be obtained through the above method using GL Connectors SDK. Here we give an example on how to connect to Connector's Github MCP Server.
Claude Desktop (MCP-Remote)
{
"mcpServers": {
"connectors-gdrive-mcp": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://connector.gdplabs.id/google_drive/mcp",
"--header", "X-Api-Key:${API_KEY}",
"--header", "Authorization:${TOKEN}"
],
"env": {
"API_KEY": "sk-client-...",
"TOKEN": "Bearer eyJ..."
}
}
}
}Connecting Directly (VSCode, Cursor, Windsurf)
Note that the parameters may be different from one IDE to another (such as serverUrl for Windsurf instead of url). Please check your IDE's documentation for better grasp on Streamable HTTP Support. Some IDEs may not support Streamable HTTP.
{
"mcpServers": {
"connectors-gdrive-mcp": {
"url": "https://connector.gdplabs.id/google_drive/mcp",
"headers": {
"X-Api-Key": "sk-client-...",
"Authorization": "Bearer eyJ..."
}
}
}
}For more details on how to connect various other clients, or what other authentication type is possible, please access via GL Connectors MCP Setup Guide
Last updated