Логотип ArcGIS Pro MCP Bridge

ArcGIS Pro MCP Bridge

Спільнота
geo2004

Controlling and Automating ArcGIS Pro from Claude AI Desktop using MCP Connection

Видавецьgeo2004
РепозиторійMCP-ArcGISPro
МоваPython
Форки
7
Зірки
42
Доступні інструменти
0
Тип транспортуstdio
Категорії
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    ArcGIS Pro MCP Bridge надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 42, форки: 7 — у пов’язаному репозиторії.

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
  • Run one-call recipes: layer QC report, attribute export to CSV, batch layout export, field stats, value counts
  • Execute arbitrary ArcPy / arcpy.mp code

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

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

2. Install uv (if not already installed)

powershell
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:

InstallationPath
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.

json
{
  "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:
python
p = r"C:/path/to/MCP-ArcGISPro/pro_bridge.py"
exec(open(p).read(), {"__file__": p})

Passing {"__file__": p} lets the optional hardening/recipes/socket layer (which lives next to pro_bridge.py) load. Plain exec(open(p).read()) still runs the core bridge, but only with built-in defaults (no safe_mode, no recipes, no socket transport).

Easiest of all: in the Catalog pane → Toolboxes → right-click → Add Toolbox → select MCP_Bridge.pyt. Then double-click Start MCP Bridge under it (Run) — no need to open the Python window or type anything. Stop MCP Bridge / MCP Bridge Status work the same way. This loads the hardening layer automatically, same as passing __file__ above.

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 (32)

CategoryTools
Connectionping
Projectget_project_info, save_project
Mapget_active_map_name, create_map
Layerslist_layers, add_vector_layer, add_raster_layer, remove_layer, zoom_to_layer, set_layer_visibility
Datadescribe_data, list_directory, list_fields, get_layer_features, get_unique_values
Workspaceset_workspace, get_workspace, list_feature_classes, list_rasters, list_tables
Selectionselect_by_attribute, clear_selection, count_features
Editingupdate_features (bulk-set field values on matching rows)
Geoprocessingrun_geoprocessing (any arcpy tool by dotted name)
Layout & Exportlist_layouts, create_layout, export_layout
Sharingpublish_web_layer (hosted feature service to ArcGIS Online/Enterprise)
Recipesrun_recipe (qa_layer, export_attributes_csv, batch_export_layouts, field_stats, value_counts — requires the hardening layer loaded)
Advancedexecute_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

File-based IPC (command / result JSON files in ~/.arcgis_mcp/) always works and needs no setup. When the hardening layer loads (see below), a localhost socket transport starts alongside it and becomes the preferred path — lower latency, no polling — with file IPC as the automatic fallback if the socket is ever unavailable. Either way, 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.


Safety & Configuration

When the bridge is started via the toolbox (or manual exec with __file__), an optional hardening layer loads and applies safe defaults:

  • execute_python is disabled unless you opt in — arbitrary code execution is off by default.
  • run_geoprocessing is restricted to an allowlist of toolbox prefixes (analysis., management., conversion., cartography., sa., ddd., stats., ca., intelligence.), plus a blocklist for destructive tools (Delete, DeleteFeatures, DeleteRows, DeleteField, DeleteIdentical, TruncateTable) even within an allowed toolbox. The blocklist check is case- and alias-insensitive (management.delete and Delete_management are both caught).
  • Bridge no longer silently creates a map if none exists — it asks instead, unless auto_create_map is turned back on.
  • Timeout is configurable (default 60s) instead of a hardcoded 15s that was too short for slower geoprocessing/publish calls.
  • run_recipe is gated the same way — each recipe declares which GP tools (if any) it needs, and those go through the same allowlist/blocklist check.

To change any of this, copy hardening/config.example.json to ~/.arcgis_mcp/config.json and edit. If the hardening layer fails to load for any reason, the bridge falls back to its original, fully-open behavior (with a console message saying so) — so a broken hardening/ install never silently blocks you, but also isn't a safety net you should rely on.


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

If you started it via the MCP Bridge toolbox, double-click Stop MCP Bridge.

If you started it manually in the Python window:

python
_bridge_active = False

Or simply close the Python window or restart ArcGIS Pro.


License

MIT

Встановлення

TypingMind
{
  "mcpServers": {
    "mcp-arcgispro": {
      "command": "uv",
      "args": [
        "--directory",
        "C:/path/to/MCP-ArcGISPro",
        "run",
        "arcgis_mcp_server.py"
      ]
    }
  }
}

Використовуйте MCP ArcGIS Pro MCP Bridge з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення ArcGIS Pro MCP Bridge ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте ArcGIS Pro MCP Bridge як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP ArcGIS Pro MCP Bridge.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "mcp-arcgispro": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для ArcGIS Pro MCP Bridge, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для ArcGIS Pro MCP Bridge.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через ArcGIS Pro MCP Bridge?
ArcGIS Pro MCP Bridge
Звісно. Я це прочитав.
Ось що я знайшов за допомогою ArcGIS Pro MCP Bridge.

Поширені запитання

Для чого використовується сервер MCP ArcGIS Pro MCP Bridge?

ArcGIS Pro MCP Bridge — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP ArcGIS Pro MCP Bridge з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати ArcGIS Pro MCP Bridge з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP ArcGIS Pro MCP Bridge із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши ArcGIS Pro MCP Bridge, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP ArcGIS Pro MCP Bridge до TypingMind?

ArcGIS Pro MCP Bridge працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP ArcGIS Pro MCP Bridge у TypingMind?

ArcGIS Pro MCP Bridge надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP ArcGIS Pro MCP Bridge?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо ArcGIS Pro MCP Bridge потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