Real Estate Capitale
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Real Estate Capitale find 3-bedroom apartments in Rabat under 1.5M MAD"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Real Estate Capitale — MCP Server
MCP server for real estate search, property valuation, market analysis, and lead management in Rabat, Salé, and Témara, Morocco.
Quick Start
# Install
npm install
# Set database URL
cp .env.example .env
# Edit .env with your PostgreSQL connection string
# Start stdio server (for Claude Desktop, opencode, Cursor)
npm start
# Or start HTTP/SSE server
npm start:httpRelated MCP server: pdf-mcp
17 Tools
Tool | Description |
| Search properties with filters (type, location, budget, surface, rooms) |
| Get full listing details by ID |
| Estimate property value by quartier and surface |
| Price trends over time by quartier |
| Aggregated stats per quartier (price/m², count) |
| List all available quartiers |
| List all available cities |
| Create a lead (contact client) |
| Find similar listings for valuation |
| Identify undervalued properties |
| Price/m² analysis with distribution |
| Rental yield by quartier |
| 90-day price predictions |
| Compare two quartiers side-by-side |
| Detect outlier pricing |
| Market liquidity index |
| Agency ranking by volume |
Transports
stdio (local)
node bin/mcp-serverFor Claude Desktop, opencode, Cursor — reads JSON-RPC from stdin, writes to stdout.
HTTP/SSE (remote)
node bin/mcp-server-http
# Listens on port 3001Endpoints:
GET /— Server info (Streamable HTTP discovery)POST /— Synchronous JSON-RPCGET /sse— SSE streamPOST /messages?sessionId=...— SSE session messagesGET /health— Health check
Configuration
Claude Desktop
Copy config/claude-desktop.json to your Claude Desktop MCP config, or add to claude_desktop_config.json:
{
"mcpServers": {
"realestatecapitale": {
"command": "node",
"args": ["/path/to/rabatrealestate/bin/mcp-server"],
"env": {
"DATABASE_URL": "postgresql://user:pass@localhost:5432/mubawab"
}
}
}
}opencode
{
"mcp": {
"realestatecapitale": {
"type": "local",
"command": ["node", "bin/mcp-server"],
"env": { "DATABASE_URL": "..." }
}
}
}Remote (HTTP)
{
"mcp": {
"realestatecapitale": {
"type": "remote",
"url": "https://realestatecapitale.ma/mcp"
}
}
}Query Tool
# List tools
node bin/query "tools/list"
# Call a tool
node bin/query 'tools/call {"name":"list_villes","arguments":{}}'
# Query remote server
MCP_URL=https://realestatecapitale.ma/mcp node bin/query "tools/list"Testing
npm testArchitecture
┌─────────────┐ stdio ┌──────────────┐
│ Claude Desktop│ ◄──────────── │ bin/mcp-server│
│ opencode │ │ (stdio) │
└─────────────┘ └──────┬───────┘
│
┌─────────────┐ HTTP/SSE ┌──────┴───────┐
│ Remote AI │ ◄──────────── │ bin/mcp- │
│ clients │ │ server-http │
└─────────────┘ │ (port 3001) │
└──────┬───────┘
│
┌──────┴───────┐
│ src/core/ │
│ mcp-core.js │
│ (17 tools) │
└──────┬───────┘
│
┌──────┴───────┐
│ PostgreSQL │
│ (mubawab) │
└──────────────┘License
MIT
Available Tools
17 toolscreate_leadBInspect
Creer un lead (contact client) pour prise de rendez-vous ou demande d'information
Inputs: name (required), phone (required), source, listingId.
estimate_propertyBInspect
Estimer la valeur d'un bien immobilier (prix au m², fourchette basse/haute)
Inputs: type (required), surface (required), quartier (required), etat, +4 more.
get_agency_leaderboardCInspect
Classement des agences immobilieres par volume d'annonces
Inputs: limit.
get_comparablesBInspect
Trouver les annonces les plus similaires a un bien donne (pour evaluation ou estimation)
Inputs: listingId (required).
get_investor_alertsCInspect
Identifier les biens sous-evalues (opportunites d'investissement avec discount)
Inputs: page, status, pageSize, minSample, +1 more.
get_liquidityBInspect
Indice de liquidite du marche par quartier (taux de rotation, stock, delai de vente)
Inputs: status, quartier.
get_listingBInspect
Obtenir le détail complet d'un bien immobilier par son ID
Inputs: id (required).
get_market_predictionsBInspect
Previsions de prix a 90 jours par quartier (regression lineaire)
Inputs: months, status, quartier.
get_market_trendsBInspect
Obtenir les tendances du marche immobilier par quartier (variation de prix sur N mois)
Inputs: months, status.
get_price_analyticsCInspect
Analyser les prix au m² par quartier avec tendances et distribution
Inputs: page, location, pageSize, priceMax, +3 more.
get_quartier_comparisonBInspect
Comparer deux quartiers cote-a-cote (prix m², nombre d'annonces, volatilite)
Inputs: q1 (required), q2 (required), status.
get_quartier_statsBInspect
Obtenir les statistiques agregees par quartier (prix m² moyen, nombre d'annonces)
Inputs: transaction.
get_rental_yieldCInspect
Obtenir le rendement locatif brut par quartier (comparatif achat vs location)
Inputs: quartier.
get_suspicious_listingsBInspect
Detecter les annonces avec des prix anormaux (IQR outliers, scores de severite)
Inputs: page, status, pageSize, minSample, +2 more.
list_quartiersAInspect
Lister tous les quartiers disponibles avec leur ville
Inputs: no named parameters.
list_villesBInspect
Lister toutes les villes disponibles
Inputs: no named parameters.
search_listingsCInspect
Rechercher des biens immobiliers avec filtres (transaction, location, budget, surface, pieces, type de bien, mot-cle)
Inputs: q, page, sort, location, +9 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools are clearly distinct (search, estimate, comparables, liquidity, leaderboard), but a cluster of quartier-level analytics tools overlap: get_quartier_stats, get_price_analytics, and get_market_trends all return price-per-m² by quartier, and get_market_predictions adds a further price-forecast variant. The descriptions differentiate the outputs somewhat, but an agent could easily misselect within that group.
Every tool follows a consistent snake_case verb_noun pattern (get_, list_, search_, estimate_, create_), with the noun naming the resource (listing, quartier, market_trends, rental_yield). No style mixing or camelCase outliers.
At 17 tools the surface is slightly heavy but each one maps to a distinct analytic question (comparable search, outlier detection, yield, liquidity, predictions), so nothing feels redundant. It sits just above the comfortable 3-15 range rather than being bloated.
Search and analytics coverage is rich, but the listing lifecycle is read-only (no create/update_listing) and the single lead tool, create_lead, has no companion to retrieve or update leads, creating a dead end. Core read workflows work; write/management workflows are notably thin.
Maintenance
Related MCP Connectors
MCP server for real-estate agents: listings, CRM, German market data and AI media tools.
MCP server for SmartAgent CRM: leads, tasks, sales pipelines, property listings
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for querying Israeli government real estate data, enabling property deal searches, market trend analysis, and address retrieval.4MIT
- AlicenseNot gradedqualityNot gradedmaintenanceMCP server for generating PDF reports on real estate properties. Supports location analysis, market reports, and project summaries.Mozilla Public 2.0
- FlicenseNot gradedqualityBmaintenanceRemote MCP server for Saudi real estate data from Kite (kite.sa): live rent and sale listings from 20+ Saudi sources, price checks against comparable listings, neighborhood stats, rental yield and development projects. Connect at https://mcp.kite.sa/mcp with OAuth sign-in.1-
- AlicenseNot gradedqualityCmaintenanceMCP server for real estate agents with 12 tools covering floor plans, virtual tours, property descriptions (EN/FR), price estimation, property comparison, staging suggestions, neighborhood analysis, 3D previews, French DPE energy diagnostic, and live DVF transaction data.19 npmMIT