loading…
Search for a command to run...
loading…
Provides comprehensive access to Singapore's OneMap APIs, enabling AI assistants to perform location searches, routing, and coordinate conversions. It features
Provides comprehensive access to Singapore's OneMap APIs, enabling AI assistants to perform location searches, routing, and coordinate conversions. It features over 35 tools for accessing thematic layers, population statistics, and public transport data.
A Python-based MCP (Model Context Protocol) server that provides comprehensive access to Singapore's OneMap APIs. Built with FastMCP for easy integration with AI assistants and Microsoft AI Foundry.
This server exposes 35+ tools across 10 API categories:
cd onemap-mcp
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
.env file with your credentials:cp .env.example .env
# Edit .env with your OneMap credentials
python server.py
Create a .env file with:
[email protected]
ONEMAP_EMAIL_PASSWORD=your_password
docker build -t onemap-mcp .
docker run -d \
-e ONEMAP_EMAIL="[email protected]" \
-e ONEMAP_EMAIL_PASSWORD="your_password" \
--name onemap-mcp \
onemap-mcp
| Tool | Description |
|---|---|
search |
Search for addresses, buildings, postal codes |
reverse_geocode_wgs84 |
Get address from WGS84 coordinates |
reverse_geocode_svy21 |
Get address from SVY21 coordinates |
| Tool | Description |
|---|---|
route_walk_drive_cycle |
Walking, driving, cycling, barrier-free routes |
route_public_transport |
Bus and MRT routes with fare info |
| Tool | Description |
|---|---|
convert_4326_to_3857 |
WGS84 → Web Mercator |
convert_4326_to_3414 |
WGS84 → SVY21 |
convert_3414_to_4326 |
SVY21 → WGS84 |
convert_3414_to_3857 |
SVY21 → Web Mercator |
convert_3857_to_4326 |
Web Mercator → WGS84 |
convert_3857_to_3414 |
Web Mercator → SVY21 |
| Tool | Description |
|---|---|
get_all_themes_info |
List all 100+ thematic layers |
get_theme_info |
Get info about a specific theme |
check_theme_status |
Check if theme was updated |
retrieve_theme |
Retrieve theme data |
| Tool | Description |
|---|---|
get_all_planning_areas |
Get all 55 planning area polygons |
get_planning_area_names |
List planning area names |
get_planning_area_by_location |
Get planning area for a location |
| Tool | Description |
|---|---|
get_population_age_group |
Population by age |
get_ethnic_distribution |
Ethnic group distribution |
get_economic_status |
Employment statistics |
get_household_monthly_income |
Income distribution |
get_education_status |
Education levels |
| ... and more |
| Tool | Description |
|---|---|
get_nearby_mrt_stations |
Find nearby MRT/LRT stations |
get_nearby_bus_stops |
Find nearby bus stops |
| Tool | Description |
|---|---|
get_static_map |
Generate map images with overlays |
# Search for Marina Bay Sands
result = await search(search_value="Marina Bay Sands")
# Driving route from Changi to Orchard
result = await route_walk_drive_cycle(
start_lat=1.3644,
start_lon=103.9915,
end_lat=1.3048,
end_lon=103.8318,
route_type="drive"
)
result = await get_nearby_mrt_stations(
latitude=1.3521,
longitude=103.8198,
radius_in_meters=1000
)
onemap-mcp/
├── server.py # FastMCP server with all tools
├── mcp.json # MCP manifest
├── tools.json # Tool definitions for AI Foundry
├── onemap/
│ ├── __init__.py
│ └── utils.py # HTTP client and utility functions
├── .env # Your credentials (not in git)
├── .env.example # Template for credentials
├── Dockerfile
├── requirements.txt
└── README.md
# Build and push to Azure Container Registry
az acr build --registry <registry-name> --image onemap-mcp:latest .
# Deploy to Container Apps
az containerapp create \
--name onemap-mcp \
--resource-group <resource-group> \
--image <registry-name>.azurecr.io/onemap-mcp:latest \
--env-vars ONEMAP_EMAIL=<email> ONEMAP_EMAIL_PASSWORD=<password>
tools.json file to configure tool definitionsONEMAP_EMAIL and ONEMAP_EMAIL_PASSWORD environment variablesMIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"onemap-mcp-server": {
"command": "npx",
"args": []
}
}
}Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also