OpenContext
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Anchorage Municipal Code MCP
An MCP server that gives AI assistants read-only access to the Municipality
of Anchorage municipal code as published on eCode360. It is deployed at
https://anchorage-ecode.codeforanchorage.org/mcp and can be added to Claude
as a custom connector with that URL.
Results are the published code text, not legal advice. Every result carries
the section number and an https://ecode360.com/<guid> link for verification.
Tools
Tool | Arguments | What it does |
|
| Full-text search of the code. Returns up to 20 sections per page, each with its number, title, a snippet and a guid. Terms side by side are matched with OR; use quotes, |
| none | The outline of the code, three levels deep: parts, titles and chapters, each with a guid. Sections and body text are not listed; |
|
| One node of the hierarchy and its immediate children, for walking the outline. |
|
| Full text of a section and its subsections, with any attachments listed (those of its title too, when a note in the text points to one) and its history note parsed into ordinances and dates. Up to 40,000 characters come back per call; a longer section says so and gives the |
|
| Full text of up to 10 sections in one call, by guid or number. A section that cannot be fetched is reported in place without failing the rest. |
|
| How the code defines a term: the defined term, its full text and the section it is defined in. A term defined in several places returns up to 8 definitions, flagged with a caveat. A definition containing a list whose position had to be inferred is flagged with |
|
| The ordinances most recently worked into the code, newest first: number, adoption date, subject and the chapters amended, from the publisher's Ordinance List and Disposition Table. |
|
| The code sections one ordinance added, amended or repealed, with its effective date, from the publisher's Ordinance Disposition Table (1977 on). Accepts |
|
| Where the rest of the code cites a section: its row in a fine schedule, penalty sections and other sections that refer to it, including citations to its subsections. Fine and penalty sections are listed first. |
|
| Text of a PDF the code publishes as an attachment, chiefly tables that are not in the section text, such as Table 21.05-1 (allowed uses by zoning district). Also reads a recently adopted ordinance that a search returns as a PDF, with a warning that extraction loses the marks showing deleted language. With |
| none | Metadata about the code library: official name, state, last-updated date and public URL. |
Tool names are prefixed with the plugin name on the wire, for example
ecode__search_code. See Security for the limits on what
read_attachment will fetch.
Related MCP server: ontario-data-mcp
Use the hosted server
Connect via Claude Connectors (same steps on Claude.ai and Claude Desktop):
Go to Settings → Connectors (or Customize → Connectors on claude.ai)
Click Add custom connector
Enter a name (e.g. "Anchorage Municipal Code") and the URL
https://anchorage-ecode.codeforanchorage.org/mcp
No account or key is needed. See the Quick Start.
Run your own copy
You need your own eCode360 API key and secret from General Code, for your own code library. The hosted server's key is not in this repo and only covers Anchorage.
git clone https://github.com/codeforanchorage/anchorage-ecode-mcp.git
cd anchorage-ecode-mcp
python -m venv venv
venv/bin/pip install -r requirements-dev.txt # Windows: venv\Scripts\pip
export ECODE_API_KEY=... ECODE_API_SECRET=...
venv/bin/python scripts/local_server.py # http://localhost:8000/mcpconfig.yaml in the repo root is this server's real configuration; there is
nothing to copy or enable. To serve another municipality, or to deploy to
your own AWS account, follow Getting Started: it
lists every file that names Anchorage or this project's AWS account and what
to put there instead.
How this relates to OpenContext
This project began as a fork of OpenContext, the City of Boston's template for deploying one MCP server with one plugin, and has since moved away from it. The upstream setup instructions no longer apply here:
Upstream OpenContext | This repo | |
MCP server core ( | In the repo | The |
Plugins | Generic CKAN, ArcGIS and Socrata plugins; enable one | Only |
Configuration | Copy |
|
Secrets |
| Environment variables read by the plugin; |
Endpoint | Lambda Function URL | API Gateway with a WAF, throttles and an optional custom domain |
Deploy |
|
|
config-example.yaml and custom_plugins/template/ remain from upstream as a
starting point for a different plugin; this server does not use them.
Documentation
Doc | Description |
Use the hosted server from Claude | |
Run it locally, deploy your own copy, serve another city | |
Tools, configuration and limits | |
System design and plugins | |
AWS, Terraform, monitoring | |
Local testing (Terminal, Claude, MCP Inspector) | |
Threat model and the attachment fetch limits | |
Common questions |
Examples
This server's configuration: config.yaml (the
ecodeplugin, its settings and the instructions sent to clients)This server's plugin: plugins/ecode/plugin.py
Writing your own plugin: docs/CUSTOM_PLUGINS.md
Generic CKAN, ArcGIS and Socrata plugins: not in this repo; see upstream CityOfBoston/OpenContext
Contributing
Pre-commit hooks (optional):
pip install pre-commit
pre-commit installHooks: Ruff, yamllint, gofmt. Run manually: pre-commit run --all-files.
License
MIT — see LICENSE.
OpenContext, which this project started from, was written by Srihari Raman, City of Boston Department of Innovation and Technology.
This project (the Anchorage Municipal Code MCP server and its ecode plugin) is maintained by Code for Anchorage.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
MCP server for searching Airweave collections with natural language queries.
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Related MCP Servers
- AlicenseBqualityDmaintenanceAn unofficial MCP server providing access to Dutch government open data from data.overheid.nl, CBS statistics, and KVK business registry. Enables natural language queries for discovering datasets, inspecting metadata, and querying data without API keys or authentication.14MIT
- AlicenseAqualityCmaintenanceAn MCP server for discovering, downloading, querying, and analyzing datasets from Ontario's open data portals, allowing natural language questions and high-performance analytics via DuckDB.231MIT
- AlicenseAqualityDmaintenanceAn MCP server to find and fetch Norwegian open government data from data.norge.no. Enables search, metadata retrieval, and data download.54MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that connects to open data portals like CKAN and Socrata, enabling natural language querying of datasets via Claude.MIT