arcpro-mcp

arcpro-mcp

Enables natural language control of live ArcGIS Pro sessions through the Model Context Protocol, allowing inspection of projects, layers, and attributes, and execution of geoprocessing tasks.

Category
Visit Server

README

arcpro-mcp

Control ArcGIS Pro with natural language through the Model Context Protocol (MCP). Works with Cursor, Claude, and Codex — bring your own LLM, keep your data local.

CI License: MIT Python 3.10+

arcpro-mcp lets an AI agent drive a live ArcGIS Pro session: inspect projects, explore layers and attributes, check coordinate systems, and (soon) run geoprocessing and build layouts — all from a chat prompt in your favorite MCP client.

Unlike Esri's built-in assistant, this is open source, connects to any LLM via your MCP client, and acts on your actual open session rather than only generating code.


Architecture

ArcGIS Pro hosts arcpy, and arcpy.mp.ArcGISProject("CURRENT") only works inside the running app. So the MCP server (a separate process started by your client) talks to a small bridge running in ArcGIS Pro's Python window over a local socket:

Cursor / Claude / Codex
        │  stdio (MCP)
        ▼
arcpro-mcp  (this package, separate process)
        │  TCP socket, length-prefixed JSON  (127.0.0.1:18748)
        ▼
arcpro_bridge.py  (runs in ArcGIS Pro's Python window)
        │  arcpy / arcpy.mp
        ▼
ArcGIS Pro  (live session)

Design choices vs. existing tools:

  • Socket, not file polling — lower latency, cleaner framing for big payloads.
  • Layered + testedsrc/ package, dependency-free bridge, pytest, CI.
  • Safety first — read-only by default; destructive tools ask for confirmation; execute_python is off unless explicitly enabled; every call is audit-logged.
  • Great UX — structured output, MCP resources, and live layer-name auto-complete.

Requirements

  • ArcGIS Pro 3.x (provides arcpy)
  • Python 3.10+ for the MCP server (the arcgispro-py3 conda env works well)
  • An MCP client: Cursor, Claude Desktop, or Codex
  • uv recommended (or plain pip)

Install

git clone https://github.com/qiobn/arcpro-mcp
cd arcpro-mcp
uv sync          # or: pip install -e .

Usage

1. Start the bridge in ArcGIS Pro

Open ArcGIS Pro with a project, open the Python window, and run:

exec(open(r"C:/path/to/arcpro-mcp/bridge/arcpro_bridge.py").read())

You should see [ArcPro MCP Bridge] Listening on 127.0.0.1:18748.

2. Configure your MCP client

See examples/mcp-config.example.json. For Cursor or Claude Desktop:

{
  "mcpServers": {
    "arcgis-pro": {
      "command": "uv",
      "args": ["--directory", "C:/path/to/arcpro-mcp", "run", "arcpro-mcp"]
    }
  }
}

3. Talk to it

"Ping ArcGIS Pro and tell me what's in the project." "List the layers, then show me the first 10 rows of the roads layer." "What's the coordinate system of C:/data/parcels.shp?"


Tools

Read-only

Tool Description
ping Connectivity + project status
get_project_info Project path, default GDB, maps
list_directory List files (confirm paths before loading)
describe_data Data type, geometry, extent, CRS
list_feature_classes Feature classes in a workspace
list_layers Layers on the active map
list_fields Fields of a dataset/layer
count_features Row count of a layer
get_layer_features Preview attribute rows
get_unique_values Distinct values of a field
get_workspace / list_layouts Inspect workspace / layouts

Write / map-modifying

Tool Description
add_vector_layer / add_raster_layer Add data to a map
remove_layer Remove a layer (asks for confirmation)
set_layer_visibility / zoom_to_layer Toggle / navigate
create_map / save_project Map and project management
select_by_attribute / clear_selection SQL-based selection
set_workspace Set default GP workspace
run_geoprocessing Run any ArcPy tool by dotted name
create_layout / export_layout Build and export print layouts (PDF/PNG/...)

execute_python (arbitrary arcpy) exists but is disabled unless you set ARCPRO_MCP_ALLOW_EXEC=1 in both the client env and the ArcGIS Pro env.

Configuration

Variable Default Description
ARCPRO_MCP_HOST 127.0.0.1 Bridge host
ARCPRO_MCP_PORT 18748 Bridge port
ARCPRO_MCP_TRANSPORT stdio stdio or streamable-http
ARCPRO_MCP_ALLOW_EXEC (off) Enable execute_python (1/true)
ARCPRO_MCP_AUDIT_LOG ~/.arcpro_mcp/audit.log Audit log path (empty to disable)
ARCPRO_MCP_LOG_LEVEL INFO Server log level

Safety

  • Read-only tools are annotated readOnlyHint and are always safe.
  • Destructive tools (coming next) require confirmation via MCP elicitation.
  • execute_python is opt-in and double-gated (client + bridge).
  • Every requested operation is appended to an audit log for review/replay.

Roadmap

  • [x] v0.1 — socket bridge, read-only tools, audit log, CI, tests
  • [ ] v0.2 — write tools (add/remove layer, selection, geoprocessing) with HITL confirm
  • [ ] v0.3 — execute_python hardening, reflection middleware (CRS/units sanity), layouts & export
  • [ ] v0.4 — main-thread dispatch queue / optional .NET Add-In (QueuedTask) for rock-solid arcpy.mp
  • [ ] v1.0 — installer, multi-client docs, compound tool mode to cut tokens

License

MIT — see LICENSE.

Acknowledgements

Architecture informed by the excellent nkarasiak/qgis-mcp, jjsantos01/qgis_mcp, geo2004/MCP-ArcGISPro, and the safety patterns in gdal-mcp.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured