# Google Search Mcp Server

> MCP server from moritalous/google-search-mcp-server.

- **Type:** MCP server
- **Install:** `agentstack add mcp-moritalous-google-search-mcp-server`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [moritalous](https://agentstack.voostack.com/s/moritalous)
- **Installs:** 0
- **Category:** [Search](https://agentstack.voostack.com/c/search)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [moritalous](https://github.com/moritalous)
- **Source:** https://github.com/moritalous/google-search-mcp-server

## Install

```sh
agentstack add mcp-moritalous-google-search-mcp-server
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Google Search MCP サーバー

このプロジェクトは、AI アシスタントに Google 検索 API 機能を提供する Model Context Protocol (MCP) サーバーです。

## 概要

Google Search MCP サーバーは、AI アシスタントが Google 検索 API を使用してウェブ検索を実行できるようにするツールです。Gradio と MCP を使用して、AI アシスタントと Google 検索 API の間のインターフェースを提供します。

## 機能

- Google 検索 API を使用したウェブ検索
- 検索結果の JSON 形式での返却
- 最大 20 件の検索結果の取得

## 必要条件

- Python 3.12 以上
- Google Custom Search Engine ID
- Google API キー

## インストール

1. リポジトリをクローンします：

```bash
git clone https://github.com/yourusername/google-search-mcp-server.git
cd google-search-mcp-server
```

2. 依存関係をインストールします：

```bash
pip install -e .
```

3. 環境変数を設定します：

`.env.sample` ファイルを `.env` にコピーし、必要な API キーを追加します：

```bash
cp .env.sample .env
```

`.env` ファイルを編集して、以下の値を設定します：

```
GOOGLE_CSE_ID=あなたのGoogleカスタム検索エンジンID
GOOGLE_API_KEY=あなたのGoogleAPIキー
```

## 使用方法

サーバーを起動するには：

```bash
python app.py
```

これにより、Gradio インターフェースが起動し、MCP サーバーとして機能します。

## MCP との統合

このサーバーは、Model Context Protocol (MCP) を使用して AI アシスタントと統合されます。AI アシスタントは、このサーバーを通じて Google 検索機能にアクセスできます。

## API リファレンス

### perform_web_search

```python
perform_web_search(query: str, num_results: int = 10)
```

**パラメータ**:
- `query` (str): 検索クエリ（最大 400 文字、50 単語）
- `num_results` (int): 結果の数（1〜20、デフォルト 10）

**戻り値**:
- `str`: JSON 形式の検索結果

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [moritalous](https://github.com/moritalous)
- **Source:** [moritalous/google-search-mcp-server](https://github.com/moritalous/google-search-mcp-server)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-moritalous-google-search-mcp-server
- Seller: https://agentstack.voostack.com/s/moritalous
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
