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.1.tar.gz (9.9 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.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: permisapi_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 9.9 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.1.tar.gz
Algorithm Hash digest
SHA256 2591b8d09e0b844e3ca657525c1e9f69596d76de79c02d6f7f6cdf2a29c848b7
MD5 aa69593d6793d708b570a0c89f9d6a07
BLAKE2b-256 26a59b15a0809c03297227657c5a4738d87572da6a9a089b0e4dd674b2f7114e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: permisapi_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 edde22a62be438fa1ea5f6a7ea6ab8ef5bc4c586fa37a4147655a247a4b15854
MD5 b8fe5d4a44ec72688e3522876be9e4bd
BLAKE2b-256 f19cb22846c9eb39778e92f6d72e616aea29828602f7e22f969347f47a8fe4bc

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