SerpMCP
SerpMCP
AceDataCloud APIを通じてSERP APIを利用する、Google検索用のModel Context Protocol (MCP)サーバーです。
Claude、VS Code、またはMCP互換クライアントから直接Google検索を実行し、構造化された結果を取得できます。
機能
ウェブ検索 - 構造化された結果を伴う通常のGoogleウェブ検索
画像検索 - URLとサムネイル付きの画像検索
ニュース検索 - あらゆるトピックに関する最新のニュース記事を取得
動画検索 - YouTubeやその他のソースから動画を検索
場所検索 - 地元の企業や場所を検索
地図検索 - 場所や地理情報を検索
ナレッジグラフ - 構造化されたエンティティ情報を取得
ローカライゼーション - 複数の国と言語をサポート
時間フィルタリング - 時間範囲で結果をフィルタリング
Related MCP server: SerpApi MCP Server
ツールリファレンス
ツール | 説明 |
| Googleで検索し、SERP APIを使用して構造化された結果を取得します。 |
| Google画像検索を行い、画像結果を取得します。 |
| Googleニュース検索を行い、ニュース記事の結果を取得します。 |
| Google動画検索を行い、動画結果を取得します。 |
| Googleで地元の場所や企業を検索します。 |
| Googleマップで場所を検索します。 |
| 利用可能なすべてのGoogle検索タイプを一覧表示します。 |
| Google検索で一般的に使用される国コードを一覧表示します。 |
| Google検索で一般的に使用される言語コードを一覧表示します。 |
| Google検索で利用可能な時間範囲フィルターを一覧表示します。 |
| Google SERPツールを使用するための包括的なガイドを取得します。 |
クイックスタート
1. APIトークンの取得
AceDataCloud Platformにサインアップします
APIドキュメントページに移動します
**「Acquire」**をクリックしてAPIトークンを取得します
以下の使用のためにトークンをコピーします
2. ホスト型サーバーの使用(推奨)
AceDataCloudは管理されたMCPサーバーをホストしており、ローカルインストールは不要です。
エンドポイント: https://serp.mcp.acedata.cloud/mcp
すべてのリクエストにはBearerトークンが必要です。ステップ1で取得したAPIトークンを使用してください。
Claude.ai
OAuthを使用してClaude.aiに直接接続します(APIトークンは不要です):
Claude.aiの設定 → 統合 → 追加に移動します
サーバーURLを入力します:
https://serp.mcp.acedata.cloud/mcpOAuthログインフローを完了します
会話でツールの使用を開始します
Claude Desktop
設定ファイル(macOSの場合は ~/Library/Application Support/Claude/claude_desktop_config.json)に追加します:
{
"mcpServers": {
"serp": {
"type": "streamable-http",
"url": "https://serp.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Cursor / Windsurf
MCP設定(.cursor/mcp.json または .windsurf/mcp.json)に追加します:
{
"mcpServers": {
"serp": {
"type": "streamable-http",
"url": "https://serp.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}VS Code (Copilot)
VS CodeのMCP設定(.vscode/mcp.json)に追加します:
{
"servers": {
"serp": {
"type": "streamable-http",
"url": "https://serp.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}または、VS Code用のAce Data Cloud MCP拡張機能をインストールしてください。これには15個のMCPサーバーすべてがバンドルされており、ワンクリックでセットアップできます。
JetBrains IDE
**設定 → ツール → AI Assistant → Model Context Protocol (MCP)**に移動します
追加 → HTTPをクリックします
以下を貼り付けます:
{
"mcpServers": {
"serp": {
"url": "https://serp.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Claude Code
Claude CodeはMCPサーバーをネイティブでサポートしています:
claude mcp add serp --transport http https://serp.mcp.acedata.cloud/mcp \
-h "Authorization: Bearer YOUR_API_TOKEN"または、プロジェクトの .mcp.json に追加します:
{
"mcpServers": {
"serp": {
"type": "streamable-http",
"url": "https://serp.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Cline
ClineのMCP設定(.cline/mcp_settings.json)に追加します:
{
"mcpServers": {
"serp": {
"type": "streamable-http",
"url": "https://serp.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Amazon Q Developer
MCP設定に追加します:
{
"mcpServers": {
"serp": {
"type": "streamable-http",
"url": "https://serp.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Roo Code
Roo CodeのMCP設定に追加します:
{
"mcpServers": {
"serp": {
"type": "streamable-http",
"url": "https://serp.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Continue.dev
.continue/config.yaml に追加します:
mcpServers:
- name: serp
type: streamable-http
url: https://serp.mcp.acedata.cloud/mcp
headers:
Authorization: "Bearer YOUR_API_TOKEN"Zed
Zedの設定(~/.config/zed/settings.json)に追加します:
{
"language_models": {
"mcp_servers": {
"serp": {
"url": "https://serp.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}
}cURLテスト
# Health check (no auth required)
curl https://serp.mcp.acedata.cloud/health
# MCP initialize
curl -X POST https://serp.mcp.acedata.cloud/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'3. またはローカルで実行(代替手段)
自分のマシンでサーバーを実行したい場合:
# Install from PyPI
pip install mcp-serp
# or
uvx mcp-serp
# Set your API token
export ACEDATACLOUD_API_TOKEN="your_token_here"
# Run (stdio mode for Claude Desktop / local clients)
mcp-serp
# Run (HTTP mode for remote access)
mcp-serp --transport http --port 8000Claude Desktop (ローカル)
{
"mcpServers": {
"serp": {
"command": "uvx",
"args": ["mcp-serp"],
"env": {
"ACEDATACLOUD_API_TOKEN": "your_token_here"
}
}
}
}Docker (セルフホスト)
docker pull ghcr.io/acedatacloud/mcp-serp:latest
docker run -p 8000:8000 ghcr.io/acedatacloud/mcp-serp:latestクライアントは独自のBearerトークンで接続します。サーバーは各リクエストの Authorization ヘッダーからトークンを抽出します。
利用可能なツール
検索ツール
ツール | 説明 |
| すべてのオプションを備えた柔軟なGoogle検索 |
| 画像検索 |
| ニュース記事の検索 |
| 動画検索 |
| 地元の場所や企業の検索 |
| 地図上の場所の検索 |
情報ツール
ツール | 説明 |
| 利用可能な検索タイプの一覧 |
| ローカライゼーション用の国コードの一覧 |
| ローカライゼーション用の言語コードの一覧 |
| 時間範囲フィルターオプションの一覧 |
| 包括的な使用ガイドの取得 |
使用例
基本的なウェブ検索
User: Search for information about artificial intelligence
Claude: I'll search for information about AI.
[Calls serp_google_search with query="artificial intelligence"]時間フィルター付きニュース検索
User: What's the latest news about technology?
Claude: I'll search for recent tech news.
[Calls serp_google_news with query="technology", time_range="qdr:d"]ローカライズされた検索
User: Find popular restaurants in Tokyo
Claude: I'll search for restaurants in Tokyo.
[Calls serp_google_places with query="popular restaurants Tokyo", country="jp"]画像検索
User: Find images of the Northern Lights
Claude: I'll search for aurora borealis images.
[Calls serp_google_images with query="Northern Lights aurora borealis"]検索パラメータ
検索タイプ
タイプ | 説明 |
| 通常のウェブ検索(デフォルト) |
| 画像検索 |
| ニュース記事 |
| 地図結果 |
| 地元の企業 |
| 動画結果 |
時間範囲フィルター
コード | 時間範囲 |
| 過去1時間 |
| 過去1日 |
| 過去1週間 |
| 過去1ヶ月 |
一般的な国コード
コード | 国 |
| アメリカ合衆国 |
| イギリス |
| 中国 |
| 日本 |
| ドイツ |
| フランス |
一般的な言語コード
コード | 言語 |
| 英語 |
| 中国語(簡体字) |
| 日本語 |
| スペイン語 |
| フランス語 |
| ドイツ語 |
レスポンス構造
通常の検索結果
knowledge_graph: エンティティ情報(企業、人物など)
answer_box: 直接的な回答
organic: タイトル、リンク、スニペットを含む通常の検索結果
people_also_ask: 関連する質問
related_searches: 関連するクエリ
画像検索結果
images: URLとサムネイルを含む画像結果
ニュース検索結果
news: ソースと日付を含むニュース記事
設定
環境変数
変数 | 説明 | デフォルト |
| AceDataCloudのAPIトークン | 必須 |
| APIベースURL |
|
| OAuthクライアントID(ホストモード) | — |
| プラットフォームベースURL |
|
| リクエストタイムアウト(秒) |
|
| ログレベル |
|
コマンドラインオプション
mcp-serp --help
Options:
--version Show version
--transport Transport mode: stdio (default) or http
--port Port for HTTP transport (default: 8000)開発
開発環境のセットアップ
# Clone repository
git clone https://github.com/AceDataCloud/SerpMCP.git
cd SerpMCP
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # or `.venv\Scripts\activate` on Windows
# Install with dev dependencies
pip install -e ".[dev,test]"テストの実行
# Run unit tests
pytest
# Run with coverage
pytest --cov=core --cov=tools
# Run integration tests (requires API token)
pytest tests/test_integration.py -m integrationコード品質
# Format code
ruff format .
# Lint code
ruff check .
# Type check
mypy core toolsビルドと公開
# Install build dependencies
pip install -e ".[release]"
# Build package
python -m build
# Upload to PyPI
twine upload dist/*プロジェクト構造
SerpMCP/
├── core/ # Core modules
│ ├── __init__.py
│ ├── client.py # HTTP client for SERP API
│ ├── config.py # Configuration management
│ ├── exceptions.py # Custom exceptions
│ └── server.py # MCP server initialization
├── tools/ # MCP tool definitions
│ ├── __init__.py
│ ├── search_tools.py # Search tools
│ └── info_tools.py # Information tools
├── prompts/ # MCP prompt templates
│ └── __init__.py
├── tests/ # Test suite
│ ├── conftest.py
│ ├── test_client.py
│ └── test_config.py
├── deploy/ # Deployment configs
│ └── production/
│ ├── deployment.yaml
│ ├── ingress.yaml
│ └── service.yaml
├── .env.example # Environment template
├── .gitignore
├── CHANGELOG.md
├── Dockerfile # Docker image for HTTP mode
├── docker-compose.yaml # Docker Compose config
├── LICENSE
├── main.py # Entry point
├── pyproject.toml # Project configuration
└── README.mdAPIリファレンス
このサーバーはAceDataCloud Google SERP APIをラップしています:
貢献
貢献を歓迎します!以下の手順に従ってください:
リポジトリをフォークする
フィーチャーブランチを作成する (
git checkout -b feature/amazing)変更をコミットする (
git commit -m 'Add amazing feature')ブランチにプッシュする (
git push origin feature/amazing)プルリクエストを開く
ライセンス
MITライセンス - 詳細はLICENSEを参照してください。
リンク
Made with love by AceDataCloud
Available Tools
11 toolsserp_get_usage_guideGet Google search usage guideARead-onlyIdempotentInspect
Get a comprehensive guide for using the Google SERP tools.
Provides detailed information on how to use the SERP search tools
effectively, including parameters, examples, and best practices.
Returns:
Complete usage guide for SERP tools.
Inputs: no named parameters. Returns: result
serp_google_imagesSearch Google ImagesCRead-onlyInspect
Search Google Images and get image results.
Performs a Google Image search and returns structured image results.
Inputs: query (required), page, number, country, +2 more. Returns: result
serp_google_mapsSearch Google MapsCRead-onlyInspect
Search Google Maps for locations.
Performs a Google Maps search and returns structured map results.
Inputs: query (required), page, number, country, +1 more. Returns: result
serp_google_newsSearch Google NewsCRead-onlyInspect
Search Google News and get news article results.
Performs a Google News search and returns structured news results.
Inputs: query (required), page, number, country, +2 more. Returns: result
serp_google_placesSearch Google PlacesCRead-onlyInspect
Search Google for local places and businesses.
Performs a Google Places search and returns structured place results.
Inputs: query (required), page, number, country, +1 more. Returns: result
serp_google_searchSearch GoogleBRead-onlyInspect
Search Google and get structured results using the SERP API.
Performs a Google search and returns the complete JSON response from the API,
preserving all available fields and data.
Args:
query: The search query string. Required.
search_type: Type of search to perform. Options:
- "search": Regular web search (default)
- "images": Image search
- "news": News articles
- "maps": Map results
- "places": Local business/place results
- "videos": Video results
country: Country code for localized results (e.g., "us", "cn", "uk").
Default is "us".
language: Language code for results (e.g., "en", "zh-cn", "fr").
Default is "en".
time_range: Time filter for results. Options:
- "qdr:h": Past hour
- "qdr:d": Past day
- "qdr:w": Past week
- "qdr:m": Past month
- None: No time restriction (default)
number: Number of results per page (default: 10).
Note: More than 10 results may incur additional credits.
page: Page number for pagination (default: 1).
Returns:
Complete JSON response from the SERP API containing all available data.
Example:
serp_google_search(query="artificial intelligence", search_type="news")
Inputs: query (required), page, number, country, +4 more. Returns: result
serp_google_videosSearch Google VideosCRead-onlyInspect
Search Google Videos and get video results.
Performs a Google Video search and returns structured video results.
Inputs: query (required), page, number, country, +1 more. Returns: result
serp_list_countriesList search country codesARead-onlyIdempotentInspect
List commonly used country codes for Google search.
Shows common country codes that can be used to localize search results.
Returns:
Table of country codes and their countries.
Inputs: no named parameters. Returns: result
serp_list_languagesList search language codesARead-onlyIdempotentInspect
List commonly used language codes for Google search.
Shows common language codes that can be used to get results in specific languages.
Returns:
Table of language codes and their languages.
Inputs: no named parameters. Returns: result
serp_list_search_typesList Google search typesARead-onlyIdempotentInspect
List all available Google search types.
Shows all available search types and their use cases.
Use this to understand which search type to use for your query.
Returns:
Table of all search types with descriptions.
Inputs: no named parameters. Returns: result
serp_list_time_rangesList search time filtersARead-onlyIdempotentInspect
List available time range filters for Google search.
Shows all time range options that can be used to filter results by date.
Returns:
Table of time range codes and their meanings.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
The serp_list_* and serp_get_usage_guide tools are distinct, but serp_google_search accepts a search_type parameter covering images/news/videos/places/maps while separate tools exist for each of those same verticals. This creates multiple overlapping search tools with unclear boundaries, so an agent may struggle to choose between the general and specialized versions.
All tools use a consistent serp_ prefix and snake_case naming, with predictable groupings: serp_list_* for reference lists, serp_get_* for guides, and serp_google_* for search actions. The pattern is easy to follow and no naming convention is mixed.
At 11 tools, the set is within a reasonable range for a Google SERP API wrapper. However, the five specialized search tools duplicate functionality already available through serp_google_search, so the surface is slightly larger than necessary.
The tool set covers the apparent domain well: it provides a general Google search, all major search verticals (images, news, videos, places, maps), and reference lists for search types, countries, languages, and time ranges. There are no obvious missing operations for a read-only SERP search server.
Maintenance
Related MCP Connectors
Hosted SEO MCP server for AI agents: keyword research, live Google SERPs and Maps, local rank tracking, backlinks, site audits, competitor research, and Search Console data.
Google SERP API MCP: live Google, Bing, AI Overview and Google Maps results as JSON. Pay per call.
Web search API and MCP server for developers building AI agents.
Live Google Maps business search, review, and photo data for AI agents over MCP.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceAn MCP (Model Context Protocol) server that provides Google search capabilities and webpage content analysis tools. This server enables AI models to perform Google searches and analyze webpage content programmatically.262-
- AlicenseAqualityAmaintenanceAn MCP server that integrates with SerpApi to retrieve search results from multiple search engines including Google, Bing, Yahoo, and others, enabling fast access to both live and archived search data.4188MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) based search API server that provides standardized access to Google Maps, Google Flights, Google Hotels and other services. This server enables AI assistants to access various search services through a unified interface.74MIT
- -licenseNot gradedqualityNot gradedmaintenanceAn MCP (Multi-Agent Conversation Protocol) Server that enables interaction with Google's Custom Search API, allowing agents to perform customized web searches through natural language requests.-