DataGraph MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
DataGraph MCP Server
Model Context Protocol server for accessing the DataGraph API from Claude Desktop, ChatGPT, and other MCP-compatible clients.
Installation
Via npx (recommended)
{
"mcpServers": {
"datagraph": {
"command": "npx",
"args": ["-y", "datagraph-city-mcp-server"],
"env": {
"DATAGRAPH_API_KEY": "dgc_your_api_key_here"
}
}
}
}Via local install
npm install datagraph-city-mcp-server{
"mcpServers": {
"datagraph": {
"command": "node",
"args": ["/absolute/path/to/node_modules/datagraph-city-mcp-server/index.js"],
"env": {
"DATAGRAPH_API_KEY": "dgc_your_api_key_here"
}
}
}
}Get an API key
Sign up at datagraph.city to get your free API key.
Related MCP server: socrata-mcp
Claude Desktop setup
Open Claude Desktop config:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the configuration above with your API key
Restart Claude Desktop
Example queries
"What programs address violence prevention in Kansas City?"
"Show me the obstacles to reducing urban loneliness in NYC"
"Which organizations fund violence prevention in Kansas City?"
"What strategy areas do Kansas City nonprofits work in?"
"Show recent building permits in Manhattan"
"What are property sale prices by borough in NYC?"Available datasets
Call list_datasets first — it returns exact dataset names and current counts.
Locality | Dataset | Description |
|
| 450+ programs, 200+ organizations, violence prevention (GOSR) |
|
| 7,500+ programs addressing urban loneliness (GOSR) |
|
| 5,300+ civic infrastructure programs (GOSR) |
| multiple | NYC subway, building permits, property sales, crime, demographics |
NYC dataset details
Dataset | Records | Notes |
Subway | 445 stations | MTA lines and locations |
DOB Permits | 856,480 | Building permits from DOB NOW (March 2021–present) |
Property Sales | 53,464 | Real estate transactions with prices |
Crime | 100,000 | NYPD complaints with demographics |
Demographics | 195 neighborhoods | Population statistics |
GOSR Framework
Goal-Obstacles-Solutions-Resources (GOSR) is a participatory problem-structuring method for civic problem-solving. Learn more at gosr.ai.
Layer | Role |
Goal | The aspirational future state for a community (singular) |
Obstacles | Barriers preventing that future — a diagnosis of why the problem persists |
Solutions | Potential strategies to overcome each Obstacle (NOT actual programs) |
Resources | Actual operating programs that implement a Solution in practice |
Actors | Organizations that run Resources |
Funders | Foundations and government agencies that fund Actors or Resources (depending on source specificity) |
StrategyArea | Practitioner-defined operational groupings (e.g. Prevention, Intervention) — present in some datasets |
Ecosystem | Governance stakeholders (elected officials, planning bodies) that set policy — present in some datasets |
Key relationship chain:
(Goal)-[:HAS_OBSTACLE]->(Obstacle)-[:HAS_SOLUTION]->(Solution)
<-[:IMPLEMENTS]-(Resource)<-[:EXECUTES]-(Actor)<-[:FUNDS]-(Funder)
(Resource)<-[:FUNDS]-(Funder) [when source names a specific program]
(Actor)-[:WORKS_IN]->(StrategyArea)FUNDS edge targeting:
(Funder)-[:FUNDS]->(Actor)— when the funding source names only the organization (most sources)(Funder)-[:FUNDS]->(Resource)— when the funding source names a specific program (currently COMBAT grants only)To find all funding, query both:
MATCH (f)-[:FUNDS]->(n) WHERE n:Actor OR n:Resource
Critical distinctions:
Solutions are theoretical/potential interventions — they describe what could work
Resources are real, existing programs currently operating
Obstacles can have child Solutions (leaf nodes) OR child Obstacles (sub-problems), but not both
Counting parent vs. leaf Obstacles:
// Parent obstacles (have sub-obstacles)
MATCH (p:Obstacle)-[:HAS_OBSTACLE]->(c:Obstacle)
WHERE p.dataset = 'your-dataset'
RETURN COUNT(DISTINCT p)
// Leaf obstacles (have solutions)
MATCH (p:Obstacle)-[:HAS_OBSTACLE]->(c:Obstacle)
WHERE p.dataset = 'your-dataset'
RETURN COUNT(c)Available tools
Tool | Description |
| List all available datasets — call this first |
| Get the full graph schema for a locality — call before writing Cypher |
| Query data using natural language or raw Cypher |
| Browse available data in a locality |
| Analyze a GOSR dataset for civic problem-solving |
| Server version and framework reference |
| Your API usage and quota |
query_locality_data parameters
Parameter | Required | Description |
| Yes | Natural language query or raw Cypher |
| No | Locality code, e.g. |
| No | Filter by category |
| No | Max results (default: 10) |
Tip: Call get_locality_schema first to understand the graph structure, then write Cypher directly for precise results.
Development
Test with MCP Inspector
npx @modelcontextprotocol/inspector node index.jsDebug mode
DEBUG=* node index.jsTroubleshooting
"API key not found" — Ensure DATAGRAPH_API_KEY is set in your MCP server env config.
Claude doesn't see the server — Use absolute paths. Restart Claude Desktop completely after config changes.
Empty query results — Use get_locality_schema first to understand the graph structure, then write Cypher directly via query_locality_data.
"Command failed" — Verify Node.js is installed (node --version), then test manually: node index.js.
Support
Documentation: docs.datagraph.city
Issues: github.com/team-earth/datagraph-city-mcp-server/issues
Email: support@datagraph.city
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for live public-data APIs and Skills for AI agents.
Query your own knowledge graph from any MCP client. The graph lives in a database you own.
Urban intelligence knowledge graph. Structured locality data for civic problem-solving.
Open network for AI agents to find, exchange and reuse structured knowledge via MCP and JSON.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for querying versioned C2PA specification knowledge graphs, enabling AI agents to browse entity definitions, validation rules, and version diffs via natural language.3Apache 2.0
- AlicenseAqualityDmaintenanceAn MCP server that gives LLM agents typed, cached access to civic open-data portals via Socrata (SODA 2.1 + Discovery API), enabling search, query, profiling, sampling, and CSV export of datasets.6MIT
- AlicenseAqualityDmaintenanceAn MCP server that puts open data on tap, enabling LLM clients to search, inspect, and query 30,000+ civic datasets from Socrata portals with built-in guardrails like row caps and actionable error messages.41MIT
- FlicenseNot gradedqualityDmaintenanceExposes a Neo4j knowledge graph to AI assistants via MCP, enabling entity search, neighbor traversal, and read-only Cypher queries.-