Build with AI agents - Amazon Location Service

Build with AI agents

AI and LLMs can significantly accelerate development with Amazon Location Service by providing intelligent assistance for API usage, code generation, and troubleshooting. By configuring your LLM client with the right MCP servers and context, you can create a powerful development assistant that understands AWS services and Amazon Location Service specifics. Using a minimal context and MCP configuration as recommended on this page can ensure your LLM model of choice has enough context to lead to correct results without overwhelming the context window. This can reduce hallucinations and increase result accuracy. This configuration also ensures that model knowledge cutoff does not impact the quality of the results. The Amazon Location Service agent context package provides ready-to-use integrations for popular AI coding assistants, guiding AI agents through adding maps, places search, geocoding, routing, and other geospatial features, including authentication setup, SDK integration, and best practices. Choose the installation method that matches your development environment.

For Kiro users

Kiro supports Amazon Location Service through both the Kiro IDE (as a power) and the Kiro CLI (as an Agent Skill).

Kiro IDE

Install Amazon Location Service as a power using the one-click install link:

Install Amazon Location Service power in Kiro

Tip

Alternatively, open Kiro IDE, navigate to the Powers panel, select the Available tab, and search for "Build geospatial applications with Amazon Location Service".

Note

When using Spec mode, include "use the Amazon Location Service power" in your spec prompt for Kiro to activate it.

Kiro CLI

Install Amazon Location Service as an Agent Skill using the skills CLI:

npx skills add aws-geospatial/amazon-location-agent-context -a kiro-cli

After installing, add the skill to your custom agent's resources in .kiro/agents/<agent>.json:

{ "resources": [ "skill://.kiro/skills/**/SKILL.md" ] }
Note

Kiro CLI skill installations don't include MCP configuration automatically. See MCP Servers for manual setup.

Once installed, Amazon Location Service activates automatically when you mention keywords like "location", "maps", "geocoding", "routing", "places", "geofencing", or "tracking" in your prompts.

For Claude Code and Cursor users

For Claude Code and Cursor users, install the amazon-location-service plugin from the respective official marketplaces. The plugin includes MCP configuration automatically.

Claude Code

You can install the amazon-location-service plugin from the official Claude Plugins Marketplace.

Run the following command to install the plugin:

/plugin install amazon-location-service@claude-plugins-official
Cursor

You can install the amazon-location-service plugin from the official Cursor Marketplace. For additional information, see the Cursor plugin documentation. You can also install within the Cursor application:

  1. Open Cursor Settings.

  2. Navigate to Plugins.

  3. Search for AWS.

  4. Select the amazon-location-service plugin and choose Add to Cursor.

  5. Select the scope for the installed plugin.

The plugin should appear under Plugins > Installed.

For other AI coding agents

For AI coding agents that support the Agent Skills open standard (including GitHub Copilot, OpenCode, Codex, Antigravity, and more), install the skill using the skills CLI:

npx skills add aws-geospatial/amazon-location-agent-context

The CLI guides you through selecting which agent to install the skill for and at what scope (project or user level):

$ npx skills add aws-geospatial/amazon-location-agent-context ? Select an agent: (Use arrow keys) › Claude Code Cursor GitHub Copilot OpenCode Codex Antigravity ? Select a scope: (Use arrow keys) › Project — install in current directory (committed with your project) Global — install globally for all projects

You can also install for a specific agent directly:

GitHub Copilot:

npx skills add aws-geospatial/amazon-location-agent-context -a github-copilot

OpenCode:

npx skills add aws-geospatial/amazon-location-agent-context -a opencode

Codex:

npx skills add aws-geospatial/amazon-location-agent-context -a codex

Once installed, the skill activates automatically when your task involves location, maps, geocoding, routing, or other Amazon Location Service topics.

Note

For Claude Code and Cursor users, we recommend the For Claude Code and Cursor users for the best experience, as it includes MCP configuration automatically.

For direct context usage

If you are not using Kiro, Claude Code/Cursor plugins, or one of the agents supported by Agent Skills, you can load the context files directly into your LLM:

  1. Start with context/amazon-location.md from the amazon-location-agent-context repository for the service overview.

  2. Add specific files from context/additional/ as needed for your task, or allow the LLM client to read them on demand.

MCP Servers

The Kiro IDE (Power) and For Claude Code and Cursor users installations include MCP configuration automatically. If you are using the Kiro CLI, For other AI coding agents, or For direct context usage, configure the following server manually for full functionality: