Skip to main content

MCP server pour PermisAPI : permettez a Claude / ChatGPT / Cursor de consulter les permis de construire France en langage naturel.

Project description

permisapi-mcp

Serveur MCP (Model Context Protocol, Anthropic) pour PermisAPI.

Permet à Claude Desktop, Cursor, Windsurf ou tout client MCP-compatible de consulter les 311 000 permis de construire France en langage naturel.

Installation

pip install permisapi-mcp

Vous avez besoin d'une clé API PermisAPI (gratuite pour commencer) : https://permisapi.fr/#pricing

Configuration Claude Desktop

Éditez ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) ou %APPDATA%\Claude\claude_desktop_config.json (Windows) :

{
  "mcpServers": {
    "permisapi": {
      "command": "permisapi-mcp",
      "env": {
        "PERMISAPI_KEY": "pk_live_VOTRE_CLE"
      }
    }
  }
}

Redémarrez Claude Desktop. Vous pouvez maintenant demander :

« Liste les permis de logement déposés à Bordeaux ce mois avec un score MDB > 70 »

« Trouve-moi des opportunités MDB autour de la rue de Passy à Paris »

« Quel est le zonage PLU du permis PC07404021K1 ? »

Configuration Cursor / Windsurf / autres clients

Voir le guide complet : https://permisapi.fr/mcp

Tools disponibles (6)

Tool Endpoint Plan requis
search_permits GET /v1/permits Free
get_permit_details GET /v1/permits/{num_pa} Free
find_dvf_neighbors GET /v1/permits/{num_pa}/dvf Pro
get_mdb_score GET /v1/permits/{num_pa}/score Pro
get_plu_zoning GET /v1/permits/{num_pa}/plu Pro
get_risks GET /v1/permits/{num_pa}/risks Pro

Sécurité

  • La clé API reste côté user (env var locale, jamais transmise au LLM)
  • Le LLM voit uniquement les arguments des tools (pas la clé)
  • Validation stricte des inputs (regex sur num_pa, ranges Pydantic)
  • Pas de side-effects : tous les tools sont read-only (GET uniquement)

Licence

MIT.

Support

evan@permisapi.fr — réponse 24-72h.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

permisapi_mcp-0.2.2.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

permisapi_mcp-0.2.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file permisapi_mcp-0.2.2.tar.gz.

File metadata

  • Download URL: permisapi_mcp-0.2.2.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for permisapi_mcp-0.2.2.tar.gz
Algorithm Hash digest
SHA256 700cdeef2bf7d7e5dea9896440b4f3bf1ff0df6f1f826eb120fe5cc5fe71fe71
MD5 e51dbfa4a6e58cbd0286f7c9d963f658
BLAKE2b-256 4d4c959cf7350d3f96c2607e09cba8cc4f6079575606097a2ade2cacedf7d80f

See more details on using hashes here.

File details

Details for the file permisapi_mcp-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: permisapi_mcp-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for permisapi_mcp-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ecdcaea138872fe41fce02f483fed0b5be1e4c687028380dbf0fff9725d639d7
MD5 c70878ba6f575299289c091db83f3be3
BLAKE2b-256 98c4a8ec96a7e0ee9131d86977f49d09d0e8d3074c7b65dbdc2ae2318dc042d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page