
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
@marocain/mcp-server
Advanced tools
Model Context Protocol server for marocain.investments — the {GIN} authored real-estate intelligence (scoring verdict, M-Value, market facts, derived memos) for Morocco. Moat-safe: never exposes agent contact details.
The official Model Context Protocol server for marocain.investments — bringing {GIN}, our authored real-estate intelligence for Morocco, into any MCP client (Claude Desktop, IDEs, agents).
{GIN} is the platform's proprietary scoring DNA. Instead of one blurry "AI score", it speaks with two coherent pillars fused into one honest verdict:
It's the difference between a good property and a good deal — the question generic scores never answer.
No install needed — run it straight from npm:
npx -y @marocain/mcp-server
Add to claude_desktop_config.json:
{
"mcpServers": {
"marocain": {
"command": "npx",
"args": ["-y", "@marocain/mcp-server"]
}
}
}
| Tool | What it does |
|---|---|
search_listings | Search AI-graded Moroccan listings by city, typology, price, rooms, free-text. |
get_listing | Full detail for one listing — price, AI scores, M-Value, trust, provenance, {GIN} pillars. |
get_gin_score | The {GIN} verdict: Quality + Deal pillars + the fused buy/hold/pass headline. |
get_market | Macro market facts for a city or national scope (median price, supply, momentum, catalysts). |
listing_derive | AI-derived one-paragraph investment memo for a listing. |
search_listings({ city: "Marrakech", limit: 1 }) →
{
"count": 1,
"total": 1947,
"limit": 1,
"items": [{
"id": "34da0a53-...",
"url": "https://marocain.investments/listing/34da0a53-...",
"title": "PALAIS D'EXCEPTION À VENDRE – MARRAKECH",
"city": "Marrakech",
"district": "Route de Fès",
"typology": "villa",
"price_usd": 9630000,
"rooms": 6, "surface_m2": 3200
}]
}
get_gin_score({ id }) → the authored verdict:
{
"id": "…",
"title": "…",
"price_usd": 9630000,
"gin_verdict": { "key": "prime_value", "label": "Prime asset, priced to buy", "tone": "strong" },
"gin_quality": 76,
"gin_deal": 64,
"m_value_usd": 9100000,
"trust": { "title_verified": false, "fcr_status": "unknown" }
}
| Symptom | Cause | Fix |
|---|---|---|
request timed out after 30000ms | Upstream slow or unreachable. | Retry. Bump MAROCAIN_TIMEOUT_MS if your network is high-latency. |
The Marocain API returned an error (403) | Rare — Vercel platform-level anti-bot on very bursty traffic. | Back off and retry. Public reads are uncached at the moment. |
The Marocain API returned an error (4xx/5xx) | Upstream issue. | Retry; report if persistent. The full status code is in the server's stderr. |
ignoring disallowed MAROCAIN_API_BASE | You set MAROCAIN_API_BASE to a non-HTTPS or non-allowlisted host. | Leave it unset (the default is correct) or use https://marocain.investments. |
No tool ever returns an agent's phone number or private contact details. The public API hides them, and buyer enquiries are routed only through the platform's own lead flow on the site. You can discover, score and analyse inventory freely — contact happens on-platform.
| Env var | Default | Purpose |
|---|---|---|
MAROCAIN_API_BASE | https://marocain.investments | Override the API origin (testing). |
@hei33enberg/luxury-skills (npm) — the full machine-readable capability catalog this server draws from.https://marocain.investments/api/public/*.# from the repo root, after edits + green tests
npm version patch # or minor / major
npm publish --access public # needs an npm token in .npmrc (gitignored)
git push --follow-tags
MIT © marocain.investments
FAQs
Model Context Protocol server for marocain.investments — the {GIN} authored real-estate intelligence (scoring verdict, M-Value, market facts, derived memos) for Morocco. Moat-safe: never exposes agent contact details.
The npm package @marocain/mcp-server receives a total of 53 weekly downloads. As such, @marocain/mcp-server popularity was classified as not popular.
We found that @marocain/mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.