{"name":"io.github.cyanheads/fema-mcp-server","slug":"cyanheads-fema-mcp-server","title":null,"description":"Query FEMA disaster declarations, public assistance grants, housing aid, and NFIP claims.","url":"https://mcp.market/server/cyanheads-fema-mcp-server","rating":null,"grade":"A","score":86,"certified":false,"status":"active","category":"other","tags":[],"presence":{"score":34,"stars":1,"forks":0,"downloads_week":148,"last_push_at":"2026-09-19T19:22:11.000Z","license":"Apache-2.0"},"uptime":{"percent":100,"checks":2,"ok":2,"last_checked_at":"2026-09-19T23:11:00.401Z","last_ok_at":"2026-09-19T23:11:00.401Z","latency_ms":279},"claimed":false,"transport":"mixed","callable_via_gateway":true,"default_price_micros":0,"repository":"https://github.com/cyanheads/fema-mcp-server","website":null,"version":"0.2.0","remotes":[{"type":"streamable-http","url":"https://fema.caseyjhand.com/mcp"}],"packages":[{"registryType":"npm","registryBaseUrl":"https://registry.npmjs.org","identifier":"@cyanheads/fema-mcp-server","version":"0.2.0","runtimeHint":"bun","transport":{"type":"stdio"},"packageArguments":[{"value":"run","type":"positional"},{"value":"start:stdio","type":"positional"}],"environmentVariables":[{"description":"Enable the destructive fema_dataframe_drop tool for removing staged canvas data.","format":"string","default":"false","name":"FEMA_ENABLE_CANVAS_DROP"},{"description":"Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').","format":"string","default":"info","name":"MCP_LOG_LEVEL"}]},{"registryType":"npm","registryBaseUrl":"https://registry.npmjs.org","identifier":"@cyanheads/fema-mcp-server","version":"0.2.0","runtimeHint":"bun","transport":{"type":"streamable-http","url":"http://localhost:3010/mcp"},"packageArguments":[{"value":"run","type":"positional"},{"value":"start:http","type":"positional"}],"environmentVariables":[{"description":"Enable the destructive fema_dataframe_drop tool for removing staged canvas data.","format":"string","default":"false","name":"FEMA_ENABLE_CANVAS_DROP"},{"description":"The hostname for the HTTP server.","format":"string","default":"127.0.0.1","name":"MCP_HTTP_HOST"},{"description":"The port to run the HTTP server on.","format":"string","default":"3010","name":"MCP_HTTP_PORT"},{"description":"The endpoint path for the MCP server.","format":"string","default":"/mcp","name":"MCP_HTTP_ENDPOINT_PATH"},{"description":"Authentication mode to use: 'none', 'jwt', or 'oauth'.","format":"string","default":"none","name":"MCP_AUTH_MODE"},{"description":"Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').","format":"string","default":"info","name":"MCP_LOG_LEVEL"}]}],"tools":[{"name":"fema_dataframe_describe","description":"List tables and column schemas on a DataCanvas staged by fema_search_nfip. Call this before fema_dataframe_query to discover the exact table name, column names, and DuckDB data types needed to write valid SQL. Row count reflects what was actually staged — check truncated in the fema_search_nfip response to know whether the canvas holds the full matching set.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"canvas_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{10}$","description":"Canvas ID from the fema_search_nfip response."}},"required":["canvas_id"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"fema_dataframe_query","description":"Run a read-only SQL SELECT against a DataCanvas table staged by fema_search_nfip. Enables aggregation, GROUP BY, SUM/COUNT, time-series, and filtered analysis over the full NFIP claims result without re-fetching from the API. Call fema_dataframe_describe first to get the exact table name and column names needed for valid SQL. Only SELECT statements are allowed — DDL, DML, COPY, and file-reading functions are blocked.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"canvas_id":{"type":"string","pattern":"^[A-Za-z0-9_-]{10}$","description":"Canvas ID from the fema_search_nfip response (the canvas_id field)."},"query":{"type":"string","description":"SQL SELECT statement to run against the staged table. Use the table name from fema_dataframe_describe. Results are capped at the canvas row limit; append LIMIT/OFFSET to page through additional rows, or aggregate (GROUP BY, COUNT, SUM) to summarize the full set in one query. Example: \"SELECT year_of_loss, COUNT(*) AS claims, SUM(amount_paid_building) AS total_building_paid FROM df_nfip_abc123 GROUP BY year_of_loss ORDER BY year_of_loss\""}},"required":["canvas_id","query"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"fema_get_disaster","description":"Fetch all designated-area rows for a specific FEMA disaster by disaster number (e.g., 4781). Returns every county/municipality designated under the declaration along with programs activated, incident period, and state info. Use fema_search_disasters to find disaster numbers. The returned disaster_number chains to fema_get_public_assistance and fema_get_housing_assistance.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"disaster_number":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"FEMA disaster number (e.g., 4781). Obtain from fema_search_disasters."}},"required":["disaster_number"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"fema_get_housing_assistance","description":"Retrieve Individual Assistance (IA) housing data for a disaster by disaster number. Returns owner and/or renter breakdowns by county and ZIP code — valid registrations, total approved IHP amounts, repair/rental amounts, and inspection data. Use type to select owners, renters, or both (default). Use disaster_number from fema_search_disasters.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"disaster_number":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"FEMA disaster number. Obtain from fema_search_disasters."},"state":{"description":"Two-letter state code to narrow results when a disaster spans multiple states.","type":"string","minLength":2,"maxLength":2},"type":{"default":"both","description":"Which housing assistance dataset to query: owners, renters, or both (default).","type":"string","enum":["owners","renters","both"]},"limit":{"default":100,"description":"Maximum records per dataset to return (default 100).","type":"integer","minimum":1,"maximum":1000},"offset":{"default":0,"description":"Pagination offset (default 0).","type":"integer","minimum":0,"maximum":9007199254740991}},"required":["disaster_number"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"fema_get_public_assistance","description":"Retrieve Public Assistance (PA) funded project records for a disaster or state — shows where federal recovery money was obligated. Returns applicant, damage category, project size and status, federal share obligated, and total obligated amounts. Either disaster_number or state must be provided. Use disaster_number (from fema_search_disasters) to scope to a single declaration, or state to browse all PA projects for a state. PA projects are created only when the PA program is declared (pa_declared: true on the disaster).","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"disaster_number":{"description":"FEMA disaster number to scope results to a single declaration.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"state":{"description":"Two-letter state code to browse all PA projects for a state.","type":"string","minLength":2,"maxLength":2},"county":{"description":"Filter by county name substring.","type":"string"},"limit":{"default":100,"description":"Maximum number of projects to return (1–1000, default 100).","type":"integer","minimum":1,"maximum":1000},"offset":{"default":0,"description":"Pagination offset (default 0).","type":"integer","minimum":0,"maximum":9007199254740991}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"fema_query_dataset","description":"Generic OData query against any OpenFEMA v2 dataset — the escape hatch for datasets the convenience tools do not cover (e.g., FimaNfipPolicies, IndividualAssistanceHousingRegistrantsLargeDisasters, FemaWebDeclarationAreas, PublicAssistanceApplicants). Accepts raw OData filter, select, orderby, and pagination parameters. For NFIP Policies, use propertyState (not state) as the state field — always include a county or ZIP filter to avoid timeout. The dataset name must match the exact OpenFEMA v2 entity name (case-sensitive, e.g., FimaNfipClaims). Unknown dataset names return an unknown_dataset error.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"dataset":{"type":"string","minLength":1,"description":"OpenFEMA v2 dataset entity name (case-sensitive, e.g., FimaNfipPolicies, FemaWebDeclarationAreas, PublicAssistanceApplicants)."},"filter":{"description":"OData $filter expression (e.g., \"state eq 'TX' and declarationDate ge '2024-01-01T00:00:00.000Z'\"). String values in single quotes.","type":"string"},"select":{"description":"Comma-separated field names to return (e.g., \"disasterNumber,state,declarationDate\").","type":"string"},"orderby":{"description":"OData $orderby expression (e.g., \"declarationDate desc\").","type":"string"},"limit":{"default":100,"description":"Maximum records to return (1–10000, default 100).","type":"integer","minimum":1,"maximum":10000},"offset":{"default":0,"description":"Pagination offset (default 0).","type":"integer","minimum":0,"maximum":9007199254740991}},"required":["dataset"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"fema_search_disasters","description":"Search federal disaster declarations by state, incident type, declaration type, date range, and county. Returns deduplicated declaration-level summaries — each disaster number appears once with a designatedAreaCount showing how many counties/municipalities were designated. The disaster number is the chain key for fema_get_disaster, fema_get_public_assistance, and fema_get_housing_assistance. Use declaration_type to filter: DR (major disaster, most common), EM (emergency), FM (fire management). Date filters apply to the declaration date. Use fema_get_disaster to retrieve all designated-area rows for a specific declaration.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"state":{"description":"Two-letter US state/territory code (e.g., TX, CA, FL, PR). Filters by state.","type":"string","minLength":2,"maxLength":2},"incident_type":{"description":"Incident type filter (e.g., Flood, Hurricane, Tornado, Fire, Earthquake, Severe Storm). Case-insensitive substring match.","type":"string"},"declaration_type":{"description":"Declaration type: DR (major disaster declaration), EM (emergency declaration), FM (fire management assistance declaration).","type":"string","enum":["DR","EM","FM"]},"date_from":{"description":"Start of declaration date range in ISO 8601 format (e.g., 2024-01-01). Inclusive.","type":"string"},"date_to":{"description":"End of declaration date range in ISO 8601 format (e.g., 2024-12-31). Inclusive.","type":"string"},"county":{"description":"Filter by designated area / county name substring (e.g., Harris, Los Angeles). Case-insensitive.","type":"string"},"limit":{"default":50,"description":"Maximum number of unique disaster declarations to return (1–1000, default 50).","type":"integer","minimum":1,"maximum":1000},"offset":{"default":0,"description":"Pagination offset in declarations (default 0). Use with limit to page through results.","type":"integer","minimum":0,"maximum":9007199254740991}},"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}},{"name":"fema_search_nfip","description":"Search National Flood Insurance Program (NFIP) claims data by state, county, ZIP code, and year range. Returns claim counts, amounts paid on building and contents, flood zones, and loss years. state is required — the full NFIP dataset is 2.7 million rows; unfiltered access is prohibited. When DataCanvas is enabled (CANVAS_PROVIDER_TYPE=duckdb) and results exceed the inline preview, the full result set is staged on a canvas for SQL aggregation via fema_dataframe_query. Use fema_dataframe_describe to inspect the staged table schema before writing SQL. Without canvas, results are returned inline up to the limit.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"state":{"type":"string","minLength":2,"maxLength":2,"description":"Two-letter US state code (required). NFIP dataset is 2.7M rows — state filter is mandatory."},"county_code":{"description":"County code to narrow results within the state. Accepts the full 5-digit state+county FIPS (e.g., 48201 for Harris County TX) or the 3-digit county portion (e.g., 201) when state is provided — the server prepends the state FIPS automatically.","type":"string"},"zip_code":{"description":"ZIP code to narrow results to a specific area (5-digit, e.g., 77002).","type":"string","pattern":"^\\d{5}$"},"year_from":{"description":"Start year of loss, inclusive (e.g., 2020).","type":"integer","minimum":1970,"maximum":2100},"year_to":{"description":"End year of loss, inclusive (e.g., 2023).","type":"integer","minimum":1970,"maximum":2100},"limit":{"default":1000,"description":"Maximum claim rows to return in the inline preview (1–10000, default 1000). When DataCanvas is enabled, the canvas stages the full matching result set regardless of this value.","type":"integer","minimum":1,"maximum":10000},"canvas_id":{"description":"Optional canvas ID from a prior call. Omit to create a fresh canvas. The response returns the canvas_id to pass to fema_dataframe_query.","type":"string","pattern":"^[A-Za-z0-9_-]{10}$"}},"required":["state"],"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false}}],"scan":{"score":86,"grade":"A","scanned_at":"2026-09-19T20:35:50.698Z","report":{"scannerVersion":"0.1.6","scannedAt":"2026-09-19T20:35:50.636Z","components":{"code":{"score":25,"max":25,"notes":["34 source files scanned","34 source files scanned"]},"reliability":{"score":20,"max":20,"notes":["remote reachable in 1327ms"]},"poisoning":{"score":15,"max":15,"notes":["8 tool descriptions checked"]},"auth":{"score":3,"max":15,"notes":["open endpoint exposes 1 write-action tools with no auth"]},"maintenance":{"score":15,"max":15,"notes":["last push 0 days ago"]},"identity":{"score":8,"max":10,"notes":["registry namespace matches repository owner","GitHub account older than a year"]}},"findings":[{"id":"auth.open-write","severity":"high","component":"auth","title":"Write-action tools reachable without authentication"}],"inputs":{"probes":[{"url":"https://fema.caseyjhand.com/mcp","reachable":true,"authRequired":false,"latencyMs":1327,"serverInfo":{"name":"fema-mcp-server","version":"0.2.0"}}],"packages":[{"registryType":"npm","identifier":"@cyanheads/fema-mcp-server","version":"0.2.0","found":true,"license":"Apache-2.0","hasInstallScripts":false,"dependencyCount":4,"publishedAt":"2026-09-19T19:23:14.327Z","repositoryUrl":"git+https://github.com/cyanheads/fema-mcp-server.git","weeklyDownloads":74},{"registryType":"npm","identifier":"@cyanheads/fema-mcp-server","version":"0.2.0","found":true,"license":"Apache-2.0","hasInstallScripts":false,"dependencyCount":4,"publishedAt":"2026-09-19T19:23:14.327Z","repositoryUrl":"git+https://github.com/cyanheads/fema-mcp-server.git","weeklyDownloads":74}],"repo":{"found":true,"owner":"cyanheads","repo":"fema-mcp-server","archived":false,"pushedAt":"2026-09-19T19:22:11Z","stars":1,"forks":0,"openIssues":8,"ownerType":"User","ownerAvatarUrl":"https://avatars.githubusercontent.com/u/10339515?v=4","ownerCreatedAt":"2014-12-29T13:01:12Z","license":"Apache-2.0"},"icon":{"url":"https://avatars.githubusercontent.com/u/10339515?v=4&s=128","source":"github"},"presence":{"stars":1,"forks":0,"downloadsWeek":148,"license":"Apache-2.0","lastPushAt":"2026-09-19T19:22:11.000Z","score":34}}}},"grade_history":[],"reviews":[]}