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.3.0.tar.gz (11.3 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.3.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: permisapi_mcp-0.3.0.tar.gz
  • Upload date:
  • Size: 11.3 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.3.0.tar.gz
Algorithm Hash digest
SHA256 7247081aacba6e4aa8a5023cd6122aa768f938170a56c76a1106e491ab1c0a53
MD5 3300d72d7f514e6f0fc00726a56e6dfd
BLAKE2b-256 f3c6aee02604fb8d290de8f45ac2ffe40f1cbc8863dbae5af9457e9850d918d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: permisapi_mcp-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3aac1c4c8c92783188a30094ec817b7775cb45bac7cf073636c480d41a1daf1
MD5 bb1438b00d9350f6541d30eddb5259f4
BLAKE2b-256 134eb2547ff99e001b862c8973d7a81f236a908140e6eeefd7d90c404ea59d3f

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