This example uses your preferred MCP client to interact with MCP for ArcGIS Location Services through natural language prompts. You will geocode addresses, generate point to point routes, retrieve elevation information, and create a static map showing the route.
Prerequisites
Your MCP client must be properly configured to access MCP for ArcGIS Location Services. For setup instructions, go to Get started.
Examples
Geocode an address
Ask the agent:
Find the coordinates for these locations in Colorado:
- red rocks amphitheatre- pikes peak- rocky mtn national park visitor centerThe agent should:
- Return standardized location names
- Return coordinates of each location
Get elevation data
Ask the agent:
Compare the elevation differences of Fort Collins, Denver, Colorado Springs, and Durango.The agent should:
- Return elevation value for each city in meters and feet above sea level
- Compare elevations by calculating differences
- Rank cities from highest to lowest elevation
Get driving directions
Ask the agent:
Create a driving route from Red Rocks Amphitheatre to Pikes Peak.The agent should:
- Calculate and return point to point directions
- Return travel distance and estimated drive time
- Generate route geometry in a JSON file
Generate a static map with a route
Ask the agent:
Create a static map showing the route from Red Rocks Amphitheatre to Pikes Peak.The agent should:
- Calculate the route
- Extract the solved route geometry and hand it to the static map tool
- Simplify points as needed to meet tool input requirements
- Generate a static map PNG with the route visualized as a polyline and labeled start and end points