/socrata-mcp-server:socrata-guidefrom socrata-mcp-server
Investigate civic data with socrata_* tools, check dataset coverage, and choose upstream SoQL or staged DuckDB analysis. Use for government open-data questions involving absence claims, trends, conditional aggregates, or comparisons across datasets.
Ships in socrata-mcp-server. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use Socrata for public government datasets served through SODA 2.1. Discovery also lists maps, charts, files, stories, and external links; each search result's asset_type says which it is, and only dataset and filter assets answer with rows. For row analysis of a map, chart, or story, query a table its parent_dataset_ids names; a not_tabular error names them too. The tools do not edit portal data.
Keep the portal and dataset identity from a discovery result together through analysis. Metadata supplies the typed API field names; a staged query supplies a separate canvas token and table name. Use the returned identifiers rather than deriving a local table name from a dataset ID.
domain; search across portals with query.total_count counts what its rows count: matching source rows for a plain query, groups for a grouped query, distinct values for a distinct select. It is reported when more rows match than the response holds; a truncated response without one means the count failed, so more rows may match than it shows.table_name with the same canvas_id, or use separate canvases; these tools cannot join across canvases.Resolve the dataset's time and category fields before translating the question into a query. Check category values, then aggregate on the portal with SoQL. This computes over the matching source population instead of a limited local extract. A dataset's update timestamp describes its refresh, not proof that every event in the requested period is represented.
For conditional totals, use SoQL's case(condition, value, true, fallback) form rather than SQL CASE WHEN. See query syntax before translating between engines.
Results too large to return inline are staged as a DataCanvas table, and the response carries a canvas_id. Call socrata_dataframe_describe with it for the staged table and column names before writing SQL, then socrata_dataframe_query with a read-only query. Pass the same canvas_id back to stage further results beside the first; the tables expire with the canvas. For a quick look at a few rows, pass stage: false: the call returns the page alone and stages nothing, leaving any canvas you pass untouched.
Use that shared canvas for different datasets with distinct IDs after checking the join and coverage gates. Describe it after staging each dataset to confirm both tables remain. A successful inline response without a canvas token supplies no staged table to query.
For multiple filtered extracts of one dataset, either stage a common source extract once and express the comparisons in DuckDB SQL, provided that extract covers the required population, or stage each filtered extract under its own table_name on the same canvas_id and compare the tables in SQL. Otherwise compute each statistic upstream in SoQL. A repeated spill under the same name does not append pages or preserve the earlier version. If staging fails or runs out of time, the response still carries its inline rows, no canvas_id, and a notice saying nothing was staged.
A successful zero-row query establishes only that its filters matched no returned rows. Recheck vocabulary, time coverage, and filters before generalizing. A discovery miss or an API/domain failure is not a zero-row observation.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
socrata-mcp-server@cyanheads is listed by cyanheads/cyanheads — review the source before installing
npx claudepluginhub cyanheads/cyanheads --plugin socrata-mcp-server