DVF Paris
An MCP app that displays interactive Paris real estate price statistics per arrondissement inside Claude, with map, comparison, and address search.
README
DVF Paris — MCP App
An interactive MCP App that displays Paris real estate prices per arrondissement, directly inside Claude.
Built with the MCP Apps SDK (@modelcontextprotocol/ext-apps).

What it does
Ask Claude about Paris real estate prices and get an interactive widget with:
- Fullscreen mode (v0.8): split layout with map (60%) and info panel (40%), interactive search
- Interactive map (Leaflet + OpenStreetMap) highlighting the arrondissement
- Choropleth sections (v0.6): cadastral sections colored by median price, clickable for details
- Price stats: average price/m², median price/m², number of sales
- Apartments / Houses toggle
- Comparison mode: compare two arrondissements side-by-side with a bar chart
- Address search (v0.5): search by address and get stats for the cadastral section
- UI-driven search (v0.8): search addresses and browse arrondissements directly from the widget
Data source: DVF (Demandes de Valeurs Foncieres) from data.gouv.fr.
Architecture
Claude MCP Server UI (iframe)
│ │ │
│── "prix Paris 11" ──────>│ │
│ │── get-dvf-stats ───────>│
│ │ structuredContent │── Map + Stats
│ │ │
│── "compare 6e vs 11e" ──>│ │
│ │── compare-dvf-stats ───>│
│ │ mode: "compare" │── Map + Bar chart
│ │ │
│── "prix rue Roquette" ──>│ │
│ │── search-dvf-address ──>│
│ │ mode: "address" │── Map + Marker + Compare
- Claude calls
get-dvf-stats,compare-dvf-statsorsearch-dvf-address - The tool returns data + a reference to
ui://dvf/mcp-app.html - Claude fetches the resource and displays it in a sandboxed iframe
- The UI receives data via
app.ontoolresult
MCP Tools
| Tool | Input | Output |
|---|---|---|
get-dvf-stats |
arrondissement (1-20) |
Price stats for one arrondissement |
compare-dvf-stats |
arrondissement_1, arrondissement_2 (1-20) |
Side-by-side comparison with bar chart |
search-dvf-address |
adresse (string) |
Stats for cadastral section + comparison with arrondissement |
Stack
| Component | Technology |
|---|---|
| MCP Apps SDK | @modelcontextprotocol/ext-apps |
| MCP Server | @modelcontextprotocol/sdk |
| Build | Vite + TypeScript |
| UI | Vanilla JS |
| Map | Leaflet + OpenStreetMap (no API key needed) |
| Charts | Pure SVG (no dependencies) |
| Transport | stdio (Claude Desktop) or Streamable HTTP |
External APIs
| API | Usage |
|---|---|
| MCP data.gouv | Real-time DVF stats |
| API Géoplateforme | Address geocoding |
| cadastre.data.gouv.fr | Cadastral section geometries (GeoJSON) |
Setup
npm install
npm run build
Claude Desktop configuration
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"dvf-paris": {
"command": "bash",
"args": ["-c", "cd /path/to/dvf-mcp-app && npx tsx main.ts --stdio"]
}
}
}
Then restart Claude Desktop.
Development
# Watch mode (UI hot reload + server)
npm run dev
# Build only
npm run build
# Run server (Streamable HTTP on port 3001)
npm run serve
Project structure
dvf-mcp-app/
├── server.ts # MCP Server + Tools + Resource
├── main.ts # Entry point (stdio + HTTP)
├── mcp-app.html # UI shell (HTML)
├── src/
│ ├── mcp-app.ts # UI logic (map, chart, host communication)
│ ├── mcp-app.css # Widget styles
│ ├── api/ # External API clients
│ │ ├── cadastre.ts # Cadastre GeoJSON client
│ │ ├── data-gouv.ts # MCP data.gouv client
│ │ └── geoplateforme.ts # Geocoding client
│ └── data/
│ ├── dvf-paris.json # Pre-computed stats (fallback)
│ └── arrondissements.geojson.json # GeoJSON boundaries
├── package.json
├── tsconfig.json
└── vite.config.ts
Roadmap
- [x] v0.1 — Basic stats widget
- [x] v0.2 — Interactive map with Leaflet
- [x] v0.3 — Comparison mode (2 arrondissements)
- [x] v0.4 — Real-time data via data.gouv.fr API (with JSON fallback)
- [x] v0.5 — Address search with cadastral section stats
- [x] v0.6 — Choropleth cadastral sections (clickable, color-coded by price)
- [ ] v0.7 — Link to recent transactions (optional)
- [x] v0.8 — Fullscreen mode with interactive search (split layout, callServerTool)
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。