occ-gis-mcp
MCP server that provides AI assistants access to Oklahoma Corporation Commission public GIS datasets, enabling dataset search, layer metadata retrieval, and attribute/spatial queries on ArcGIS Hub data.
README
occ-gis-mcp
An MCP (Model Context Protocol) server that gives AI assistants (like Claude, GitHub Copilot, or any MCP-compatible client) access to public GIS datasets from the Oklahoma Corporation Commission's open data hub: https://gisdata-occokc.opendata.arcgis.com/
No coding experience required to set this up. Follow the steps below in order.
What is this, in plain terms?
MCP ("Model Context Protocol") is a standard way for AI chat tools to call small programs ("servers") that fetch live data. This repo is one of those servers. Once it's set up, you can ask your AI assistant things like:
- "List the datasets available from the OCC GIS hub"
- "Find all active oil wells in Oklahoma County"
- "Show me the fields available on the PST Tanks layer"
and the assistant will use this server to fetch real, live answers instead of guessing.
Step 1 — Install Node.js
This server runs on Node.js. If you don't already have it:
- Go to https://nodejs.org
- Download the LTS (Long Term Support) version for your operating system.
- Run the installer, accepting the defaults.
- Confirm it worked by opening a terminal (PowerShell on Windows, Terminal on
Mac/Linux) and running:
Both should print a version number (e.g.node -v npm -vv20.11.0). If you see an error, restart your terminal/computer and try again.
Step 2 — Download this project
Option A: Using Git (recommended if you have it)
git clone https://github.com/MSPFE2019/occ-gis-mcp.git
cd occ-gis-mcp
Option B: Without Git
- Go to https://github.com/MSPFE2019/occ-gis-mcp
- Click the green Code button → Download ZIP
- Unzip it somewhere you'll remember (e.g. your Documents folder)
- Open a terminal and
cdinto that unzipped folder, for example:cd "C:\Users\YourName\Documents\occ-gis-mcp"
Step 3 — Install dependencies
From inside the project folder, run:
npm install
This downloads the small libraries the server needs. You only need to do this once (and again any time the code changes).
Step 4 — Test that it runs
There are two ways to run this server — pick based on where you'll use it:
index.js— for local desktop tools (Claude Desktop, VS Code/Copilot Chat).http.js— for remote/cloud tools like Copilot Studio (see the dedicated section below).
Try the local one first:
node index.js
Nothing will print — that's expected! MCP servers talk over a silent input/output
channel and just wait for a client to connect. Press Ctrl+C to stop it.
For a more visual test, use the official MCP Inspector, which opens a browser page where you can click buttons and see live results:
npx @modelcontextprotocol/inspector node index.js
This opens a local webpage. Click Connect, then List Tools, then try running
list_datasets with no arguments — you should see a list of real datasets come back
as JSON. If that works, the server is working correctly.
Step 5 — Connect it to your AI assistant
MCP servers are configured once inside your AI client's settings. Pick the guide that matches your tool:
Claude Desktop
- Open Claude Desktop → Settings → Developer → Edit Config (this opens
claude_desktop_config.jsonin a text editor). - Add an entry like this (replace the path with your actual project folder,
using double backslashes
\\on Windows):{ "mcpServers": { "occ-gis": { "command": "node", "args": ["C:\\Users\\YourName\\Documents\\occ-gis-mcp\\index.js"] } } } - Save the file and fully restart Claude Desktop.
- Ask it: "What OCC GIS datasets are available?"
VS Code (GitHub Copilot Chat) or other MCP-aware editors
- Open (or create) an
mcp.jsonfile in your MCP settings (in VS Code: Command Palette → "MCP: Open User Configuration", or add it to your workspace's.vscode/mcp.json). - Add the same
mcpServersblock shown above. - Reload the window and the new tools will appear when you chat with Copilot.
Any other MCP client
Any client that supports the MCP standard accepts the same shape of config:
a command (node) and args (the full path to index.js). Consult your
client's documentation for where that config file lives.
Available tools
Once connected, your assistant can call these:
| Tool | What it does |
|---|---|
list_datasets |
Search/list the datasets on the hub (wells, tanks, etc.). Optional free-text query. |
get_dataset |
Full details for one dataset by title, including download links (CSV, GeoJSON, Shapefile, KML, File Geodatabase) and its live ArcGIS service URL. |
get_layer_metadata |
Field names, geometry type, and extent for a given ArcGIS layer URL. |
query_layer |
Run attribute (where) and/or spatial queries against a layer and get back matching records. |
Customizing for a different ArcGIS Hub site
This server isn't limited to the OCC's data — it works with any ArcGIS Hub site
that exposes a DCAT-US catalog feed (most public ArcGIS Hub sites do). To point it
at a different site, open server.js and change this line near the top:
const HUB_BASE = "https://gisdata-occokc.opendata.arcgis.com";
to your target site's base URL, then re-run the server. Everything else (tool names, query logic) works the same way.
Connecting to Microsoft Copilot Studio
Copilot Studio doesn't run this server for you — it needs to reach it over the
internet as an HTTPS URL. That's what http.js is for (as opposed to index.js,
which is only for local tools like Claude Desktop). There are two parts:
(A) put the server somewhere reachable on the internet, then (B) register
it in Copilot Studio.
A. Deploy the HTTP server somewhere public
Pick whichever is easiest for you — all of them run the same command:
npm install then npm run start:http.
Easiest for beginners — Azure App Service (or Azure Container Apps)
- Push this repo to your own GitHub account (already done if you're reading this from your fork/copy).
- In the Azure Portal, create a Web App → Runtime stack: Node 20 LTS → deploy from your GitHub repo (Azure sets up CI/CD for you).
- Under Configuration → Startup Command, set:
node http.js - Once deployed, Azure gives you a URL like
https://occ-gis-mcp.azurewebsites.net. Your MCP endpoint is that URL plus/mcp, e.g.https://occ-gis-mcp.azurewebsites.net/mcp.
Also simple — Render, Railway, or Fly.io Any of these can deploy a Node.js repo from GitHub in a few clicks:
- Build command:
npm install - Start command:
npm run start:http - They'll give you a public
https://...URL — again, append/mcp.
Local testing only (not for production)
npm install
npm run start:http
This starts the server at http://localhost:3000/mcp. To test whether Copilot
Studio (a cloud service) can reach a server on your own machine, you'd need a
tunnel tool like ngrok (ngrok http 3000), which gives you a temporary public
HTTPS URL. This is fine for a quick demo, not for real/ongoing use.
B. Register it in Copilot Studio
- Open your agent in Copilot Studio → go to Tools (or Actions) → Add a tool → New tool → Model Context Protocol.
- Give it a name (e.g. "OCC GIS Data") and paste your server's HTTPS URL
including
/mcp, e.g.https://occ-gis-mcp.azurewebsites.net/mcp. - Choose No authentication (this server is read-only and doesn't require credentials) unless you've added your own auth layer in front of it.
- Save. Copilot Studio will call the server and automatically discover the four
tools (
list_datasets,get_dataset,get_layer_metadata,query_layer) along with their descriptions — no manual schema entry needed. - Test it in the Copilot Studio test chat pane: ask "What OCC GIS datasets are available?" or "Find active wells in Oklahoma County."
Available tools
Once connected, your assistant can call these:
| Tool | What it does |
|---|---|
list_datasets |
Search/list the datasets on the hub (wells, tanks, etc.). Optional free-text query. |
get_dataset |
Full details for one dataset by title, including download links (CSV, GeoJSON, Shapefile, KML, File Geodatabase) and its live ArcGIS service URL. |
get_layer_metadata |
Field names, geometry type, and extent for a given ArcGIS layer URL. |
query_layer |
Run attribute (where) and/or spatial queries against a layer and get back matching records. |
Troubleshooting
node: command not found— Node.js isn't installed or your terminal needs restarting after installation. Redo Step 1.- Inspector/tool call errors mentioning network/fetch — check your internet connection; the server calls the live ArcGIS Hub API on every request.
- Assistant doesn't see the new tools — double check the file path (local) or URL (Copilot Studio) is correct, and that you fully restarted/reconnected the client.
- Copilot Studio says it can't connect — make sure you registered the URL
ending in
/mcp(not just the bare domain), that the deployment is actually running, and that it's reachable over plain HTTPS (no VPN/firewall blocking it).
Notes
- The dataset list is pulled live from the hub's DCAT-US catalog feed and cached for 15 minutes to keep things fast.
- Data is public but subject to the source agency's terms of use (shown in the
get_datasetoutput's license field). http.jsruns in stateless mode (a fresh server per request), which keeps hosting simple and is fully compatible with how Copilot Studio calls MCP tools.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。