get_data
[Data Portal] Access data and metadata to learn more about the city and its underlying information.
Query a city's open data portal in SoQL — select, where, group, having, order — and get the rows back without downloading a dataset.
LABSCO SUMMARY
get_data takes SoQL clauses directly, so filtering and aggregation happen at the portal instead of after the rows arrive. When building a query clause by clause gets awkward, soqlQuery accepts a complete one, and q covers plain text search. DATA_PORTAL_URL sets the portal, while domain and datasetId aim an individual call.
A single-tool front end to a city open data portal, reaching both the data and the metadata that describes it.
DATA_PORTAL_URL, set to the open data portal you want to query. No account or key beyond that.
One command — npx -y opengov-mcp-server@latest
USE CASES
The question goes to the portal as a query rather than as a download, so the aggregation happens server-side and only the rows that answer it come back. Metadata is reachable through the same call when the right dataset is not yet known.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
get_data[Data Portal] Access data and metadata to learn more about the city and its underlying information.
BEFORE YOU INSTALL
1 tool when we connected. get_data covers seven operations through its type parameter, from catalog search to SoQL queries. Results default to 10 rows; DATA_PORTAL_URL sets the portal, and a domain parameter can target another Socrata portal.
npx on PATH
Both documented setups run the server on your machine.
CONTEXT COST
Rated by the size of the one tool definition that rides along on every turn
INSTALLATION
npx -y opengov-mcp-server@latest{
"mcpServers": {
"opengov": {
"command": "npx",
"args": [
"-y",
"opengov-mcp-server@latest"
],
"env": {
"DATA_PORTAL_URL": "https://data.cityofchicago.org"
}
}
}
}{
"mcpServers": {
"opengov": {
"command": "node",
"args": [
"<YOUR_PATH_TO_OPENGOV_MCP_SERVER>/dist/index.js"
],
"env": {
"DATA_PORTAL_URL": "https://data.cityofchicago.org"
}
}
}
}