SO

srobbin/opengov-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

15 stars 8 forks 品質 65 トレンド 9MIT

Claude DesktopのようなMCPクライアントがSocrata Open Data APIにアクセスできるMCP(Model Context Protocol)サーバーです.

概要

Claude DesktopのようなMCPクライアントがSocrata Open Data APIにアクセスできるMCP(Model Context Protocol)サーバーです。 この統合により、Claude Desktopは、政府データポータルからパブリックデータセットを検索、取得、分析することができます。 このMCPサーバーは、都市、州、および連邦政府機関などを含む、あらゆるSocrata搭載データポータルからデータを開くことができます。 - シカゴ - NYC - サンフランシスコ - ロサンゼルス - その他政府機関 サーバが公開データにアクセスするので、基本的な使い方ではAPIキーは必要ありません。 このMCPサーバーでは、クライアントは: - キーワード、カテゴリ、またはタグでデータセットを検索し、発見することができます - データセットメタデータと列情報を表示 - SQLのようなクエリを実行して、データの取得と分析を実行 - ポータルの使用状況統計を取得する このMCPサーバーを使用する最も簡単な方法はnpxで、インストールは必要ありません。 1. : claude desktop configを作成または編集します.

概要(AI 翻訳)

Claude DesktopのようなMCPクライアントがSocrata Open Data APIにアクセスできるMCP(Model Context Protocol)サーバーです。 この統合により、Claude Desktopは、政府データポータルからパブリックデータセットを検索、取得、分析することができます。

概要

このMCPサーバーは、都市、州、および連邦政府機関などを含む、Socrataの動力を与えられたデータポータルからデータを開くことができます。

  • シカゴ
  • ニューヨーク
  • サンフランシスコ
  • ロサンゼルス
  • その他政府機関

サーバが公開データにアクセスするので、基本的な使い方ではAPIキーは必要ありません。

##特徴

このMCPサーバーを使うと、顧客は次のことができます:

  • キーワード、カテゴリ、タグでデータセットを検索し、発見する
  • データセットメタデータと列情報の表示
  • SQL のようなクエリを実行して、データの取得と解析を行います
  • ポータル利用統計の取得

#Claudeデスクトップのインストール

##npx でクイックセットアップ (推奨)

このMCPサーバーを使用する最も簡単な方法はnpxで、インストールは必要ありません。

1.Claudeデスクトップの設定を作成または編集する:

ホームディレクトリのclaude_desktop_config.jsonを作成または編集します。

Data PORTAL URL を、Socrata の任意のデータポータルに置き換えることができます。

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 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

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.

GitHub で README 全文を見る

インストール

npx -y opengov-mcp-server@latest
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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