Google Cloud Logging MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Google Cloud Logging MCP or direct API to search logs, analyze errors, manage log entries, and configure logging through natural language.

Google Cloud Logging logoGoogle Cloud Logging
Oauth2

Google Cloud Logging is a Google Cloud service for storing, searching, and analyzing resource logs. It centralizes operational data to simplify monitoring, troubleshooting, and compliance.

64 Tools

Try Google Cloud Logging now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Google Cloud Logging
Try asking
TOOLS

Supported Tools

Every Google Cloud Logging action and event your agent gets out of the box.

Cancel Operation

Start best-effort cancellation of a Cloud Logging long-running operation using explicit parent, location, and operation IDs.

Copy Log Entries

Start a long-running copy of matching entries from a Cloud Logging log bucket to a Cloud Storage bucket.

Create Exclusion

Create one exclusion under an explicit Google Cloud parent resource.

Create Log Bucket

Create a Cloud Logging bucket under an explicit parent and location.

Create Log Bucket Asynchronously

Start asynchronous creation of a Cloud Logging bucket under an explicit Google Cloud parent and location.

Create Log Link

Start asynchronous creation of a BigQuery-linked dataset for an explicit Cloud Logging bucket.

Create Log Metric

Create a logs-based metric in an explicit Google Cloud project.

Create Log Scope

Create one log scope under an explicit Google Cloud parent and location.

Create Log View

Create one view over log entries in an explicit Cloud Logging bucket.

Create Saved Query

Create one saved query under an explicit Google Cloud parent and location.

Create Sink

Create a Cloud Logging sink under an explicit parent resource.

Delete Exclusion

Delete one Cloud Logging exclusion identified by explicit parent and exclusion IDs.

Delete Log

Delete all entries in one log from the global _Default Log Bucket under an explicit project, folder, organization, or billing account.

Delete Log Bucket

Delete one Cloud Logging log bucket using explicit parent, location, and bucket identifiers.

Delete Log Link

Start asynchronous deletion of one Cloud Logging log link and its corresponding BigQuery linked dataset using explicit resource IDs.

Delete Log Metric

Delete a project log-based metric using explicit project and metric IDs.

Delete Log Scope

Delete one Cloud Logging log scope using explicit parent, location, and log scope identifiers.

Delete Log View

Delete one Cloud Logging log view using explicit parent, location, bucket, and view identifiers.

Delete Saved Query

Delete one Cloud Logging saved query using explicit parent, location, and saved query identifiers.

Delete Sink

Delete one Cloud Logging sink under an explicit project, folder, organization, or billing account.

Get CMEK Settings

Get Cloud Logging CMEK settings for an explicit parent resource.

Get Exclusion

Get one Cloud Logging exclusion by its explicit parent and resource IDs.

Get Location

Get one Logging API location under an explicit Google Cloud parent.

Get Log Bucket

Get one Cloud Logging log bucket using explicit parent, location, and bucket identifiers.

Get Log Link

Get one Cloud Logging log link using explicit parent and resource IDs.

Get Log Metric

Get a project log-based metric using explicit project and metric IDs.

Get Log Scope

Get one log scope by its explicit parent and resource IDs.

Get Log View

Get one Cloud Logging log view by its explicit parent and resource IDs.

Get Log View IAM Policy

Get the IAM access policy for an explicit Cloud Logging log view.

Get Operation

Get the latest state of a Cloud Logging long-running operation using explicit parent, location, and operation IDs.

Get Saved Query

Get one saved query by its explicit parent and resource IDs.

Get Settings

Get Cloud Logging settings for an explicit Google Cloud parent resource.

Get Sink

Get one Cloud Logging sink by its explicit parent and sink IDs.

List Exclusions

List one page of exclusions on the _Default sink for an explicit Google Cloud project, folder, organization, or billing account.

List Locations

List one page of Cloud Logging API locations under an explicit Google Cloud project, folder, organization, or billing account.

List Log Buckets

List one page of Cloud Logging buckets in an explicit project, folder, organization, or billing account location.

List Or Poll Log Entries

