aws-location-mcp

raw JSON →
2.0.18 verified Sat May 09 auth: no python

An AWS Labs Model Context Protocol (MCP) server for AWS Location Service, currently at v2.0.18. Enables AI assistants to interact with AWS Location Service (maps, places, geofencing). Active development with frequent minor releases.

pip install awslabs-aws-location-mcp-server
error ModuleNotFoundError: No module named 'awslabs-aws-location-mcp-server'
cause Trying to import the package using hyphens, which is not valid Python syntax.
fix
Use underscores: from awslabs_aws_location_mcp_server import ...
error ImportError: cannot import name 'LocationMCPServer' from 'awslabs_aws_location_mcp_server'
cause Breaking change in v2.0.0: class renamed from LocationMCPServer to AWSLocationMCPServer.
fix
Use AWSLocationMCPServer instead: from awslabs_aws_location_mcp_server import AWSLocationMCPServer.
error TypeError: __init__() missing 1 required positional argument: 'region'
cause In v2.0.0+, region is a required parameter.
fix
Provide region argument: AWSLocationMCPServer(region='us-east-1').
breaking In v2.0.0, the server class was renamed from 'LocationMCPServer' to 'AWSLocationMCPServer'. The old import path 'from awslabs_aws_location_mcp_server import LocationMCPServer' will raise ImportError.
fix Update import to 'from awslabs_aws_location_mcp_server import AWSLocationMCPServer'.
breaking As of v2.0.0, the constructor signature changed: 'region' parameter is now required (previously optional with default 'us-east-1'). Passing no region will raise TypeError.
fix Provide region argument: AWSLocationMCPServer(region='us-west-2').
gotcha The package installs with hyphens (pip install awslabs-aws-location-mcp-server) but the Python import uses underscores: from awslabs_aws_location_mcp_server import ...
fix Replace hyphens with underscores in the import path.

Initialize and run the MCP server. Requires AWS credentials and optional API key.

import os
from awslabs_aws_location_mcp_server import AWSLocationMCPServer

# Ensure AWS credentials are set (e.g., AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION)
server = AWSLocationMCPServer(
    region=os.environ.get('AWS_DEFAULT_REGION', 'us-east-1'),
    api_key=os.environ.get('AWS_LOCATION_API_KEY', '')
)

# Run the server (MCP stdio transport)
server.run()