Open Emirates Intelligence

Open Emirates Intelligence

Provides source-cited access to official UAE open data through any MCP client, with PII redaction and SSRF protection built in.

Category
访问服务器

README

<p align="center"> <img src="docs/assets/hero.svg" alt="Open Emirates Intelligence" width="900"> </p>

<h1 align="center">Open Emirates Intelligence</h1>

<p align="center"> <a href="https://github.com/ahmedvnabil/uaemcp/actions/workflows/ci.yml"><img src="https://github.com/ahmedvnabil/uaemcp/actions/workflows/ci.yml/badge.svg" alt="CI"></a> <a href="https://www.npmjs.com/package/uaemcp"><img src="https://img.shields.io/npm/v/uaemcp?logo=npm" alt="npm version"></a> <a href="https://www.npmjs.com/package/uaemcp"><img src="https://img.shields.io/npm/dm/uaemcp?logo=npm" alt="npm downloads"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT"></a> <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-server-000000" alt="MCP"></a> <a href="pyproject.toml"><img src="https://img.shields.io/badge/python-3.11%2B-3776AB?logo=python&logoColor=white" alt="Python"></a> <a href="ts"><img src="https://img.shields.io/badge/TypeScript-3178C6?logo=typescript&logoColor=white" alt="TypeScript"></a> </p>

<p align="center"><em>Official UAE open data, as MCP tools any agent can call — hosted or self-hosted.</em></p>

<p align="center"> <img src="docs/assets/demo.gif" alt="npx uaemcp — live terminal demo" width="760"> </p>

A standalone MCP server that gives any MCP client (Claude Desktop, Claude Code, Cursor) source-cited access to official UAE open data — with direct-contact PII redacted, every server-side fetch SSRF-guarded, and both stdio and HTTP transports in one package.

It is self-contained: no dependency on any private or sibling service. Ships in two flavors: a Python implementation (this directory) and a TypeScript / npm port (ts/) published as uaemcp.


Two ways to use it

Open source under the MIT license — use the instance we host, or run your own.

1. Use our hosted instance — zero setup

A public instance is live at https://uaemcp.zad.tools. Point any MCP client at its endpoint — nothing to install:

{
  "mcpServers": {
    "uae-intelligence": {
      "type": "http",
      "url": "https://uaemcp.zad.tools/mcp"
    }
  }
}

Or just open the dashboard: https://uaemcp.zad.tools

2. Self-host it — run your own, anywhere

  • npm, no install: npx uaemcp (stdio) · npx uaemcp http (HTTP at /mcp)
  • Docker: docker build -t uaemcp . && docker run -p 8080:8080 uaemcp uaemcp http
  • From source: clone this repo (Python below, or the TypeScript port in ts/)

Self-hosting gives you full control: add your own sources, set a write token, and keep every fetch on your own infrastructure.


Quickstart

Fastest — via npm (no install)

npx uaemcp            # stdio MCP server
npx uaemcp http       # Streamable-HTTP server at /mcp

Local (stdio) — for an MCP client

The published npm package is the easiest way to run it in a client:

{
  "mcpServers": {
    "uae-intelligence": { "command": "npx", "args": ["-y", "uaemcp"] }
  }
}

To run the Python implementation from source instead:

pip install -e .
uaemcp stdio

Remote (HTTP) — landing page + REST + MCP endpoint

uaemcp http --host 0.0.0.0 --port 8080
  • Landing page: http://localhost:8080/
  • REST API: http://localhost:8080/api/v1/...
  • MCP (Streamable): http://localhost:8080/mcp
  • Liveness/readiness: /healthz, /readyz (cheap — no upstream calls)

Showcase

The hosted dashboard is bilingual (EN / العربية) and styled with the official Dubai Font:

<p align="center"> <img src="docs/assets/landing-en.png" alt="Landing page (English)" width="49%"> <img src="docs/assets/landing-ar.png" alt="Landing page (Arabic, RTL)" width="49%"> </p>

Interactive API docs — Dubai-Font-themed Swagger UI at /docs:

<p align="center"> <img src="docs/assets/swagger.png" alt="Dubai-Font Swagger UI" width="90%"> </p>

Tools

Tool Kind Description
uae_sources_list read List every registered official source
uae_source_get read Full metadata for one source
uae_source_health read Live, timeout-bounded health probe
uae_source_records read Live, redacted, cited records
uae_market_snapshot read Counts by emirate / area / product
uae_dashboard_summary read Concurrent, cached health across all sources
uae_source_add_metadata write Add a metadata source (token required)

Every data-returning tool wraps results in { ok, data, error, meta } and attaches source_id, license, and citation.

Usage examples

Ask your MCP client (natural language)

Once connected, just ask — the client picks the right tool:

  • "List UAE industrial factories licensed in Abu Dhabi."uae_source_records
  • "Give me a market snapshot of UAE industry by emirate."uae_market_snapshot
  • "Which official UAE open-data sources can you access?"uae_sources_list
  • "Is the Dubai Land Department data source up right now?"uae_source_health

Call a tool over HTTP (Streamable-HTTP MCP)

# initialize → grab the mcp-session-id header, then call tools/list, tools/call
curl -s -X POST https://uaemcp.zad.tools/mcp/ \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"uae_market_snapshot","arguments":{"topic":"industry","limit":50}}}'

Or hit the REST mirror directly

# 32 registered sources
curl -s https://uaemcp.zad.tools/api/v1/sources | jq '.meta.total'

# live, PII-redacted records from the MOIAT industrial-licenses API
curl -s 'https://uaemcp.zad.tools/api/v1/sources/moiat_industrial_licenses/records?limit=2'
// sample record (contact fields are redacted by default)
{
  "CompanyName": "…",
  "EmirateNameEN": "Abu Dhabi",
  "AreaNameEN": "Musaffah Industrial",
  "ContactPhone": "[redacted-open-data-contact]",
  "ContactEmail": "[redacted-open-data-contact]"
}

Interactive API docs (Dubai-Font themed Swagger UI): https://uaemcp.zad.tools/docs

Security model

  • Writes gated. Reads are open; mutating tools require UAEMCP_WRITE_TOKEN. No token set → writes are disabled entirely (safe default).
  • SSRF guard. Every fetch resolves the host and rejects private, loopback, link-local, and cloud-metadata addresses. See core/ssrf.py.
  • PII redaction. Phone/email fields are redacted by name and by value pattern before any record leaves the server.
  • Bounded fetches. Browser-like User-Agent (so bot-mitigated portals don't hang), strict timeouts, capped redirects and response size.

Design notes — what this fixes vs. the prior version

  • No auth on writes → token-gated writes, disabled by default.
  • SSRF surface → mandatory validate_url on every egress.
  • stdio-only → real remote MCP at /mcp.
  • dashboard-summary stall → checks run concurrently with a strict per-source timeout and a browser UA, served from cache. Worst case is the slowest single source, not the sum of all.
  • Cold-start 502/healthz and /readyz do no upstream work.

Development

pip install -e ".[dev]"
pytest -m "not network"     # offline unit tests (ssrf, redaction, dashboard)
pytest                      # include live-endpoint integration tests
ruff check . && mypy src

License

MIT. Data served is open government data — verify each source's terms before redistribution.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选