Searches for places near the user, detecting the location from the IP address.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add nearby-search --env GOOGLE_API_KEY='<GOOGLE_API_KEY>' -- python main.py~/.codex/config.toml
[mcp_servers.nearby-search]
command = "python"
args = ["main.py"]
env = { GOOGLE_API_KEY = "<GOOGLE_API_KEY>" }
# codex mcp add nearby-search --env GOOGLE_API_KEY='<GOOGLE_API_KEY>' -- python main.py~/.cursor/mcp.json
{
"mcpServers": {
"nearby-search": {
"command": "python",
"args": [
"main.py"
],
"env": {
"GOOGLE_API_KEY": "<GOOGLE_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"nearby-search": {
"type": "stdio",
"command": "python",
"args": [
"main.py"
],
"env": {
"GOOGLE_API_KEY": "<GOOGLE_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"nearby-search": {
"command": "python",
"args": [
"main.py"
],
"env": {
"GOOGLE_API_KEY": "<GOOGLE_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"nearby-search": {
"command": "python",
"args": [
"main.py"
],
"env": {
"GOOGLE_API_KEY": "<GOOGLE_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"nearby-search": {
"command": "python",
"args": [
"main.py"
],
"env": {
"GOOGLE_API_KEY": "<GOOGLE_API_KEY>"
}
}
}
}需要的环境变量
GOOGLE_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。