Skip to main content
Glama
mcp-commune-france
by Hug0x0

mcp-commune-france

用于法国市镇信息的 MCP 服务器:geo.api.gouv.fr、邮政编码、省、大区以及数据集发现。

工具

运行 MCP 并首先调用 commune_france_get_sources 以检查数据源覆盖范围。该服务器还提供针对上述主题的领域专属工具。

Related MCP server: mcp-data-gouv-fr

安装

npm install
npm run build
npm test
npm run dev

Claude Desktop

{
  "mcpServers": {
    "commune-france": {
      "command": "npx",
      "args": ["mcp-commune-france"]
    }
  }
}

数据源

发布

参见 docs/publishing.md。

Glama / Docker

该仓库包含 Dockerfile 和 glama.json。

构建步骤:

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

CMD 参数:

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

安全

此 MCP 帮助智能体发现并总结公共数据源。它并非官方权威机构。请以主管公共服务部门或原始数据生产者的信息为准来核验自己的判断。

许可证

MIT

Available Tools

5 tools
commune_france_fetch_source_excerptB

Fetch a short text excerpt from a curated source by index or title keyword.

Inputs: source_key (required), max_chars.

commune_france_find_communeA

Resolve French communes by name, INSEE code, or postal code using geo.api.gouv.fr.

Inputs: query (required), limit.

commune_france_get_sourcesA

List curated sources used by this MCP.

Inputs: no named parameters.

commune_france_list_department_communesB

List communes in a French department using geo.api.gouv.fr.

Inputs: department_code (required).

commune_france_profileB

Build a source-oriented commune profile with geo identity and suggested public-data queries.

Inputs: code_insee (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a distinct purpose: source list, source excerpt, commune resolution, department listing, and profile building. No overlap exists between finding a specific commune and listing all communes in a department, and the profile combines earlier data without redundancy.

    Naming Consistency5/5

    All tools share the 'commune_france_' prefix and follow a verb_noun pattern (get, fetch, find, list, profile). The only deviation is 'profile' as a noun, but it functions as a verb-like action and remains uniform with the prefix, making the pattern predictable.

    Tool Count5/5

    Five tools is well within the optimal range for a focused server. Each tool covers a discrete part of the domain—sources and commune data—without unnecessary expansion or redundancy.

    Completeness5/5

    The server covers its stated purpose completely: retrieving source metadata, fetching excerpts, resolving communes, listing department communes, and building a composite profile. There are no obvious missing operations for a read-only, data-retrieval service.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables discovery and inspection of French public open data on data.gouv.fr, including datasets, resources, organizations, and dataservices via natural language.
      9
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables discovery and navigation of French overseas territories public data across national and local open-data portals, with tools to search datasets, list territories and communes, and fetch source excerpts via official French government APIs.
      10
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables discovery and summarization of public French transport data, including datasets, GTFS resources, regions, networks, and data-quality information, via transport.data.gouv.fr.
      5
      MIT