# 安装 MCP Search Console

- 类型: MCP 工具
- 说明: 帮助你跨多个 Google Search Console 账户统一查看分析数据、URL 检查与站点地图状态。
- 仓库: https://github.com/apexradius/mcp-search-console

## 方式一 · 一键代装（复制提示词让 AI 代劳）

### Claude Code
```
请帮我安装 askskill 上的 "MCP Search Console" MCP 服务：
执行：claude mcp add 'io-github-ayo-fam-mcp-search-console' -- npx -y mcp-search-console-multi
```

### Codex
```
请帮我安装 askskill 上的 "MCP Search Console" MCP 服务：
在 ~/.codex/config.toml 中添加：
[mcp_servers.io-github-ayo-fam-mcp-search-console]
command = "npx"
args = ["-y","mcp-search-console-multi"]
然后重启 Codex 生效
```

### Cursor
```
请帮我安装 askskill 上的 "MCP Search Console" MCP 服务：
在 .cursor/mcp.json 的 "mcpServers" 中添加：
"io-github-ayo-fam-mcp-search-console": { "command": "npx", "args": ["-y","mcp-search-console-multi"] }
然后在 Cursor 设置 > MCP 中启用
```

## 方式二 · 命令行安装（原生命令与配置）

### Claude Code
```bash
claude mcp add --env GSC_ACCOUNTS_CONFIG=YOUR_VALUE --env GSC_ALLOW_DESTRUCTIVE=YOUR_VALUE --transport stdio io-github-ayo-fam-mcp-search-console -- npx -y mcp-search-console-multi
```
需要环境变量：GSC_ACCOUNTS_CONFIG, GSC_ALLOW_DESTRUCTIVE

### Codex
```bash
codex mcp add --env GSC_ACCOUNTS_CONFIG=YOUR_VALUE --env GSC_ALLOW_DESTRUCTIVE=YOUR_VALUE io-github-ayo-fam-mcp-search-console -- npx -y mcp-search-console-multi
```
配置文件 ~/.codex/config.toml：
```toml
[mcp_servers.io-github-ayo-fam-mcp-search-console]
command = "npx"
args = ["-y","mcp-search-console-multi"]

[mcp_servers.io-github-ayo-fam-mcp-search-console.env]
GSC_ACCOUNTS_CONFIG = "YOUR_VALUE"
GSC_ALLOW_DESTRUCTIVE = "YOUR_VALUE"
```
需要环境变量：GSC_ACCOUNTS_CONFIG, GSC_ALLOW_DESTRUCTIVE

### Cursor
配置文件 .cursor/mcp.json：
```json
{
  "mcpServers": {
    "io-github-ayo-fam-mcp-search-console": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-search-console-multi"
      ],
      "env": {
        "GSC_ACCOUNTS_CONFIG": "YOUR_VALUE",
        "GSC_ALLOW_DESTRUCTIVE": "YOUR_VALUE"
      }
    }
  }
}
```
一键安装：cursor://anysphere.cursor-deeplink/mcp/install?name=io-github-ayo-fam-mcp-search-console&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIm1jcC1zZWFyY2gtY29uc29sZS1tdWx0aSJdLCJlbnYiOnsiR1NDX0FDQ09VTlRTX0NPTkZJRyI6IllPVVJfVkFMVUUiLCJHU0NfQUxMT1dfREVTVFJVQ1RJVkUiOiJZT1VSX1ZBTFVFIn19
需要环境变量：GSC_ACCOUNTS_CONFIG, GSC_ALLOW_DESTRUCTIVE
