Skip to main content
Glama
ArcGIS Pro MCP Bridge

ArcGIS Pro MCP Bridge

ArcGIS Pro MCP Bridge

Control ArcGIS Pro from Claude Desktop using the Model Context Protocol (MCP).
Pure Python — no C#, no .NET SDK, no Visual Studio required.


What It Does

Connects Claude Desktop (or any MCP client) to a live ArcGIS Pro session, enabling natural language control of:

  • Add / remove layers (vector and raster)

  • Run any ArcPy geoprocessing tool (buffer, clip, intersect, project, dissolve, and more)

  • Check coordinate systems and reproject data

  • Query and select features by attribute

  • List layers, fields, feature classes, rasters, and tables

  • Create layouts and export maps (PDF, PNG, JPG, TIF, SVG, EPS)

  • Zoom to layers, toggle visibility, save projects

  • Bulk-edit attribute values on features matching a query

  • Publish a layer as a hosted feature service to ArcGIS Online / Enterprise

  • Execute arbitrary ArcPy / arcpy.mp code


Related MCP server: ARCclaude

Requirements

  • ArcGIS Pro 3.x (tested on 3.6.1)

  • Claude Desktop

  • uv — lightweight Python package manager

  • The arcgis package (ArcGIS API for Python) in ArcGIS Pro's Python environment, for publish_web_layer only — bundled by default in ArcGIS Pro's arcgispro-py3 environment on recent versions; the rest of the bridge doesn't need it


Setup

1. Clone the repository

git clone https://github.com/Geo2004/MCP-ArcGISPro.git

2. Install uv (if not already installed)

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

uv handles the mcp package dependency automatically — no manual pip install needed.

3. Configure Claude Desktop

Open your Claude Desktop config file and add the arcgis-pro entry under mcpServers.

Config file location:

Installation

Path

Standard installer

%APPDATA%\Claude\claude_desktop_config.json

Windows Store (Microsoft Store)

%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json

Not sure which you have? Open Claude Desktop → Settings → Developer → Hit Edit Config Button.

{
  "mcpServers": {
    "arcgis-pro": {
      "command": "C:/Users/<YourUsername>/.local/bin/uv.exe",
      "args": [
        "--directory",
        "C:/path/to/MCP-ArcGISPro",
        "run",
        "arcgis_mcp_server.py"
      ]
    }
  }
}

Replace <YourUsername> and the directory path with your actual values.

3. Start the bridge in ArcGIS Pro

Every session, before using Claude:

  1. Open ArcGIS Pro and load a project (or create a new one)

  2. Open a Map, Scene, or Globe so it is active

  3. Go to the Analysis tab → click Python to open the Python window

  4. Run:

exec(open(r"C:/path/to/MCP-ArcgisPro/pro_bridge.py").read())

You should see:

[MCP Bridge] Project cached: C:\path\to\your.aprx
[MCP Bridge] Running in background thread. IPC: C:\Users\..\.arcgis_mcp
[MCP Bridge] Python window is free.  To stop: _bridge_active = False

4. Restart Claude Desktop

Restart Claude Desktop after updating the config. The ArcGIS Pro tools will appear automatically.


Usage

Just talk to Claude naturally. Examples:

"Add the roads shapefile from C:/data to the map"

"Check the coordinate system of parcels.shp and run a 500m buffer, dissolve all overlaps"

"List all layers in my current map"

"Export the layout as PNG to C:/output/map.png"

"Select all features where KECAMATAN = 'Semarang Tengah' and count them"

"Set STATUS to 'Verified' for every feature where INSPECTED = 1"

"Publish the parcels layer to ArcGIS Online as a private hosted layer named 'Parcels_2026'"

"Run a slope analysis on my DEM raster"


Available Tools (31)

Category

Tools

Connection

ping

Project

get_project_info, save_project

Map

get_active_map_name, create_map

Layers

list_layers, add_vector_layer, add_raster_layer, remove_layer, zoom_to_layer, set_layer_visibility

Data

describe_data, list_directory, list_fields, get_layer_features, get_unique_values

Workspace

set_workspace, get_workspace, list_feature_classes, list_rasters, list_tables

Selection

select_by_attribute, clear_selection, count_features

Editing

update_features (bulk-set field values on matching rows)

