home / mcp / search console api mcp server

Search Console API MCP Server

MCP Server generated by mcp.ag2.ai

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "ag2-mcp-servers-search-console-api": {
      "command": "python",
      "args": [
        "mcp_server/main.py",
        "stdio"
      ],
      "env": {
        "CONFIG": "A JSON string containing the configuration.",
        "SECURITY": "Security parameters such as API keys.",
        "CONFIG_PATH": "Path to a JSON configuration file (e.g., mcp_server/mcp_config.json)"
      }
    }
  }
}

You run an MCP server that exposes a specific OpenAPI endpoint so your clients can talk to that API through a consistent, protocol-enabled interface. This makes it easy to integrate the Google Webmasters v3 API into applications, test tooling, and automation without handling low-level HTTP details yourself.

How to use

You can interact with the MCP server from a client that understands the MCP protocol. Choose between two connection styles: a remote HTTP endpoint that proxies requests to the OpenAPI source, or a local stdio-based server you run in-process. For routine development, start with the stdio route so your tooling talks directly to the MCP server executable. For deployments where you want a dedicated MCP proxy service, use the HTTP URL that points to the OpenAPI specification.

How to install

Prerequisites and environment setup ensure your system can run the MCP server locally.

Install requirements and start the server using Python. The project uses Python 3.9+ and relies on Pip and uv for local server runs.

Additional sections

Configuration details are available below. Use the recommended environment variable names to configure the server and your client interactions. Ensure you provide any required security parameters when starting the server in a production environment.

Configuration example

{
  "mcpServers": {
    "webmasters": {
      "type": "http",
      "name": "webmasters",
      "url": "https://api.apis.guru/v2/specs/googleapis.com/webmasters/v3/openapi.json",
      "args": []
    },
    "webmasters_stdio": {
      "type": "stdio",
      "name": "webmasters",
      "command": "python",
      "args": ["mcp_server/main.py", "stdio"]
    }
  },
  "envVars": [
    {"name": "CONFIG_PATH", "description": "Path to a JSON configuration file (e.g., mcp_server/mcp_config.json)", "example": "mcp_server/mcp_config.json"},
    {"name": "CONFIG", "description": "A JSON string containing the configuration", "example": "{...}"},
    {"name": "SECURITY", "description": "Environment variables for security parameters such as API keys", "example": "API_KEY=YOUR_KEY"}
  ]
}