OpenGov MCP Server

OpenGov MCP Server

srobbin

Research & Data
Visit Server

README

OpenGov MCP Server

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.

Overview

This MCP server provides access to open data from any Socrata-powered data portal, including those from cities, states, and federal agencies such as:

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

Features

With this MCP server, clients can:

  • 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

Installation for Claude Desktop

Quick Setup with npx (Recommended)

The easiest way to use this MCP server is with npx, which doesn't require any installation:

  1. Create or edit your Claude Desktop configuration:

    Create or edit claude_desktop_config.json in your home directory:

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

    You can replace the DATA_PORTAL_URL with any Socrata-powered data portal.

  2. Restart Claude Desktop (if it was already running)

  3. Start using the MCP server:

    In Claude Desktop, you can now ask questions like:

    How many cars were towed in Chicago this month?
    

    and you can follow up with questions that drill further into detail:

    Which make and color were towed the most?
    Also, were there any interesting vanity plates?
    

    The first time you run a query, npx will automatically download and run the latest version of the server.

Manual Installation from Source

If you prefer to run from source (for development or customization):

  1. Clone this repository:

    git clone https://github.com/srobbin/opengov-mcp-server.git
    cd opengov-mcp-server
    
  2. Install dependencies and build:

    npm install
    npm run build
    
  3. Create Claude Desktop configuration:

    Create or edit claude_desktop_config.json in your home directory:

    {
      "mcpServers": { 
        "opengov": {
          "command": "node",
          "args": [
            "/path/to/your/opengov-mcp-server/dist/index.js"
          ],
          "env": {
            "DATA_PORTAL_URL": "https://data.cityofchicago.org"
          }
        }
      }
    }
    

    Replace /path/to/your/opengov-mcp-server with the actual path where you cloned the repository.

  4. Restart Claude Desktop (if it was already running)

Available Tool: get_data

This MCP server provides a unified get_data tool that Claude Desktop uses to access Socrata data.

Parameters

  • type (string, required): Operation type

    • 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
  • domain (string, optional): Data portal hostname (without protocol)

  • query (string, optional): Search query for datasets

  • datasetId (string): Dataset identifier for specific operations

  • soqlQuery (string, optional): SoQL query for filtering data

  • limit (number, optional): Maximum results to return (default: 10)

  • offset (number, optional): Results to skip for pagination (default: 0)

Example Queries

These are examples of how Claude Desktop will format queries to the MCP server:

// Find datasets about budgets
{
  "type": "catalog",
  "query": "budget",
  "limit": 5
}

// Get information about a dataset
{
  "type": "dataset-metadata",
  "datasetId": "6zsd-86xi"
}

// Query dataset records with SQL-like syntax
{
  "type": "data-access",
  "datasetId": "6zsd-86xi",
  "soqlQuery": "SELECT * WHERE amount > 1000 ORDER BY date DESC",
  "limit": 10
}

Configuration Options

The server requires one environment variable:

  • DATA_PORTAL_URL: The Socrata data portal URL (e.g., https://data.cityofchicago.org)

This can be set:

  • In the Claude Desktop configuration (recommended)
  • In your environment variables
  • Via command line: DATA_PORTAL_URL=https://data.cityofchicago.org opengov-mcp-server

Recommended Servers

MCP PubMed Search

MCP PubMed Search

Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.

Featured
Python
dbt Semantic Layer MCP Server

dbt Semantic Layer MCP Server

A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.

Featured
TypeScript
mixpanel

mixpanel

Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Featured
TypeScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Featured
Python
Crypto Price & Market Analysis MCP Server

Crypto Price & Market Analysis MCP Server

A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.

Featured
TypeScript
Nefino MCP Server

Nefino MCP Server

Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.

Official
Python
Vectorize

Vectorize

Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.

Official
JavaScript
MCP-Logic

MCP-Logic

MCP-Logic is a server that provides AI systems with automated reasoning capabilities, enabling logical theorem proving and model verification using Prover9/Mace4 through a clean MCP interface.

Local
Python
Mentor MCP Server

Mentor MCP Server

Provides LLM Agents with AI-powered mentorship for code review, design critique, writing feedback, and brainstorming using the Deepseek API, enabling enhanced output in various development and strategic planning tasks.

Local
TypeScript
Substack Reader

Substack Reader

Enables fetching and reading subscriber-only content from Trade Companion by Adam Mancini on Substack, allowing Claude to access and discuss the latest financial trading articles.

Local
Python