使用说明
Location Intelligence ADK Agent with MCP
This is a mini-project for the ADK + MCP track. It implements an AI agent that uses the Model Context Protocol (MCP) to connect to a Wikipedia proxy (acting as a remote "Zoo Server") to retrieve structured data about animals and generate a response.
Features
- Built with Google ADK (
google.adk). - Connects to an MCP server using
McpToolset(mcpstandard). - Fast and reliable deployment to Google Cloud Run using a lightweight
FastAPIwrapper and Docker.
Running Locally
-
Set your
GOOGLE_API_KEY:export GOOGLE_API_KEY="your-api-key-here" -
Install dependencies:
pip install -r requirements.txt -
Run the application:
uvicorn main:app --port 8080 -
You can then query the agent:
curl -X POST "http://localhost:8080/query" \ -H "Content-Type: application/json" \ -d '{"query": "Tell me about pandas."}'
Deploying to Cloud Run
Assuming you have gcloud set up and configured:
gcloud run deploy mcp-adk-agent \
--source . \
--region us-central1 \
--allow-unauthenticated \
--set-env-vars GOOGLE_API_KEY=YOUR_API_KEY
