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 客户端指向托管服务器,并将你的密钥作为 bearer 令牌传递:
{ "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)。 |