Google Search MCP Service
这是一个MCP(模型上下文协议)服务,提供对 Google Custom Search API 的访问。它允许您与 Google 搜索进行交互,并检索网页内容和搜索结果。
功能
-
搜索
- google_search 执行 Google 搜索
- read_webpage 提取网页内容
-
搜索功能
- 自定义搜索结果数量
- 支持多种搜索参数
- 返回标题、链接、摘要等信息
-
网页内容提取
- 提取网页文本内容
- 清理HTML标签
- 获取页面元数据
- 支持多种内容格式
-
网络支持
- HTTP 代理支持
- SOCKS 代理支持
- 自定义请求头
- 超时控制
安装
# 克隆仓库
git clone https://github.com/your-repo/google-search-mcp.git
cd google-search-mcp
# 创建并激活虚拟环境
uv sync
使用(如Claude客户端)
URL: https://mcpcn.com/docs/quickstart/user/
claude_desktop_config.json
{
"mcpServers": {
"google-search": {
"command": "uv",
"args": [
"--directory",
"/Users/Desktop/google-search-mcp", # 替换为你的目录
"run",
"google-search-mcp"
],
"env": {
"GOOGLE_API_KEY": "your_api_key_here", # 替换为你的 Google API 密钥
"GOOGLE_SEARCH_ENGINE_ID": "your_engine_id_here" # 替换为你的搜索引擎ID
}
}
}
}
or
{
"mcpServers": {
"google-search": {
"command": "uvx",
"args": [
"google-search-mcp"
],
"env": {
"GOOGLE_API_KEY": "your_api_key_here", # 替换为你的 Google API 密钥
"GOOGLE_SEARCH_ENGINE_ID": "your_engine_id_here" # 替换为你的搜索引擎ID
}
}
}
}
Metadata
Release files for google-search-mcp 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| google_search_mcp-0.1.1.tar.gz | 7.3 kB | Without provenance | Details for google_search_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| google_search_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for google_search_mcp-0.1.1-py3-none-any.whl |
Total release size: 13.9 kB
Release files / google_search_mcp-0.1.1.tar.gz
| Download URL | google_search_mcp-0.1.1.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba7ae688d87b1555b8f6a02abbcf719771e3d93153f72223cb1c6a914b0d4fda
|
|
BLAKE2b-256 checksum How to use checksums |
699f3e761e2caa10951d276cded28e627ae9576adab9e1048942a2dae4acdc0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.11
|
Release files / google_search_mcp-0.1.1-py3-none-any.whl
| Download URL | google_search_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ce7feb22fa68f9acdca5ed350c8e1173ec33ca33665e3d5ffffc7066eed5dd7
|
|
BLAKE2b-256 checksum How to use checksums |
f9e6e550a69204e38d626cd5a98eeeec2cbb1189668620c3c6679a7a16f8d617
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.11
|
Security for google-search-mcp 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.