Search and query government open-data portals via the Socrata SODA 2.1 and Discovery APIs.
Search and query government open-data portals via the Socrata SODA 2.1 and Discovery APIs. The socrata mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 8 defined tools rather than through you.
Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.
Everything the assistant can do here goes through one of these:
socrata_list_portals — List known Socrata-powered government open-data portals with domain, organization name, and approximate dataset countsocrata_find_datasets — Search for datasets across all Socrata portals or scope to one portal via the Discovery APIsocrata_get_dataset — Fetch full metadata and typed column schema for a dataset by ID — required before writing SoQL queriessocrata_query_dataset — Execute a SoQL query against any dataset: search, select, where, group, having, order, with DataCanvas spilloversocrata_dataframe_describe — List registered tables in a DataCanvas session — schema, row count, column namessocrata_dataframe_query — Run SELECT-only SQL against DataCanvas tables populated by socrata_query_datasetPrerequisites — The Prerequisites tool exposed by this serverInstallation — The Installation tool exposed by this serverYou will need 3 environment variables: MCP_TRANSPORT_TYPE, MCP_LOG_LEVEL, SOCRATA_APP_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Socrata's toolset — socrata_list_portals, socrata_find_datasets, socrata_get_dataset and 5 more — is a fair guide to whether it matches your workflow. It is maintained by cyanheads; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Socrata's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| socrata_list_portals | List known Socrata-powered government open-data portals with domain, organization name, and approximate dataset count |
| socrata_find_datasets | Search for datasets across all Socrata portals or scope to one portal via the Discovery API |
| socrata_get_dataset | Fetch full metadata and typed column schema for a dataset by ID — required before writing SoQL queries |
| socrata_query_dataset | Execute a SoQL query against any dataset: search, select, where, group, having, order, with DataCanvas spillover |
| socrata_dataframe_describe | List registered tables in a DataCanvas session — schema, row count, column names |
| socrata_dataframe_query | Run SELECT-only SQL against DataCanvas tables populated by socrata_query_dataset |
| Prerequisites | The Prerequisites tool exposed by this server. |
| Installation | The Installation tool exposed by this server. |
{
"mcpServers": {
"socrata-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/socrata-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| MCP_TRANSPORT_TYPE | Configuration value read at startup. | Optional |
| MCP_LOG_LEVEL | Configuration value read at startup. | Optional |
| SOCRATA_APP_TOKEN | Credential the server authenticates with. | Yes |
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.