Geoprocessing

run_geoprocessing (any arcpy tool by dotted name)

Layout & Export

list_layouts, create_layout, export_layout

Sharing

publish_web_layer (hosted feature service to ArcGIS Online/Enterprise)

Advanced

execute_python (arbitrary arcpy/arcpy.mp code)


How It Works

Claude Desktop
    ↓  stdio (MCP)
arcgis_mcp_server.py   ← runs via uv, any Python
    ↓  file-based IPC  (~/.arcgis_mcp/)
pro_bridge.py          ← runs in ArcGIS Pro's Python window, on a background thread
    ↓                                          ↓
arcpy / arcpy.mp                        arcgis (ArcGIS API for Python)
    ↓                                          ↓
ArcGIS Pro (live session)               ArcGIS Online / Enterprise portal, over REST

The bridge uses file-based IPC (command / result JSON files in ~/.arcgis_mcp/) — no sockets, no named pipes, no compilation required.

Almost everything goes through arcpy/arcpy.mp against the live local session. publish_web_layer is the one exception, and deliberately so: arcpy.server/arcpy.mp.CreateWebLayerSDDraft are COM-based and need the signed-in portal session in a way that's only available on ArcGIS Pro's true main thread — not the background thread this bridge dispatches every command from. Rather than block on that, publish_web_layer uses the arcgis package instead, which talks to the portal over plain REST (reusing the same Pro sign-in via arcpy.GetSigninToken(), no separate login) — REST has no thread affinity, so it works fine from here. Same pattern is available for other portal-side operations (content management, sharing, editing an already-published layer, user/group admin) if this bridge grows in that direction later — those aren't subject to the thread limitation either.


Known Limitations

  • Opening a map view automatically is not possible via Python/ArcPy alone — it's an application-shell action that lives in the compiled ArcGIS Pro SDK, not the arcpy document API. The user must open the map view manually once per session by double-clicking it in the Catalog pane. All other operations work without an open view — for zooming/visualizing a layer specifically, create_layout() + export_layout() render headlessly and don't need an open view at all.

  • Interactive sketch-tool digitizing (drawing features by hand) requires the ArcGIS Pro UI and cannot be automated — by definition, freehand digitizing needs a human at the screen. Non-interactive attribute edits don't have this limitation: use update_features.


Stopping the Bridge

In the ArcGIS Pro Python window:

_bridge_active = False

Or simply close the Python window or restart ArcGIS Pro.


License

MIT

Available Tools

31 tools
add_raster_layerA

Add a raster layer (GeoTIFF, IMG, etc.) to the active map.

Args: path: Full path to the raster file (e.g. C:/data/dem.tif)

Inputs: path (required). Returns: result

add_vector_layerA

Add a vector layer (shapefile, feature class, GeoJSON, etc.) to the active map.

Args: path: Full path to the data source (e.g. C:/data/roads.shp or a feature class path)

Inputs: path (required). Returns: result

clear_selectionA

Clear any active selection on a layer.

Args: layer: Exact layer name as shown in the Contents pane

Inputs: layer (required). Returns: result

count_featuresA

Count the total number of features (rows) in a layer.

Args: layer: Exact layer name as shown in the Contents pane

Inputs: layer (required). Returns: result

create_layoutA

Create a new layout in the project with a map frame already added. After creation, call export_layout() to export it as PDF/PNG/etc.

Args: name: Layout name (default: "Layout") map_name: Map to put in the frame — uses active map if empty width: Page width (default: 11) height: Page height (default: 8.5) units: Page units — INCH, CENTIMETER, MILLIMETER, POINT (default: INCH) margin: Frame margin from page edge in page units (default: 0.5)

Inputs: name, units, width, height, +2 more. Returns: result

create_mapA

Create a new map in the current ArcGIS Pro project. After creation, open it by double-clicking it in the Catalog pane under Maps.

Args: name: Name for the new map (default: "Map")

Inputs: name. Returns: result

describe_dataA

Describe a dataset — returns coordinate system, geometry type, extent, and data type. Use this to verify a file exists and check its projection before geoprocessing.

Args: path: Full path to the dataset (shapefile, raster, feature class, GDB, etc.)

Inputs: path (required). Returns: result

execute_pythonA

