OpenContext
Provides tools for discovering, querying, and aggregating public ArcGIS Feature Services from the Alaska Geoportal, including spatial queries, schema inspection, and polygon-based analysis.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OpenContextFind all public campgrounds within 50 miles of Anchorage in the Alaska Geoportal"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Alaska Geoportal MCP
A statewide Model Context Protocol server
over the State of Alaska Geoportal -- the Alaska Geospatial Office's
ArcGIS Online organization (soa-dnr), which publishes several hundred public
Feature Services from DNR (land status, statewide parcels, forestry, state
parks, oil & gas, DGGS geology) and hosts the catalog that other state
agencies and boroughs share into.
Ask a connected model "how many miles of forestry road are in the Mat-Su Borough", "which fire service area is this point in", or "list the CWPP areas", and it answers from the official layers: discover the layer, read its schema, query or aggregate it, and report the number with the caveats the data carries (regional coverage, Web Mercator area inflation, capped fetches).
This is a standalone fork of codeforanchorage/anchorage-gis-mcp, pointed at the state org instead of the Municipality of Anchorage, with the two MOA-only parcel tools removed and the Anchorage-specific geometry (coverage bbox, area correction) generalized to the whole state. Both are built on OpenContext.
Scope
Hub site | |
ArcGIS Online org |
|
Public Feature Services | ~665, hosted on |
Catalog groups searched | 22: the 6 state-owned groups plus the groups of 13 Alaska partner orgs (see |
Alaska partner orgs | Municipality of Anchorage, Mat-Su, Kenai Peninsula, Fairbanks North Star, Kodiak Island and Haines boroughs, City of Unalaska, ADF&G, DEC, DCRA, DOT&PF, Alaska Energy Authority, UAA ACCS |
State and Alaska-partner layers are queryable; federal ones are not. The Geoportal catalog also lists content from federal partners (Census, USGS, NOAA, USFS, BLM, FEMA ...) whose services live in federal ArcGIS tenants. Those show up in search but are refused on query, by design (see docs/SECURITY.md). Search results label each partner layer with its publishing agency; unlabelled results are the state org's. docs/ALASKA_SOURCES.md records every org and how it was verified.
Related MCP server: mcp-arcgis-tulsa
Tools (14, all read-only)
Tool | What it does |
| Combined search of the catalog groups (maps/apps) and the org's spatial layers by topic |
| Browse or keyword-search the catalog groups (viewers, not queryable) |
| Search Feature/Map Services and downloadable data by keyword |
| Full portal item description, URL, extent, tags |
| Real, case-sensitive field names, types and coded-value domains |
| Exact stored values of a field (for building WHERE clauses) |
| Find layers that carry a given field name |
| Attribute query with WHERE / out_fields / order_by; leads with TOTAL COUNT |
| "What is at lon/lat" against a polygon layer |
| "Which X are inside / within N miles of Y", filter by another layer's polygon or inline GeoJSON |
| Count / sum source features per polygon (with optional buffer) |
| Share of each target polygon covered by an overlay layer |
| Source features inside a named container polygon |
| Source features that touch >= N distinct values of a classification layer |
Quick start
uv sync # or: pip install -r requirements.txt
cp config-alaska-geoportal.yaml config.yaml
PYTHONIOENCODING=utf-8 python scripts/local_server.py # http://localhost:8000/mcp
# in another shell: 20 end-to-end checks against the live org
SMOKE_URL=http://localhost:8000/mcp python scripts/smoke_prod.pyConnecting
The production server is at:
https://alaska-geoportal.codeforanchorage.org/mcpIn Claude: Settings, Connectors, Add custom connector, paste the URL above.
The /mcp path is required; the bare hostname
(https://alaska-geoportal.codeforanchorage.org/) serves a short landing
page that repeats these instructions, so a pasted URL without the path
tells you what went wrong instead of failing silently.
Claude Desktop and Claude Code can also connect through stdio_bridge.py or
the Go client in client/. See
docs/GETTING_STARTED.md.
Deploy
AWS Lambda + API Gateway via Terraform (terraform/aws/), one Lambda per
fork. ./scripts/deploy.sh -e prod packages config.yaml into the zip and
plans before applying. Deployed to prod on 2026-09-15; the custom domain
cutover is pending DNS. Operations notes are in
docs/RUNBOOK.md.
Documentation
Doc | Description |
The state org, its catalog groups, and the other Alaska orgs (verified ids) | |
Threat model, tenant scoping, host allowlist | |
Kill switch, traffic postures, alarms, smoke | |
OpenContext plugin design (one fork = one server) | |
Writing a plugin | |
AWS, Terraform, monitoring | |
Local testing (terminal, Claude, MCP Inspector) | |
Output of the initial live smoke against |
Contributing
uv run ruff check core/ plugins/ server/ tests/
uv run pytest tests/ -n autoPre-commit hooks (Ruff, yamllint, gofmt): pip install pre-commit && pre-commit install.
License and attribution
MIT -- see LICENSE.
OpenContext (the plugin framework,
core/,server/, the genericckan/arcgis/socrataplugins, Terraform and deploy tooling): Srihari Raman, City of Boston Department of Innovation and Technology.Anchorage GIS MCP (the ArcGIS Portal plugin this one is derived from, the spatial tools, caveat machinery and security model) and this statewide fork: Code for Anchorage.
Data: State of Alaska, Alaska Geospatial Office / Department of Natural Resources, via the public Alaska Geoportal. Check each layer's own terms of use in its item description.
This server cannot be deployed
Maintenance
Related MCP Connectors
Ask in plain English, get a rendered, shareable map from live public data. 24 geospatial tools.
Official Microsoft MCP Server to query Microsoft Entra data using natural language
- UnifAPIOAuthcom.unifapi
Hosted MCP server for live public-data APIs and Skills for AI agents.
Query your org's data in natural language — read-only MCP access to SQL, NoSQL, files & warehouses.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables searching and querying City of Albuquerque open geospatial datasets (parcels, zoning, public works) via ArcGIS Feature Services, allowing natural language access to GIS data.229 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables searching and querying City of Tulsa GIS open geospatial datasets (parcels, zoning, public works) via ArcGIS Feature Services through natural language or direct MCP tool calls.257 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to search, query, and manage ArcGIS Portal and Online content, feature layers, users, and groups via the Model Context Protocol.22MIT
- AlicenseNot gradedqualityCmaintenanceA read-only MCP server for searching ArcGIS Online content and querying hosted feature layers, allowing natural language interaction with AGOL items and feature services.MIT