List one page of matching Cloud Logging entries, or repeatedly call the same entries.list query for bounded tail-like behavior without using entries.tail.

List Log Links

List one page of Cloud Logging links for an explicit project, folder, organization, or billing account log bucket.

List Log Metrics

List one page of logs-based metrics in an explicit Google Cloud project.

List Logs

List one page of Cloud Logging log names in an explicit Google Cloud project, folder, organization, or billing account.

List Log Scopes

List one page of Cloud Logging log scopes in an explicit project, folder, or organization location.

List Log Views

List one page of Cloud Logging views for an explicit project, folder, organization, or billing account log bucket.

List Monitored Resource Descriptors

List one page of monitored resource descriptor types available to Google Cloud Logging.

List Operations

List one page of Cloud Logging long-running operations for an explicit Google Cloud parent and location.

List Recent Queries

List one page of queries run by the current user in the last approximately 30 days for an explicit Google Cloud parent and Logging location.

List Saved Queries

List one page of Cloud Logging saved queries in an explicit project, folder, organization, or billing account location.

List Sinks

List one page of Cloud Logging sinks for an explicit project, folder, organization, or billing account.

List View Logs

List one page of Cloud Logging log names visible through an explicit log view.

Patch Sink

Patch selected fields of one Cloud Logging sink under an explicit project, folder, organization, or billing account.

Replace Sink

Replace a Cloud Logging sink under an explicit Google Cloud parent.

Set Log View IAM Policy

Replace the IAM policy on one Cloud Logging log view under an explicit project, folder, or organization resource.

Tail Log Entries With Bounded List Polling

Safely emulate the documented Cloud Logging entries.tail operation with finite entries.list polling from a receive timestamp captured when the action starts.

Test Log View IAM Permissions

Return the requested IAM permissions the caller has on an explicit Cloud Logging log view.

Undelete Log Bucket

Restore a Cloud Logging bucket within its seven-day deletion grace period using explicit parent, location, and bucket IDs.

Update CMEK Settings

Patch Cloud Logging CMEK settings for a Google Cloud organization.

Update Exclusion

Patch selected fields of one Cloud Logging exclusion under an explicit Google Cloud parent resource.

Update Log Bucket

Synchronously patch selected fields of a Cloud Logging bucket under an explicit parent and location.

Update Log Bucket Asynchronously

Start an asynchronous update of selected fields on a Cloud Logging bucket under an explicit parent and location.

Update Log Metric

Update a project log-based metric using explicit project and metric IDs.

Update Log Scope

Patch selected fields of one Cloud Logging log scope under an explicit project, folder, or organization.

Update Log View

Patch selected fields of one Cloud Logging log view under an explicit parent, location, and bucket.

Update Saved Query

Patch selected fields of one Cloud Logging saved query under an explicit parent and location; update_mask controls which supplied values change.

Update Settings

Patch Cloud Logging settings for an explicit folder or organization.

Write Log Entries

Write a batch of log entries to Google Cloud Logging.

SETUP GUIDE

Connect Google Cloud Logging MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["google_cloud_logging"],
  mcp: true,
});
Create a session scoped to Google Cloud Logging and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Search Google Cloud Logging for ERROR entries from the last hour in my production project.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Google Cloud Logging request
SETUP GUIDE

Connect Google Cloud Logging API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["google_cloud_logging"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Google Cloud Logging
3

Run Google Cloud Logging tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Search Google Cloud Logging for ERROR entries from the last hour in my production project." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Google Cloud Logging tool calls through the session, and print the final answer

Why Use Composio?

AI Native Google Cloud Logging Integration

  • Supports both Google Cloud Logging MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Google Cloud Logging data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Google Cloud Logging access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Google Cloud Logging
  • Scoped, least privilege access to Google Cloud Logging resources
  • Full audit trail of agent actions to support review and compliance
FRAMEWORKS

Use Google Cloud Logging with any AI Agent Framework

Choose a Framework you want to connect Google Cloud Logging with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with Google Cloud Logging.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Google Cloud Logging tool your agent needs.Free to start.

Start building