Skip to main content
Glama
GSA-TTS

mcp-server-usace-iwr

by GSA-TTS

mcp-server-usace-iwr

An MCP (Model Context Protocol) server that wraps the U.S. Army Corps of Engineers (USACE) Institute for Water Resources (IWR) River Mile Marker ArcGIS Feature Service, letting an LLM locate river mile markers on navigable U.S. rivers and answer "what river mile am I at?" style questions.

  • Dataset: USACE River Mile Markers

  • Service: https://services7.arcgis.com/n1YM8pTrFmm7L4hs/arcgis/rest/services/usace_river_mile_markers/FeatureServer/0

  • Auth: none (public service)

  • CRS: WGS84 (EPSG:4326) decimal degrees

Tools

Tool

Purpose

usace_rivermile_nearest

Return the single closest marker to a lat/lon (with distance + bearing).

usace_rivermile_find_markers

Find markers near a point (radius) or within a GeoJSON geometry/bbox.

usace_rivermile_query

Filter markers by river name and/or mile-value range, with pagination.

All tools are read-only and return provenance (source agency, dataset, service URL, layer, CRS, retrieval time).

Layer fields

name, LONGITUDE1, LATITUDE1, MILE, RIVER_CODE, RIVER_NAME, RIVER_NUMB, SOURCE.

Running locally (stdio)

uv sync
uv run python -m usace_iwr_server.app

The server uses stdio transport by default. If a PORT (or DATABRICKS_APP_PORT) environment variable is set, it serves streamable HTTP at /mcp instead, with a /health readiness endpoint.

Container / deployment

bash scripts/build-and-push.sh   # builds linux/amd64 and pushes to GHCR

Development

uv run python -m py_compile src/usace_iwr_server/*.py src/usace_iwr_server/tools/*.py
npx @modelcontextprotocol/inspector uv run python -m usace_iwr_server.app

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/GSA-TTS/mcp-server-usace-iwr'

If you have feedback or need assistance with the MCP directory API, please join our Discord server