socrata-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@socrata-mcpSearch for datasets about public health on data.delaware.gov"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Socrata MCP Server
An MCP server that gives Claude tools to explore and query any Socrata open data portal.
Tools
Tool | Description |
| Search for datasets by keyword, optionally scoped to a specific portal domain |
| Get column definitions and metadata for a dataset |
| Query rows using SoQL WHERE / SELECT / ORDER |
| GROUP BY aggregation with count/sum/avg etc. |
| List dataset categories on a specific portal |
Related MCP server: mcp-data-kcmo
Installation
Prerequisites
You need Python 3.10 or newer. Check your version:
python3 --versionIf you need to install or upgrade Python:
macOS:
brew install python(requires Homebrew)Ubuntu/Debian / WSL:
sudo apt update && sudo apt install -y python3 python3-venv python3-pipFedora/RHEL:
sudo dnf install python3Windows 11 native: Download from python.org and check Add to PATH during install
1. Clone or copy this folder
git clone https://github.com/your-username/socrata-mcp.git
cd socrata-mcpOr just copy the server.py and requirements.txt files into a folder of your choice.
2. Create a virtual environment
python3 -m venv .venv3. Activate the virtual environment
Platform | Command |
macOS / Linux / WSL |
|
Windows (cmd.exe) |
|
Windows (PowerShell) |
|
Your prompt will change to show (.venv) when it is active.
4. Install dependencies
pip install -r requirements.txt5. Verify the install
python3 server.py --helpYou should see an error like:
RuntimeError: SOCRATA_DOMAIN environment variable is requiredThat means the server loaded correctly — it just needs your credentials configured (see below).
Configuration
Both environment variables are required. The server will not start without them.
Variable | Description | Example |
| Hostname of the Socrata portal |
|
| API token from your Socrata account |
|
To get an API token: log in to your Socrata portal → Developer Settings → Create New App Token.
Add to Claude Desktop
Claude Desktop reads its MCP server list from a JSON config file. Edit the file for your platform:
Platform | Config file location |
macOS |
|
Windows 11 |
|
WSL | Use the Windows path above — Claude Desktop runs on Windows, not inside WSL |
macOS / Linux (native)
{
"mcpServers": {
"socrata": {
"command": "/absolute/path/to/socrata-mcp/.venv/bin/python3",
"args": ["/absolute/path/to/socrata-mcp/server.py"],
"env": {
"SOCRATA_DOMAIN": "data.delaware.gov",
"SOCRATA_APP_TOKEN": "your-api-key-here"
}
}
}
}Replace /absolute/path/to/socrata-mcp with the real path. Find it by running pwd inside the project folder.
Windows 11 (native Python)
{
"mcpServers": {
"socrata": {
"command": "C:\\Users\\YourName\\socrata-mcp\\.venv\\Scripts\\python.exe",
"args": ["C:\\Users\\YourName\\socrata-mcp\\server.py"],
"env": {
"SOCRATA_DOMAIN": "data.delaware.gov",
"SOCRATA_APP_TOKEN": "your-api-key-here"
}
}
}
}Windows 11 with WSL
Claude Desktop runs on Windows but can launch a WSL process via wsl.exe:
{
"mcpServers": {
"socrata": {
"command": "wsl.exe",
"args": [
"--exec",
"/home/your-wsl-username/socrata-mcp/.venv/bin/python3",
"/home/your-wsl-username/socrata-mcp/server.py"
],
"env": {
"SOCRATA_DOMAIN": "data.delaware.gov",
"SOCRATA_APP_TOKEN": "your-api-key-here"
}
}
}
}Replace your-wsl-username with your WSL username (run whoami inside WSL to check).
After editing the config, restart Claude Desktop and you should see the Socrata tools available.
License
This project is licensed under the MIT License.
This code was generated using Claude by Anthropic.
Example queries
"What datasets are available on the Delaware open data portal?"
"Show me the top vendors by contract spend in FY2025"
"What columns are in dataset sifm-293u?"
"Which agencies spent the most on cloud solutions last year?"
"Search for education datasets on data.delaware.gov"
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
Michigan Open Data (data.michigan.gov) Socrata MCP.
Hosted MCP server for finding authoritative primary data sources and official portals.
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that provides access to government datasets from Data.gov, enabling users to search packages, view dataset details, list groups and tags, and access resources by URL.24181 npm19MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for accessing Kansas City, MO open data through the Socrata SODA API. Enables querying and retrieving public datasets from data.kcmo.org.2 npmMIT
- AlicenseNot gradedqualityCmaintenanceMCP server providing access to Montgomery County, MD open data through the Socrata SODA API, enabling querying and analysis of public datasets via natural language.3 npmMIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that connects to open data portals like CKAN and Socrata, enabling natural language querying of datasets via Claude.MIT