MCP
谷歌MCP服务器
数十亿人每天使用谷歌查找网页、新闻、图片、视频和本地结果,使其在可发现性、声誉管理和需求捕捉中至关重要。
MCP 版本: 1.0.0 6 MCP工具 身份验证
基本网址
https://mcp.pressmonitor.com/mcp 身份验证
MCP 调用也使用 Bearer 令牌通过 JSON-RPC 2.0 请求。
Authorization: Bearer YOUR_TOKEN search_web
网页搜索
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query_text | string | 是 | 查询文本 |
| lang_code | string | 不 | 语言代码 |
| country_code | string | 不 | 国家代码 |
| count | integer | 不 | 返回结果数量 |
| safesearch | string | 不 | 安全搜索 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_web",
"arguments": {
"query_text": "VALUE"
}
},
"id": 1
}' search_news
新闻搜索
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query_text | string | 是 | 查询文本 |
| lang_code | string | 不 | 语言代码 |
| country_code | string | 不 | 国家代码 |
| count | integer | 不 | 返回结果数量 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_news",
"arguments": {
"query_text": "VALUE"
}
},
"id": 1
}' search_images
图片搜索
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query_text | string | 是 | 查询文本 |
| lang_code | string | 不 | 语言代码 |
| country_code | string | 不 | 国家代码 |
| count | integer | 不 | 返回结果数量 |
| safesearch | string | 不 | 安全搜索 |
| color | string | 不 | 颜色 |
| size | string | 不 | 大小 |
| type_image | string | 不 | 图片类型 |
| layout | string | 不 | 布局 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_images",
"arguments": {
"query_text": "VALUE"
}
},
"id": 1
}' search_videos
视频搜索
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query_text | string | 是 | 查询文本 |
| lang_code | string | 不 | 语言代码 |
| country_code | string | 不 | 国家代码 |
| count | integer | 不 | 返回结果数量 |
| safesearch | string | 不 | 安全搜索 |
| timelimit | string | 不 | 时间限制 |
| duration | string | 不 | 时长 |
| resolution | string | 不 | 分辨率 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_videos",
"arguments": {
"query_text": "VALUE"
}
},
"id": 1
}' search_map
地图搜索
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query_text | string | 是 | 查询文本 |
| place | string | 不 | 地点 |
| street | string | 不 | 街道 |
| city | string | 不 | 城市 |
| state | string | 不 | 州 |
| country | string | 不 | 国家 |
| postalcode | string | 不 | 邮政编码 |
| latitude | string | 不 | 纬度 |
| longitude | string | 不 | 经度 |
| radius | string | 不 | 半径 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search_map",
"arguments": {
"query_text": "VALUE"
}
},
"id": 1
}' auto_complete
自动完成
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query_text | string | 是 | 查询文本 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "auto_complete",
"arguments": {
"query_text": "VALUE"
}
},
"id": 1
}'