MCP Catalogs
首页

civic-ai-tools

by npstorey·30·综合分 44

将AI助手连接到政府开放数据的MCP服务器,配备反幻觉框架。

ai-llmgovernment-datadeveloper-tools
12
Forks
30
活跃 Issue
本月
最近提交
2 天前
收录于

概述

Civic AI Tools是一个MCP服务器,通过模型上下文协议(MCP)使AI助手能够访问和查询政府开放数据。它主要连接到纽约市开放数据(Socrata)和Google Data Commons,允许用户用自然语言询问有关311投诉、餐厅检查和人口统计信息等公民数据集的问题。该平台配备反幻觉功能,确保响应基于真实、可验证的数据而非AI生成内容。它提供本地设置和通过GitHub Codespaces的云选项。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:记者分析公共服务投诉和趋势
:政府工作人员获取住房和健康违规数据
:研究人员比较城市间的人口和经济指标
:可用的数据源有哪些?
:使用这个需要API密钥吗?

什么时候选它

当你需要使用 AI 助手分析 civic/政府数据,并希望直接访问数据集且无需编程专业知识时选择它。

什么时候不要选它

如果你需要的数据源超出纽约市/Google Data Commons 范围,或需要更高的商业使用限额,则不要选择它。

此 server 暴露的工具

从 README 抽取出 3 个工具
  • query_socrata

    Query NYC Open Data datasets including 311 complaints, restaurant inspections, and housing violations

  • query_data_commons

    Query Google Data Commons for population, income, and demographic data

  • create_visualization

    Generate visualizations and dashboards from live civic datasets

说明:Tool names inferred from the MCP servers described in the table (Socrata MCP and Data Commons MCP) and their capabilities. No explicit tool names or signatures are provided in the README.

可对比工具

socrata-mcp-serverdatacommons-mcpgovdata-mcp

安装

快速开始(推荐)

  1. 点击仓库中的**"Open in GitHub Codespaces"**按钮
  2. 等待环境构建(自动安装所有内容)
  3. 在Agent模式下打开**Copilot Chat**并开始提问

本地设置

git clone https://github.com/npstorey/civic-ai-tools.git
cd civic-ai-tools
cp .env.example .env
./scripts/setup.sh

Claude Desktop配置

将其添加到您的Claude Desktop配置中:

{
  "mcpServers": {
    "civic-ai-tools": {
      "command": "uv",
      "args": ["run", "mcp/server.py"],
      "env": {
        "SOCRATA_APP_TOKEN": "YOUR_TOKEN_HERE"
      }
    }
  }
}

FAQ

可用的数据源有哪些?
该MCP服务器主要连接纽约市开放数据(Socrata),包含2,000多个数据集,以及Google Data Commons,提供人口统计和统计指标。
使用这个需要API密钥吗?
API密钥是可选的。没有密钥的情况下,纽约市开放数据仍能使用(但速率限制较低),而Google Data Commons需要API密钥才能访问。

civic-ai-tools 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。