MCP server
The same tools over the Model Context Protocol, for any MCP client and any model.
The MCP server is anonymous and read-only. It runs no model: the client brings its own.
Connect
- Streamable HTTP:
http://localhost:3070/mcp(or<your base URL>/mcpwhen hosted). - stdio: run
pnpm mcp:stdiofrom the repository root, or point your client at it:
{
"mcpServers": {
"alghafat-market": {
"command": "pnpm",
"args": ["--dir", "/path/to/repo", "mcp:stdio"]
}
}
}A client that only speaks stdio can also reach the HTTP endpoint through a bridge such as mcp-remote.
What it serves
- Tools:
market_snapshot,area_price_trend,compare_areas,market_map,rent_options,rental_yield,affordability,rent_vs_buy,offplan_cashflowandrenewal_check. All carryreadOnlyHint. - Results:
structuredContentwith the full output (charts as ChartSpec, maps as MapSpec plus GeoJSON) and a text version with the summary, a table for maps, notes, the source and the attribution. - Resource:
methodology://alghafat-market, a short methodology in Markdown.
Actions and personal data never reach the MCP server: send_brief and plan live only in the chat.
Smoke test
pnpm --filter @alghafat-market/cli mcp-smoke http://localhost:3070/mcp
pnpm --filter @alghafat-market/cli mcp-smoke stdioIt connects with the official MCP TypeScript client, lists the tools, calls compare_areas and reads the methodology resource.
REST API
Every public tool as a JSON endpoint, with an OpenAPI 3.1 document generated from the same schemas.
Tool reference
Generated from the zod schemas that every surface validates with.
Code: Apache-2.0. Original docs text and diagrams: CC BY 4.0. Excluded from both: data, figures and charts derived from DLD or Data.Dubai (governed by DATA_LICENSE.md and any DLD grant); EIBOR values (CBUAE terms); third-party names and logos; and the product and operator names and logos (no trademark licence).
The default data is SYNTHETIC – not Dubai data. Nothing here is financial, legal or investment advice.