Opengov MCP Server

MCP server that enables a client, such as Claude Desktop, to access open government data through Socrata APIs

Local serverstdio

What is the Opengov MCP server?

If you already use Opengov, the opengov mcp server is the piece that lets your assistant work with it directly. MCP server that enables a client, such as Claude Desktop, to access open government data through Socrata APIs.

What the server does

An MCP (Model Context Protocol) server that enables MCP clients like Claude Desktop to access Socrata Open Data APIs. This integration allows Claude Desktop to search for, retrieve, and analyze public datasets from government data portals.

No API key is required for basic usage, as the server accesses public data.

  • Search and discover datasets by keyword, category, or tags
  • View dataset metadata and column information
  • Run SQL-like queries to retrieve and analyze data
  • Get portal usage statistics

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • catalog — Search and list datasets
  • categories — List dataset categories
  • tags — List dataset tags
  • dataset-metadata — Get dataset details
  • column-info — Get dataset column information
  • data-access — Query and retrieve records
  • site-metrics — Get portal statistics
  • DATA_PORTAL_URL — The Socrata data portal URL (e.g., https://data.cityofchicago.org)
  • Parameters — The Parameters tool exposed by this server

Installation

will on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Credentials and setup notes

Configuration is passed through the environment: DATA_PORTAL_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Where it fits

Plenty of database access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Opengov's toolset — catalog, categories, tags and 6 more — is a fair guide to whether it matches your workflow. It is maintained by srobbin; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 9 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Opengov.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
catalogSearch and list datasets
categoriesList dataset categories
tagsList dataset tags
dataset-metadataGet dataset details
column-infoGet dataset column information
data-accessQuery and retrieve records
site-metricsGet portal statistics
DATA_PORTAL_URLThe Socrata data portal URL (e.g., https://data.cityofchicago.org)
ParametersThe Parameters tool exposed by this server.

How to install the Opengov MCP server

{
     "mcpServers": { 
       "opengov": {
         "command": "npx",
         "args": ["-y", "opengov-mcp-server@latest"],
         "env": {
           "DATA_PORTAL_URL": "https://data.cityofchicago.org"
         }
       }
     }
   }

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
DATA_PORTAL_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Opengov to catalog.
  • Use Opengov to categories.
  • Use Opengov to tags.

Frequently asked questions

It connects Opengov to MCP-compatible AI assistants such as Claude and Cursor, exposing 9 tools (catalog, categories, tags, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Opengov directly.