oauth2
Browser-based OAuth2 (blocks ~2 min)
How to use it
oauth2 is exposed by the Arcgis Portal MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the oauth2 tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Arcgis Portal MCP
pip install git+https://github.com/Asem-D/arcgis-portal-mcp.gitOther tools in Arcgis Portal MCP (39)
Add new features to a hosted feature layer
Read from .env (default). Tries username/password first, then clientcredentials
Delete multiple items at once
Use explicit clientid/secret
Authenticate with the portal (auto, token, username/password, clientcredentials, or OAuth2)
Create a content folder for organizing items
Create a new group with access control
Create an empty hosted feature service with schema
Delete features by OBJECTIDs or WHERE clause
Delete an item from the portal
Get full layer schema: fields, types, domains, subtypes, relationships, extent, renderer
Run a synchronous geoprocessing task
Export a MapServer/FeatureServer layer as JPG/PNG/GIF/PDF/SVG
Check status of a running async geoprocessing job
Inspect GP tool schemas: list tasks or view parameter definitions before execution
Read item data (web map JSON, app config, feature collections)
Get detailed metadata for a specific item
Get organization settings (admin)
Get detailed user profile (role, privileges, storage, last login)
Invite users to a group with a role assignment
List content folders for a user
List portal groups with access levels
List layers in a feature/map service with geometry types and counts
Get license information and assignments (admin)
List portal users with roles and status
Check portal health and system status
Get portal version, platform, and system info (admin)
Get portal usage statistics: users, API calls, storage (admin)
Publish an uploaded item as a hosted feature service
Query features with attribute/spatial filters and pagination
Search items by keyword, type, and owner
Check MCP server connection state
Share/unshare an item with everyone, org, or specific groups
Submit an async GP job and get a job ID for polling
Update existing features (by OBJECTID)
Update item properties (title, description, tags, access)
Update organization settings (admin)
Upload a local file (CSV, Shapefile, etc.) to portal content
Portal username + password -> generateToken (user-level)