Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Google Programmable Search Engine

FreeNot checked

Integrates with Google Programmable Search Engine to enable web search capabilities with support for pagination, result size, language restrictions, and safe se

GitHubEmbed

About

Integrates with Google Programmable Search Engine to enable web search capabilities with support for pagination, result size, language restrictions, and safe search filtering

README

MseeP.ai Security Assessment Badge

Google Programmable Search Engine (PSE) MCP Server

A Model Context Protocol (MCP) server for the Google Programmable Search Engine (PSE) API. This server exposes tools for searching the web with Google Custom Search engine, making them accessible to MCP-compatible clients such as VSCode, Copilot, and Claude Desktop.

Installation Steps

You do NOT need to clone this repository manually or run any installation commands yourself. Simply add the configuration below to your respective MCP client—your client will automatically install and launch the server as needed.

VS Code Copilot Configuration

Open Command Palette → Preferences: Open Settings (JSON), then add:

settings.json

{
  // Other settings...
  "mcp": {
    "servers": {
      "google-pse-mcp": {
        "command": "npx",
        "args": [
          "-y",
          "google-pse-mcp",
          "https://www.googleapis.com/customsearch",
          "<api_key>",
          "<cx>",
          "<siteRestricted>" // optional: true/false, defaults to true
        ]
      }
    }
  }
}

Cline MCP Configuration Example

If you are using Cline, add the following to your cline_mcp_settings.json (usually found in your VSCode global storage or Cline config directory):

  • macOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
{
  "mcpServers": {
    "google-pse-mcp": {
      "disabled": false,
      "timeout": 60,
      "command": "npx",
      "args": [
        "-y",
        "google-pse-mcp",
        "https://www.googleapis.com/customsearch",
        "<api_key>",
        "<cx>",
        "<siteRestricted>" // optional flag, true/false, defaults to true
      ],
      "transportType": "stdio"
    }
  }
}

Important Notes

Don't forget to replace <api_key> and <cx> with your credentials in the configuration above. You can also provide an optional <siteRestricted> flag (true or false) as the last argument to control which Google Custom Search endpoint is used. If omitted, it defaults to true.

Available Tools

This MCP server provides the following tool:

  1. search: Search the web with Google Programmable Search Engine

    • Parameters:
      • q (string, required): Search query
      • page (integer, optional): Page number
      • size (integer, optional): Number of search results to return per page (1-10)
      • sort (string, optional): Sort expression (only 'date' is supported)
      • safe (boolean, optional): Enable safe search filtering
      • lr (string, optional): Restrict search to a particular language (e.g., lang_en)
      • siteRestricted (boolean, optional): Use the Site Restricted API endpoint; defaults to true unless overridden via CLI flag

Example Usage

# Search for "artificial intelligence"
result = await use_mcp_tool(
    server_name="google-pse-mcp",
    tool_name="search",
    arguments={
        "q": "artificial intelligence",
        "size": 5,
        "safe": True
    }
)

Useful Links

from github.com/rendyfebry/google-pse-mcp

Installing Google Programmable Search Engine

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/rendyfebry/google-pse-mcp

FAQ

Is Google Programmable Search Engine MCP free?

Yes, Google Programmable Search Engine MCP is free — one-click install via Unyly at no cost.

Does Google Programmable Search Engine need an API key?

No, Google Programmable Search Engine runs without API keys or environment variables.

Is Google Programmable Search Engine hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Google Programmable Search Engine in Claude Desktop, Claude Code or Cursor?

Open Google Programmable Search Engine on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Google Programmable Search Engine with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs