socrata-mcp-server
Server Details
Search and query government open-data portals (Socrata SODA API).
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- Repository
- cyanheads/socrata-mcp-server
- GitHub Stars
- 4
- Server Listing
- @cyanheads/socrata-mcp-server
- ChatGPT
- –
- Claude
- –
TDQS
Scored across 6 tools
Each tool targets a distinct action and layer: portal discovery (list_portals), dataset discovery (find_datasets), schema lookup (get_dataset), remote SoQL querying (query_dataset), and two canvas-scoped SQL tools. The potentially confusable pairs — find vs. get dataset, and query_dataset vs. dataframe_query — are explicitly separated by 'search by keyword' vs. 'fetch by ID' and 'remote SoQL' vs. 'local canvas SQL' in the descriptions. No two tools appear interchangeable.
All names share the socrata_ prefix and are snake_case, which keeps the set readable. However, the two canvas tools break the verb_noun pattern used elsewhere (socrata_find_datasets, socrata_get_dataset, socrata_list_portals, socrata_query_dataset) by using a noun-first namespace form (socrata_dataframe_describe, socrata_dataframe_query). The deviation is minor but visible.
Six tools is well-scoped for a read-only open-data server: one per resource (portals, datasets) plus schema, query, and the optional canvas pair. Nothing feels padded or missing at the count level.
The full workflow is covered end to end: discover portal → search datasets → inspect schema → query → stage and analyze on canvas. Remaining gaps are minor — there is no way to drop or reset staged canvas tables, and no direct single-dataset row preview outside a query — but agents can work around both.
Available Tools
6 toolssocrata_dataframe_describeDescribe DataCanvas TablesARead-onlyIdempotentInspect
List registered tables in a DataCanvas session — schema, row count, and column names. Shows what datasets are available for SQL queries via socrata_dataframe_query. Meaningful when the server has a DataCanvas. Use after socrata_query_dataset spills a large result set to canvas.
Inputs: canvas_id. Returns: error, notice, tables, canvas_id
socrata_dataframe_queryQuery DataCanvas TableARead-onlyIdempotentInspect
Run SELECT-only SQL against a DataCanvas table populated by socrata_query_dataset. Columns SODA types as number (including aggregate aliases like count(*) as n) are staged as DOUBLE, so numeric comparisons work without a cast (year > 2020, amount < 500). Text and timestamp columns stay VARCHAR — compare times with CAST(date AS TIMESTAMP). Works when the server has a DataCanvas. Use socrata_dataframe_describe to see registered tables and their schemas.
Inputs: sql (required), canvas_id (required), limit. Returns: cap, sql, rows, error, +5 more
socrata_find_datasetsFind Socrata DatasetsARead-onlyIdempotentInspect
Search for datasets across all Socrata-powered government open-data portals, or scope to one portal with the domain parameter. Returns dataset IDs, names, domains, update timestamps, and column_names — the API field names SoQL takes, not display labels. Use socrata_get_dataset to fetch the typed column schema before writing queries — column_names carry no type information.
Inputs: only, tags, limit, order, +4 more. Returns: error, notice, results, totalCount, +2 more
socrata_get_datasetGet Dataset SchemaARead-onlyIdempotentInspect
Fetch full metadata and column schema for a Socrata dataset by ID. Returns field names, data types, descriptions, row count, and licensing. Always call this before writing a socrata_query_dataset — the column types determine correct WHERE clause syntax: Number columns accept bare literals (year=2023) while Text columns require single-quoted strings (year='2023').
Inputs: dataset_id (required), domain. Returns: name, tags, error, domain, +10 more
socrata_list_portalsList Socrata PortalsARead-onlyIdempotentInspect
List known Socrata-powered government open-data portals with their domain, organization name, and approximate dataset count. The catalog is a curated list of 39 well-known portals; dataset counts are fetched from the Discovery API and cached for ~24 hours. Filtering is client-side substring match on the query parameter. Use this first when you do not know which portal to target, then pass the domain to socrata_find_datasets.
Inputs: limit, query, offset. Returns: error, notice, portals, totalCount
socrata_query_datasetQuery DatasetARead-onlyIdempotentInspect
Execute a SoQL query against any dataset on any Socrata portal. Use the search parameter for quick full-text lookup, or combine select/where/group/having/order for full analytical control. Returns rows plus the assembled SoQL string so you can learn the pattern. Columns are referenced by API field name (field_name from socrata_get_dataset, e.g. cuisine_description), never the display label. All SODA 2.1 row values are strings even for numeric columns — check data_type from socrata_get_dataset to determine correct WHERE quoting: Number columns use bare literals (year=2023), Text columns use single-quoted strings (year='2023'). To enumerate distinct values, use select="col, count(*) as n" with group="col" and order="n DESC". When the server has a canvas and more rows match past a full page, up to 50,000 matching rows spill to a DataCanvas table whatever the limit: list its columns with socrata_dataframe_describe, then run SQL with socrata_dataframe_query. Pass stage false to return the page alone, without staging.
Inputs: dataset_id (required), group, limit, order, +9 more. Returns: cap, rows, error, shown, +10 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Query and explore Nova Scotia open datasets via the Socrata SODA API.
Search and call 422 official public-data APIs: elections, courts, permits, SEC filings.
Search openFDA drug, device, food and adverse-event datasets.
ArcGIS Hub — open government geospatial data (search + Feature Service query).
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables querying and searching the Providence Open Data catalog via Socrata SoQL, including dataset search, data querying, and metadata retrieval.63 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables querying Seattle open data from data.seattle.gov via the Socrata SODA API.71 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables searching, querying, and retrieving metadata from Sonoma County Open Data datasets via Socrata SoQL or natural language.67 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables searching and querying Norfolk Open Data datasets through Socrata SoQL, including metadata retrieval.68 npmMIT
Glama MCP Gateway
Add one secure layer between your agents and this server.