Skip to main content
Glama
Hug0x0

mcp-local-risk-france

by Hug0x0
README.md
# mcp-local-risk-france

MCP server for French local natural, technological, and industrial risk discovery.

## Scope

French commune-level risk intelligence using Géorisques, administrative references, and open risk datasets.

## Tools

- `local_risk_france_get_sources`
- `local_risk_france_search_data_gouv`
- `local_risk_france_get_dataset`
- `local_risk_france_fetch_source_excerpt`
- `local_risk_france_explain_scope`
- `local_risk_france_list_reference_items`
- `local_risk_france_find_commune`
- `local_risk_france_get_georisques_links`
- `local_risk_france_search_risk_datasets`
- `local_risk_france_commune_brief`
- `local_risk_france_get_radon`
- `local_risk_france_get_seismic_zoning`
- `local_risk_france_address_brief`

## Install

```bash
npm install
npm run build
npm test
npm run dev
```

## Claude Desktop

```json
{
  "mcpServers": {
    "local-risk-france": {
      "command": "npx",
      "args": ["mcp-local-risk-france"]
    }
  }
}
```

## Sources

- Géorisques: https://www.georisques.gouv.fr/
- Géorisques API documentation: https://www.georisques.gouv.fr/doc-api
- Géorisques public data and API access: https://www.georisques.gouv.fr/acceder-la-carte-interactive-aux-bases-de-donnees-et-lapi
- geo.api.gouv.fr: https://geo.api.gouv.fr/
- data.gouv.fr API Géorisques listing: https://www.data.gouv.fr/dataservices/api-georisques

## Example Prompts

- "Find official risk sources for commune 97411."
- "Search data.gouv.fr for PPR and flood-risk datasets."
- "Explain how to combine Géorisques and commune codes."

## Safety

This MCP helps agents discover and summarize public sources. It is not an official authority. For emergency, legal, or administrative decisions, follow the competent public service.

## Glama / Docker

The repo includes `Dockerfile` and `glama.json`.

Publishing notes: [`docs/publishing.md`](docs/publishing.md).

Build steps:

```json
["npm install", "npm run build"]
```

CMD arguments:

```json
["node", "dist/index.js"]
```

## License

MIT

TDQS

A3.6/5.0

Scored across 12 tools

Disambiguation4/5

Tools are mostly distinct: one for sources, two for data.gouv search/inspect, one for fetching excerpts, one for scope explanation, one for reference items, and several for commune-specific risk lookups (find, links, radon, seismic, brief). Slight overlap between search_data_gouv and search_risk_datasets — the latter adds topic+context but they could be confused.

Naming Consistency4/5

All tools share the 'local_risk_france_' prefix, which creates a strong brand and pattern, and most verbs are clear (get, search, find, fetch, list, explain). Minor inconsistency: 'get_georisques_links' vs 'get_seismic_zoning' vs 'get_radon' — the last two target specific data types while the first returns links, but verbs are uniform enough.

Tool Count5/5

12 tools is well within the sweet spot for a domain-specific MCP. Each tool covers a distinct need: navigation, data retrieval, lookup, and briefing. None feel redundant; a few are meta (explain_scope, list_reference_items) but useful for agent onboarding.

Completeness4/5

The surface covers essential workflows: discover sources, search datasets, inspect datasets, resolve communes, fetch official links and specific data (radon, seismic), and generate a brief. Minor gaps: no direct tool to fetch data from a data.gouv dataset (only inspect metadata) and no tool to fetch full source content beyond a short excerpt, but agents can combine tools to achieve this.

Maintenance

ActivityMaintained
ResponsivenessNo issues