Skip to main content
Glama

socrata-mcp-server

Server Details

Search and query government open-data portals (Socrata SODA API).

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
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

A4.4/5.0

Scored across 6 tools

Disambiguation5/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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 tools
socrata_dataframe_describeDescribe DataCanvas TablesA
Read-onlyIdempotent
Inspect

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 TableA
Read-onlyIdempotent
Inspect

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 DatasetsA
Read-onlyIdempotent
Inspect

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 SchemaA
Read-onlyIdempotent
Inspect

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 PortalsA
Read-onlyIdempotent
Inspect

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 DatasetA
Read-onlyIdempotent
Inspect

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

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables querying and searching the Providence Open Data catalog via Socrata SoQL, including dataset search, data querying, and metadata retrieval.
      63 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables searching, querying, and retrieving metadata from Sonoma County Open Data datasets via Socrata SoQL or natural language.
      67 npm
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.