Execute arbitrary Python/arcpy code inside the ArcGIS Pro bridge. Use this for complex arcpy.mp operations not covered by other tools.

Available variables: arcpy, os, proj (the ArcGISProject), get_map() Set result = in your code to return data. print() output is captured and returned as 'stdout'.

Example: code = """ m = proj.listMaps()[0] result = [lyr.name for lyr in m.listLayers()] """

Inputs: code (required). Returns: result

export_layoutA

Export a layout to a file (PDF, PNG, JPG, BMP, TIF, SVG, or EPS).

Args: name: Exact layout name as shown in the Catalog pane output: Full output file path including extension (e.g. C:/output/map.pdf) format: Export format — PDF, PNG, JPG, BMP, TIF, SVG, EPS (default: PDF) dpi: Resolution in dots per inch for raster formats (default: 150)

Inputs: name (required), output (required), dpi, format. Returns: result

get_active_map_nameA

Get the name of the active map currently shown in ArcGIS Pro.

Inputs: no named parameters. Returns: result

get_layer_featuresA

Preview rows from a layer's attribute table.

Args: layer: Exact layer name as shown in the Contents pane limit: Number of rows to return (default: 10) fields: List of field names to include. If empty, returns all non-geometry fields.

Inputs: layer (required), limit, fields. Returns: result

get_project_infoA

Get information about the currently open ArcGIS Pro project: file path, geodatabase, and list of maps.

Inputs: no named parameters. Returns: result

get_unique_valuesA

Get all unique values in a field. Useful for exploring data and building WHERE clauses for select_by_attribute.

Args: layer: Exact layer name as shown in the Contents pane field: Field name to get unique values for limit: Max number of unique values to return (default: 100)

Inputs: field (required), layer (required), limit. Returns: result

get_workspaceA

Get the current arcpy.env.workspace setting.

Inputs: no named parameters. Returns: result

list_directoryA

List files in a directory, optionally filtered by pattern.

Args: path: Full path to the directory (e.g. C:/Users/User/Documents/Rusunawa) pattern: Glob pattern to filter results (e.g. ".shp", ".tif", default: "*")

Inputs: path (required), pattern. Returns: result

list_feature_classesA

List feature classes in a workspace (folder, GDB, or feature dataset).

Args: workspace: Path to workspace/GDB (e.g. C:/data/mydb.gdb). Uses current workspace if empty. pattern: Wildcard filter, e.g. "road*" (default: "*") feature_type: Filter by geometry — Point, Line, Polygon, etc. (default: all)

Inputs: pattern, workspace, feature_type. Returns: result

list_fieldsA

List all fields in a dataset (shapefile, feature class, table, layer name, etc.) with field type, length, and alias. Use this before building WHERE clauses or running attribute operations.

Args: dataset: Full path to dataset, or layer name as shown in Contents pane

Inputs: dataset (required). Returns: result

list_layersA

List all layers in the active map (or a specific map by name).

Args: map_name: Optional map name. If empty, uses the active map.

Inputs: map_name. Returns: result

list_layoutsA

List all layouts in the current ArcGIS Pro project with their page size and units.

Inputs: no named parameters. Returns: result

list_rastersA

List raster datasets in a workspace.

Args: workspace: Path to workspace/folder. Uses current workspace if empty. pattern: Wildcard filter (default: "*") raster_type: Filter by type — TIF, IMG, GRID, etc. (default: all)

Inputs: pattern, workspace, raster_type. Returns: result

list_tablesA

List standalone tables in a workspace (GDB tables, DBF files, etc.).

Args: workspace: Path to workspace. Uses current workspace if empty. pattern: Wildcard filter (default: "*")

Inputs: pattern, workspace. Returns: result

pingA

Test the connection to ArcGIS Pro and get the full project status: version, project path, list of maps/scenes/globes, active map, and whether a view is currently open. Always call this first to understand the current state before running any other operations.

Inputs: no named parameters. Returns: result

publish_web_layerA

Publish a layer as a hosted feature service to ArcGIS Online / Enterprise, using whichever portal is currently active in ArcGIS Pro. Always confirm with the user before calling this — it creates or overwrites content on their portal account.

Publishes over REST via the ArcGIS API for Python (reusing your existing Pro sign-in — no separate login needed), not the classic arcpy.server pipeline, which doesn't work reliably from this bridge. Can take up to ~30-60s for typical layers; this is normal, don't treat a slow response as a failure.

