ADK MCP 代理
使用 Google ADK 和模型上下文协议 (MCP) Google 地图工具集的流聊天代理。
本地开发
安装依赖项:
pip install -r requirements.txt使用您的 API 密钥在
app/
中设置.env
。本地运行:
export SSL_CERT_FILE=$(python -m certifi) uvicorn app.main:app --reload
项目结构
adk-mcp-agent/
├── app/
│ ├── main.py
│ ├── static/
│ │ └── index.html
│ └── .env
├── agent/
│ └── agents.py
├── requirements.txt
├── Dockerfile
├── README.md
└── .gitignore
代理逻辑位于
agent/
目录(agent/agents.py
)中。FastAPI 应用程序和 UI 位于
app/
目录中。
部署
要使用 UI 在本地测试并运行应用程序:
安装依赖项:
pip install -r requirements.txt设置环境变量:
使用您的 API 密钥在
app/
目录内创建一个.env
文件:GOOGLE_GENAI_USE_VERTEXAI=FALSE GOOGLE_API_KEY=your_genai_api_key GOOGLE_MAPS_API_KEY=your_google_maps_api_key
运行 FastAPI 应用:
export SSL_CERT_FILE=$(python -m certifi) uvicorn app.main:app --reload访问用户界面:
打开浏览器并转到http://localhost:8000
您现在可以与聊天界面进行交互并在本地测试代理。
执照
麻省理工学院
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
流式聊天代理将 Google ADK 与模型上下文协议和 Google 地图工具相集成,使用户能够通过对话界面与基于位置的服务进行交互。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI agents to interact with Google Workspace services including Drive, Docs, and Sheets through natural language commands.Last updated -8MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI agents to join and interact with online meetings (Zoom and Google Meet), capturing transcripts and recordings to generate meeting summaries.Last updated -37MIT License
- -securityFlicense-qualityA Multi-Agent Conversation Protocol server that enables interaction with Google Cloud Datastream API for managing data replication services between various source and destination systems through natural language commands.Last updated -
- -securityFlicense-qualityA Multi-Agent Conversation Protocol Server that provides access to Google's Local Services API, enabling interaction with local service businesses information through natural language commands.Last updated -