Skip to main content
Glama
qQsss777

mcp-arcgis

by qQsss777
README.md
## mcp-arcgis

POC (Proof of Concept) to find place with arcgis-rest-js in Cursor or Claude Desktop, via a MCP Server


## Prerequisites

- Node.js 18+
- MCP client (e.g., Claude Desktop, Cursor)
- API Key from ArcGIS Developer: [ArcGIS Developer API Key](https://developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/)


## Quick Start

1) Create environment file

Create a `.env` file in the project root with the following PostgreSQL variables:
```bash
API_KEY=API_KEY_FROM_ARCGIS
```

2) Launch the MCP server

To test if everything works, launch the MCP server.
```bash
node .
```

The MCP server exposes a tool to list database tables and search in tables.

## Usage

### From an MCP client (Claude Desktop)
- Configure the MCP client according to the client documentation, for example:
```json
{
  "mcpServers": {
    "postgresql": {
      "type": "stdio",
      "command": "node",
      "args": ["/PATH_TO_FOLDER"]
    }
  }
}
```
- Ask for get informations about restaurants around 1 kilometers from an adress in France.
Example* :

![Log results](images/result.png)

*Result displayed on this picture could be not exhaustive