Args: layer: Exact layer name as shown in the Contents pane service_name: Name for the hosted feature service (must be unique in the target folder) summary: Short description shown on the portal item (optional) tags: Comma-separated tags for the portal item (optional) public: Share publicly if True; private (owner-only) if False (default: False) overwrite: Overwrite an existing service with the same name if True (default: False)

Inputs: layer (required), service_name (required), tags, public, +2 more. Returns: result

remove_layerA

Remove a layer from the active map by name.

Args: name: Exact layer name as shown in the Contents pane

Inputs: name (required). Returns: result

run_geoprocessingB

Run any ArcPy geoprocessing tool by its dotted name.

Args: tool: Dotted tool name, e.g. "analysis.Buffer", "management.CopyFeatures", "conversion.FeatureClassToShapefile" params: List of positional parameters for the tool, e.g. ["roads", "output_buf", "100 Meters"]

Example: run_geoprocessing("analysis.Buffer", ["C:/data/roads.shp", "C:/data/roads_buf.shp", "500 Meters"])

Inputs: tool (required), params (required). Returns: result

save_projectA

Save the current ArcGIS Pro project.

Inputs: no named parameters. Returns: result

select_by_attributeA

Select features in a layer using a SQL WHERE clause.

Args: layer: Exact layer name as shown in the Contents pane where_clause: SQL expression (e.g. "population > 100000" or "type = 'road'") selection_type: NEW_SELECTION, ADD_TO_SELECTION, REMOVE_FROM_SELECTION, SUBSET_SELECTION (default: NEW_SELECTION)

Inputs: layer (required), where_clause (required), selection_type. Returns: result

set_layer_visibilityA

Toggle a layer's visibility in the Contents pane.

Args: layer: Exact layer name as shown in the Contents pane visible: True to show, False to hide

Inputs: layer (required), visible (required). Returns: result

set_workspaceA

Set arcpy.env.workspace — the default location for inputs/outputs when no full path is provided to geoprocessing tools.

Args: workspace: Full path to folder or GDB (e.g. C:/data or C:/data/mydb.gdb)

Inputs: workspace (required). Returns: result

update_featuresA

Update attribute values on features matching a WHERE clause. Sets the same field value(s) on every matching row (bulk update). For per-row computed values (e.g. incrementing a counter), use execute_python with an UpdateCursor instead.

Args: layer: Exact layer name as shown in the Contents pane where_clause: SQL expression selecting which rows to update (e.g. "STATUS = 'Pending'"). Pass "" to update every row in the layer — be deliberate about this. updates: Dict of {field_name: new_value} applied to every matching row, e.g. {"STATUS": "Verified", "REVIEWED_BY": "GIS Team"}

Inputs: layer (required), updates (required), where_clause (required). Returns: result

zoom_to_layerA

Zoom and pan the active map view to show the full extent of a layer.

Args: name: Exact layer name as shown in the Contents pane

Inputs: name (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 31 tools

    Disambiguation3/5

    Most tools target a distinct resource/action, but several status/inspection tools overlap (ping vs get_project_info vs get_active_map_name) and run_geoprocessing vs execute_python both offer broad arcpy execution. The descriptions help disambiguate, but an agent could easily pick the wrong one in those cases.

    Naming Consistency4/5

    Tool names generally follow a clear verb_noun pattern, with consistent use of list_ for enumerations, get_ for single values/status, and create_/set_/update_ for mutations. The main outliers are the bare ping and prepositional forms like zoom_to_layer and select_by_attribute, so the set remains predictable overall.

    Tool Count2/5

    31 tools is on the heavy side for an MCP bridge, exceeding the 25+ threshold for 'too many' in the calibration. The broad ArcGIS Pro scope explains some of the count, but run_geoprocessing and execute_python are generic escape hatches that make several specialized wrappers feel redundant.

    Completeness4/5

    The tool set covers core ArcGIS Pro workflows well: project status, layer management, attribute inspection/selection/update, workspace exploration, layout creation/export, and publishing. Minor gaps like map/layout deletion, feature editing, and symbology changes lack dedicated tools, but run_geoprocessing/execute_python provide workarounds.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers