Skip to main content
Glama

Google Maps MCP Server

by amithmathew
agent.py840 B
"""Road Trip Planner agent""" from google.adk.agents import Agent from google.adk.tools.agent_tool import AgentTool from google.adk.tools import google_search from google.adk.tools.mcp_tool.mcp_toolset import MCPToolset, StreamableHTTPConnectionParams from . import prompt MODEL = "gemini-2.5-pro" mcp_tools = MCPToolset( connection_params=StreamableHTTPConnectionParams( url="http://127.0.0.1:8080/mcp", ) ) search_agent = Agent( model=MODEL, name='SearchAgent', instruction="You are a specialist in Google Search", tools=[google_search] ) roadtrip_planner = Agent( name="roadtrip_planner", model=MODEL, description=( "Plan your next roadtrip!" ), instruction=prompt.ROADTRIP_PLANNER_ROOT, tools=[mcp_tools, AgentTool(search_agent)] ) root_agent = roadtrip_planner

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amithmathew/mcp-demo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server