Registry /
aws / awslabs-aws-location-mcp-server
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
AWSLocationMCPServer
✓ from awslabs.aws_location_mcp_server import AWSLocationMCPServer
✗ from awslabs_aws_location_mcp_server import AWSLocationMCPServer
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()
Debug
Known issues
breakingIn 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.fixUpdate import to 'from awslabs_aws_location_mcp_server import AWSLocationMCPServer'.
affects: <2.0.0 vs >=2.0.0
breakingAs 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.fixProvide region argument: AWSLocationMCPServer(region='us-west-2').
affects: >=2.0.0
gotchaThe package installs with hyphens (pip install awslabs-aws-location-mcp-server) but the Python import uses underscores: from awslabs_aws_location_mcp_server import ...fixReplace hyphens with underscores in the import path.
affects: all
Upgrade
Version history
2.0.18latest on PyPI · released May 9, 2026
Audit
Dependencies
boto3requiredAWS SDK for Python, required for AWS Location Service API calls
mcprequiredModel Context Protocol SDK for building MCP servers