Developers
Developer API
Pull multi-domain, geo-joined civic data with the same lineage and attribution as the nMyCity app. Connect from curl, your stack, or MCP hosts (Cursor, Claude Desktop).
Quick start
- Sign up and upgrade to Analyst Solo, Analyst Team, or Platform Developer.
- Create an API key in your dashboard.
- Call any endpoint with
Authorization: Bearer imc_….
curl "https://nmycity-api.onrender.com/api/v1/data/products/neighborhood-safety?\ scope=city&scopeId=2507000&start=2024-01-01&end=2024-12-31" \ -H "Authorization: Bearer imc_YOUR_API_KEY"
MCP (Model Context Protocol)
Connect nMyCity from Cursor, Claude Desktop, or any MCP host. We ship two stdio servers — both thin clients over the same REST API, with the same auth, quotas, and attribution.
Beta: MCP packages are not on npm yet. Build from the monorepo (npm run build:mcp:all) and point your MCP host at node packages/mcp-server/dist/index.js and node packages/beacon-mcp/dist/index.js. npm publish is planned for general availability.
Local Cursor config (monorepo)
{
"mcpServers": {
"inmycity": {
"command": "node",
"args": ["packages/mcp-server/dist/index.js"],
"env": {
"INMYCITY_API_URL": "https://nmycity-api.onrender.com",
"INMYCITY_API_TOKEN": "imc_YOUR_API_KEY"
}
},
"inmycity-beacon": {
"command": "node",
"args": ["packages/beacon-mcp/dist/index.js"],
"env": {
"INMYCITY_API_URL": "https://nmycity-api.onrender.com",
"INMYCITY_API_TOKEN": "imc_YOUR_BUSINESS_API_KEY",
"INMYCITY_BEACON_ATTESTATION": "prohibited-use-accepted-v1"
}
}
}
}Env aliases NMYCITY_* also work during the rebrand. Create keys in Dashboard → API keys. Copy .cursor/mcp.json.example to .cursor/mcp.json and run npm run build:mcp:all from the repo root.
Civic data MCP — @inmycity/mcp
Requires Pro, Analyst, or Platform Developer tier. Tools:
search_places— resolveplace_idfrom address or neighborhoodquery_civic_data— per-domain counts for a scope and date rangeget_neighborhood_safety_bundle— multi-domain safety product in one calllist_domains— domain catalog
Resources: API docs index, model cards, source freshness.
Beacon MCP — @inmycity/beacon-mcp
Separate server for the Civic Beacon API. Requires Business tier, a passing fairness audit on the API deployment, and explicit acceptable-use attestation before the server will start.
Read and accept the Beacon acceptable-use policy before setting NMYCITY_BEACON_ATTESTATION=prohibited-use-accepted-v1 in your MCP config (legacy alias: INMYCITY_BEACON_ATTESTATION; REST clients use header X-nMyCity-Attestation, legacy X-InMyCity-Attestation).
Tools:
search_places— resolveplace_idlist_beacon_products— product catalog and attestation requirementsget_place_index— decomposed Neighborhood Trajectory Index + lineageget_place_trajectory— current index + historical valuesget_index_validity— O2 out-of-sample backtest report
REST equivalents: GET /api/v1/beacon/index, /trajectory, /validity. Beacon rate limit: 60 requests/min (Business), 120/min (Enterprise).
Documentation
Rate limits
Responses include X-RateLimit-Limit-Monthly and X-RateLimit-Remaining-Monthly headers. Every payload includes per-domain attribution (source, method, warehouse table).
Packaged products
Neighborhood Safety Bundle v1.1
Crime, fire, FIO, 311, permits, and property assessment counts for a scope and date/fiscal range — one call, full lineage. Available via REST and @inmycity/mcp.
Domains also available individually via GET /api/v1/data/export (Analyst+ CSV download, up to 25k rows) and GET /api/v1/data/query including assessments and city-level payroll.
GET /api/v1/data/products/neighborhood-safety
National Trends bundle
U.S. benchmarks and metro macro for a place — CPI, housing indexes, ACS demographics, FEMA disasters, and optional FBI vs local reconciliation on Analyst+ plans.
GET /api/v1/places/{placeId}/national-trends
Match Filter query API
Ranked block discovery with explainable score decomposition — same engine as the Match Filter product. Explorer Plus unlocks full shortlists; free tier returns a preview.
POST /api/v1/match/query · GET /api/v1/match/templates
Neighborhood Trajectory Index (Beacon)
Decomposed place trajectory score — safety, opportunity, momentum, volatility, and displacement pressure — with provenance, confidence, and prohibited-use notices. Business tier.
REST: GET /api/v1/beacon/index, /trajectory, /validity. MCP: @inmycity/beacon-mcp.
Custom data & connectors
Professional services for Analyst & Platform
Need a jurisdiction we do not cover yet, a bespoke dataset, or a connector into your warehouse or internal stack? We offer scoped onboarding, custom builds, and milestone-based delivery — priced to your requirements.
See custom data & connectors on pricing →