MCP のセットアップとクライアント
クライアントを選択してください。必要なのは serp.cheap の API キーだけです。
claude mcp add google-cheap-search -e SERPCHEAP_API_KEY=your-key -- npx -y @serpcheap/mcpクライアントの MCP 設定(claude_desktop_config.json、Cursor の mcp.json など)に追加します:
{ "mcpServers": { "google-cheap-search": { "command": "npx", "args": ["-y", "@serpcheap/mcp"], "env": { "SERPCHEAP_API_KEY": "your-key" } } }}任意の MCP クライアントをホスト型サーバーに向け、キーをベアラートークンとして渡します:
{ "mcpServers": { "google-cheap-search": { "url": "https://mcp.serp.cheap/mcp", "headers": { "Authorization": "Bearer your-key" } } }}CLI フラグ
Section titled “CLI フラグ”serpcheap-mcp [--stdio | --http] [--host 127.0.0.1] [--port 7100] [--allowed-hosts <csv>] [-v]| 変数 | デフォルト | 備考 |
|---|---|---|
SERPCHEAP_API_KEY | — | stdio に必須(HTTP はリクエストごとの認証を使用できます)。 |
SERPCHEAP_BASE_URL | https://api.serp.cheap | API ベース URL の上書き。 |
SERPCHEAP_TIMEOUT_MS | 20000 | アップストリームのタイムアウト(1000–120000)。 |