ArcGIS MCP Server

An AI agent tool for searching ArcGIS content (layers, maps, etc.) with natural language in VS Code using GitHub Copilot.
🚀 Quickstart Guide
This guide provides the essential steps to get the server running reliably.
Step 1: Installation
First, create a clean Python environment and install the package.
-
Create & Activate Conda Environment:
conda create -n arcgis-tool-env python=3.11 -y
conda activate arcgis-tool-env
-
Install from PyPI:
pip install arcgis-mcp-server==1.1.5
Step 2: VS Code Configuration (Required)
A one-time manual configuration is required to guarantee VS Code can find and run the tool. This example is for developers who want to bypass the login prompt for faster testing by including credentials directly.
-
Create a Config File: In your project folder, create a file at this exact path: .vscode/mcp.json.
-
Paste the following JSON into the mcp.json file:
{
"servers": {
"arcgis-mcp-server": {
"type": "stdio",
"command": "C:\\Users\\YOUR_USERNAME\\miniconda3\\envs\\arcgis-tool-env\\python.exe",
"args": ["-m", "arcgis_mcp"],
"env": {
"ARCGIS_URL": "[https://your-portal.maps.arcgis.com](https://your-portal.maps.arcgis.com)",
"ARCGIS_USERNAME": "your_username",
"ARCGIS_PASSWORD": "your_password"
}
}
}
}
-
Update the Paths and Credentials:
- IMPORTANT: You must replace
C:\\Users\\YOUR_USERNAME\\... with the actual path to the python.exe in your arcgis-tool-env. Find it by running where python in your activated terminal.
- Replace the placeholder credentials in the
"env" block with your actual ArcGIS URL, username, and password.
-
Set Interpreter & Reload VS Code:
- In VS Code, open the Command Palette (
Ctrl+Shift+P).
- Run
Python: Select Interpreter and choose the arcgis-tool-env environment.
- Run
Developer: Reload Window from the Command Palette to apply all changes.
Want the login prompt instead?
For the standard user experience, simply remove the entire "env": { ... } block from your mcp.json file. This will cause the secure authentication pop-up to appear when you first use the tool.
Step 3: Usage
Now you can interact with the tool.
mcp-name: io.github.esrisaudiarabia/arcgis-mcp-server