occ-gis-mcp
occ-gis-mcp
Ein MCP-Server (Model Context Protocol), der KI-Assistenten (wie Claude, GitHub Copilot oder jeden MCP-kompatiblen Client) Zugriff auf öffentliche GIS-Datensätze aus dem Open-Data-Hub der Oklahoma Corporation Commission gewährt: https://gisdata-occokc.opendata.arcgis.com/
Für die Einrichtung sind keine Programmierkenntnisse erforderlich. Führe die untenstehenden Schritte in der angegebenen Reihenfolge aus.
Was ist das, einfach ausgedrückt?
MCP („Model Context Protocol") ist ein Standard, über den KI-Chattools kleine Programme („Server") aufrufen können, die Live-Daten abrufen. Dieses Repository ist genau so ein Server. Nach der Einrichtung kannst du deinen KI-Assistenten zum Beispiel Folgendes fragen:
„Liste die auf dem OCC-GIS-Hub verfügbaren Datensätze auf"
„Finde alle aktiven Ölquellen in Oklahoma County"
„Zeig mir die Felder, die auf dem PST-Tanks-Layer verfügbar sind"
und der Assistent nutzt diesen Server, um echte, aktuelle Antworten abzurufen, statt zu raten.
Related MCP server: mcp-arcgis-houston
Schritt 1 — Node.js installieren
Dieser Server läuft auf Node.js. Falls du es noch nicht hast:
Gehe zu https://nodejs.org
Lade die LTS-Version (Long Term Support) für dein Betriebssystem herunter.
Führe den Installer aus und übernimm die Standardeinstellungen.
Prüfe, ob es funktioniert hat, indem du ein Terminal öffnest (PowerShell unter Windows, Terminal unter Mac/Linux) und Folgendes ausführst:
node -v npm -v
Beide sollten eine Versionsnummer ausgeben (z. B. v20.11.0). Falls du eine Fehlermeldung siehst, starte dein Terminal bzw. deinen Computer neu und versuche es erneut.
Schritt 2 — Dieses Projekt herunterladen
Option Z: Git verwenden (empfohlen, falls du Git hast)
git clone https://github.com/MSPFE2019/occ-gis-mcp.git
cd occ-gis-mcpOption B: Ohne Git
Klicke auf den grünen Button Code → Download ZIP
Entpacke das ZIP an einem Ort, den du dir merken kannst (z. B. in deinem Dokuumente-Ordner).
Öffne ein Terminal und wechsle mit cd in den entpackten Ordner, zum Beispiel:
cd "C:\Users\YourName\Documents\occ-gis-mcp"
Schritt 3 — Abhängngkeiten installieren
Führe im Projektordner Folgendes aus:
npm installDadter werden die kleinen Bibliottheken heruntergeladen.
Schritt 4 — Testen, ob der Server läuft
Es gibt zwei Möglichkeiten, den Server auszuführen – wähle je nachdem, wo du ihn verwenden willst:
index.js– für lokale Desktop-Tools (Claude Desktop, VS Code).http.example– du für Remote/Cloud-Tools wie Copilot Studio (siehe den entsprecharrin Abschnitt unteen).
Teste zuerst die lokale Variante:
node index.jsEs wird nichts ausgegeben – das ist normal! MCP-Serverusch sich über einen stillen Input/Ausgab-Kanal und warte auf e. Drücke Strg+C, um den Prozess zu beenden.
Nütze für einen visuelleren Test den offiziellen MCP-Inspector, der eine Browserseit öffnet, worauf du Buttons kicken und Live-Ergebn seehen kanst:
siehe: GXP6
Dies öffnet eine lokale Webseite. Klicke auf Verbinden, danach auf List Tools und führe danach list_datasets ohne Argumente aus – du solltest eine List echteer Datensätze als JSON zurückbekom. Wenn das funktioniert, arbeit der Server ohlen.
Schritt 5 – Mit deinem KI-Asistenten verbinden
MCP-Server sind einmal in den Einstellun des KI-Asistenten einzurichten. Wähle für dein Tool:
Claude Desktop
Öffne Claude Desktop → Einstellungen → Entwickle → Konfiguration bearbeiten (öffnet
claude_desktop_config.jsonin eiin Text editor).Füge einen Eintrag wie diesen dim.
{ "mcpServers": { "occ-gis": { "command": "node", "args": ["C:\\Users\\YourName\\Documents\\occ-gis-mcp\\index.js"] } } }Speichere die Datei und starte Claude Desktop vollständig neu.
Frage: „Welche OCC-GIS-Datasets sind verfügbar?"
# VS Code (GitHub Copilot Chat) oder andere MCP- fähige Editoren
Öffne (oder erstelle) ein
mcp.jsonfile in den MCP-Einstellungen (VS: Befehlspalette → „MCP: Benutzerkonfiguration" oder in.vscode/mcp.json).Füge demselben gen
mcpServers-Block wie oben hinzu.Lade das Fenster neu und die neuen Tools erscheinen im Chat.
Jeder andere MCP-Client
Jeder Client, der den MCP-Standard nur stützt, akzeptiert dieselbe Konfigurationsform: einen command (node) und an Strings args. In der Dokumentationen deines Clienten steht, wo die Konfig-Datei liegt.
Verfügbare Tools
Sobald verbunden gibt es die vier Tools:
Tool | Was es tut |
| Datensätze auf dem Hub durchsuchen/auflisten (Wells, Tanks, etc.). Optional Freitex |
| Vollständige Details für einen Datens atz mit Titel, inklusive Download-Links (CSV, GeoJSON, Shapefile, KML, File Geodatabases) und der Live-URL des ArcGIS-Service. |
| E-Feldname, Geometry type und Ausdehnung for elne einzelne ArcGIS L-Layer-URL. |
| Atrribut ( |
Anpass an eine andereArcGIS-Hub-Seite
Dieser Server ist nicht nichtkat eine OCC beschränkt — erftiter with any ArcGIS Hub websites, the DCAT-US-catalog-Feed. Öffne server.js und änderne folgendenZeile bei near the top:
const HUB_BASE = "https://gisdata-occokc.opendata.arcgis.com";Der erServer kann jetzt die base URL treffen. Alles andere (Tool names, query logic) bleichte.
Verbinden mit Microsoft Studio
Copilot Studio führt dein Server nichtallein – er braucht einen HTTPS- URL. That'swhat http.js is for (not index.js, which only local tools like Claude Desktop uses). Two parts: (A) server somewhere visible, then (B) register he.
A. DenHTTP-Server öffentlich bereitstellen
Deineinstellung liestge; all in npm install and npm run start:http.
**ofr Anfänger — Azure App Service (or Azure App Service)).
Push this Repo zu deiem GitHub social (already doneviewt).
In the Azure: create a Web App → "Runtime stack: Node 20 LTS → bereitstellen from repo (Azure).
Under Configuration → Startup-Command set:
node http.jsAzuregibt dir eine URL
https://occ-gis-mcp.azurewebsites.net. The endpoint ishttps://occ-ga-bggtzen+ /mcp:
Auch simple — Render, Railway oder Fly.io
Diese can deploy a Node.-inKlicks:
Build-Command:
npm installStart-Command:
npm run start:httpYou get a public
https://...-URL — again append/mcp.
Nur local tests (not prod)
npm install
npm run start:httpThis starts the server http://loc. UnityEngine: https://loc.. etc.
B) In Copilot Studio registrieren
Lange agent in Copilot Studio → Tools → Add a tool → New tool → Model Context Protocol.
Gib it name z. B.„OCCGIS-Daten", fügt die HTTPS-URL inklusive
/mcpein, z. B.https://occ-gis-mcp.org.Wähle No authentication (the server is root-only).
Save. Copilot Studio callthe server and auto-discover the four tool: (etcList
list_datasets,get_dataset,get_layer_metadata,query_layer) — no manual schema.Test in Studio-Chat: „Which OCCGIS- Datasets exist?" or „Finde active wells in Okl County."
Verfügbare Tools
As above connected, callable:
Tool | What |
| Datensätze on Hydrop drücken/auflisten. Optionale full-text-aquiry. |
| Details for a dat ensatz, inkl. file-Links etc. |
| Field names etc. |
| Attribute and/or spatial query the layer. |
Trouble-Shooting
**
node: .is not installed – or the terminal is restart. Repeat Step 1.** Inspector errors… — Internet check; the server calls ArcGIS API ff.
** assistant not see tools — File path / URL is not properly; restart client.
** Copilot Studio cannot connect – Check the endpoint ends
/mcp, the server is ins, and no/block firewall.
Notes
** Datasets live that DCAT-US code, in cache + 15 minutes.
** Data is public, possible " license" field restrictions.
**
http.jsruns stateless – (fresh server per call), hosting simple and compliant with how Copilot Studio uses MCP tools.
Available Tools
4 toolsget_datasetGet OCC GIS dataset detailsA
Get full details for one dataset on the OCC GIS hub by exact or partial title match, including every distribution (ArcGIS REST service URL, CSV/GeoJSON/Shapefile/KML/FileGDB download links), spatial extent, and license text.
Inputs: title (required).
get_layer_metadataGet ArcGIS layer metadataA
Fetch metadata (fields, geometry type, extent, name, description) for an ArcGIS FeatureServer/MapServer layer URL, such as one returned by list_datasets or get_dataset as 'featureServiceUrl'.
Inputs: layerUrl (required).
list_datasetsList OCC GIS datasetsA
List/search datasets published on the OCC GIS open data hub (gisdata-occokc.opendata.arcgis.com). Optionally filter with a free-text query matched against title, description, and keywords. Returns each dataset's title, description, landing page, keywords, and (when available) its ArcGIS FeatureServer/MapServer REST URL plus downloadable formats (CSV, GeoJSON, Shapefile, KML, File Geodatabase).
Inputs: limit, query.
query_layerQuery an ArcGIS layer's featuresA
Run an attribute and/or spatial query against an ArcGIS FeatureServer/MapServer layer (e.g. OCC well points, tank sites) and return matching feature attributes (and optionally geometry) as JSON. Use get_layer_metadata first to see available fields.
Inputs: layerUrl (required), where, geometry, outFields, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct role: listing/searching datasets, fetching full dataset details, inspecting layer metadata, and querying layer features. There is no overlap that would confuse an agent selecting among them.
All tool names follow a consistent verb_noun pattern (list_datasets, get_dataset, get_layer_metadata, query_layer), using snake_case throughout and verbs that clearly indicate the action.
Four tools is an appropriate scope for a read-only GIS data discovery and query server. Each tool fills a necessary step in the workflow without redundancy or bloat.
The tool surface fully covers the core workflow: discovering datasets, retrieving full metadata, inspecting layer schemas, and querying features. No obvious dead ends exist; even direct data downloads are covered via distribution URLs returned by the get_dataset tool.
Maintenance
Related MCP Connectors
MCP server for querying Tulsa County, Oklahoma property and parcel data for AI agents.
Hosted MCP server for live public-data APIs and Skills for AI agents.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Agent-native MCP server over 49M+ US public and government records, privacy-first, always current.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for interacting with Google Earth Engine, enabling geospatial analysis such as dataset visualization, statistics computation, and search via AI assistants.16MIT
- AlicenseNot gradedqualityCmaintenanceThis MCP server provides access to City of Houston GIS open geospatial data, enabling search, query, and schema retrieval of datasets like parcels and zoning through ArcGIS feature services.80 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables 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.79 npmMIT
- AlicenseAqualityDmaintenanceAn MCP server that gives LLM agents typed, cached access to civic open-data portals via Socrata (SODA 2.1 + Discovery API), enabling search, query, profiling, sampling, and CSV export of datasets.6MIT