Phoenix Intelligence Dashboard
世界情报MCP服务器
  
实时全球情报 30+域名 随着 109个MCP工具、实时运营中心仪表板、CLI和 Qdrant矢量存储 用于跨积累的智能进行企业级语义搜索。所有数据都来自免费的公共API,不需要付费订阅。
为需要世界意识的人工智能代理而构建:市场状况、地缘政治风险、军事态势、供应链中断、网络威胁等等——所有这些都可以通过模型上下文协议进行查询。矢量存储支持自然语言查询,如 *“台湾附近的军事活动”* 或 *“针对医疗保健的网络威胁”* 在所有历史数据中。
______________________________________________________________________
所得
| 域 | 工具 | 数据源 |
|---|
| 金融市场 | 7 | 雅虎财经、CoinGecko、Alternative.me、Mempool |
| 外汇和货币 | 3 | 欧洲央行/法兰克福(8个主要货币对、时间序列、交叉汇率) |
| 债券和收益率 | 2 | FRED,雅虎财经(收益率曲线、债券ETF、价差分析) |
| 收益 | 2 | 雅虎财经(超级市值日历,令人惊讶的历史) |
| 美国证券交易委员会文件 | 3 | SEC EDGAR(全文搜索、公司文件、8-K重大事件) |
| 公司丰富 | 1 | 雅虎财经+GDELT+SEC+GitHub(综合配置文件) |
| 宏观综合 | 1 | 加权6信号市场判断(恐惧与贪婪、波动率指数、行业、DXY、比特币、收益率) |
| 经济指标 | 3 | EIA能源、FRED宏观、世界银行 |
| 央行 | 1 | 8央行政策利率 |
| BTC技术 | 1 | SMA 50/200,黄金/死亡十字架,梅尔倍数 |
| 自然灾害 | 2 | USGS地震,NASA FIRMS野火 |
| 环境的 | 2 | NASA EONET、GDACS灾难警报 |
| 气候 | 1 | 开放气象温度/降水异常 |
| 冲突与安全 | 4 | ACLED事件、UCDP、动乱探测、人道主义数据 |
| 军事与国防 | 6 | adsb.lol、OpenSky、hexdb.io、浪涌检测、战区态势、飞机批次 |
| 基础设施 | 4 | Cloudflare雷达、海底电缆、级联分析、云状态 |
| 海事 | 2 | NGA导航警告、船舶快照 |
| 航空 | 2 | FAA机场延误,国内航班快照 |
| 新闻与媒体 | 3 | 80+RSS提要(4层)、GDELT、热门关键词 |
| 情报分析 | 8 | 信号收敛、焦点、不稳定指数、风险评分、升级 |
| NLP智能 | 4 | 实体提取、事件分类、新闻聚类、关键字尖峰 |
| 战略合成 | 4 | 战略态势、世界简报、舰队报告、人口暴露 |
| 地理空间 | 11 | 军事基地、港口、管道、核设施、电缆、数据中心、航天港、矿产、交易所、贸易路线、云区域 |
| 人工智能与技术 | 4 | arXiv论文、HuggingFace模型、黑客新闻、GitHub趋势 |
| 网络威胁 | 1 | URLhaus、Feodotracker、CISA KEV、SANS |
| 健康 | 1 | 世界卫生组织DON、ProMED、CIDRAP疾病暴发 |
| 空间天气 | 1 | NOAA SWPC(Kp指数、太阳耀斑、警报) |
| 社会与制裁 | 3 | Reddit速度、OFAC SDN列表、核试验场监控 |
| 国家情报 | 3 | 国家简报、国家股票、金融中心 |
| 预测市场 | 1 | 多市场事件合约 |
| 选举 | 1 | 带有风险评分的全球选举日历 |
| 位移 | 1 | 难民署难民/国内流离失所者数据 |
| 运输 | 1 | 干散货运输压力指数 |
| 政府 | 1 | USAspending.gov联邦合同 |
| 交通 | 2 | 道路交通流量、实时事件 |
| 跨域警报 | 2 | 警报摘要、每周趋势 |
| 监控 | 2 | 网络摄像头、服务器运行状况/状态 |
| 向量搜索 | 5 | Qdrant语义搜索、相似性、时间线、统计数据 |
| 跨域分析 | 3 | 相关性、领域总结、趋势检测 |
| 报告 | 1 | PDF/HTML多域情报报告 |
总计:110个工具 跨越30多个情报领域。
______________________________________________________________________
快速开始
安装
git clone https://github.com/marc-shade/world-intel-mcp.git
cd world-intel-mcp
pip install -e .
# Optional extras
pip install -e ".[dashboard]" # Live ops-center dashboard
pip install -e ".[vector]" # Qdrant vector store + FastEmbed
pip install -e ".[dev]" # pytest, respx, coverage
作为MCP服务器运行
world-intel-mcp # stdio mode for Claude Code, Cursor, etc.
Claude代码配置
添加 ~/.claude.json:
{
"mcpServers": {
"world-intel-mcp": {
"command": "world-intel-mcp"
}
}
}
仪表盘
intel-dashboard # http://localhost:8501
intel-dashboard --port 9000 # custom port
PDF/HTML报告
pip install -e ".[pdf]" # requires: brew install pango (macOS)
intel report # full PDF report → ~/.cache/world-intel-mcp/
intel report --format html # HTML (no native deps needed)
intel report -o brief.pdf # custom output path
intel report -s markets,cyber,earthquakes # select sections
地图初步行动中心:带有可切换图层(地震、军事、冲突、火灾、融合、核、基础设施)的传单地图,35+实时SSE馈送,HUD条,玻璃形态面板,每个源断路器健康状况。
命令行界面
intel markets # stock indices
intel earthquakes --min-mag 5.0
intel status # cache + circuit breaker health
______________________________________________________________________
建筑
server.py (MCP stdio) ─┐ ┌─ VectorStore (Qdrant)
cli.py (Click CLI) ├─> sources/*.py ─> Fetcher ─> CircuitBreaker ─┤
dashboard.py (SSE) │ analysis/*.py └─ Cache (SQLite)
collector.py (daemon) ─┘
- 抓取器:集中式异步HTTP客户端(httpx)。按源速率限制检索过时数据回退。自动存储会在新鲜提取时产生矢量存储。
- 断路器:按来源跟踪。连续3次故障跳闸5分钟。每个RSS提要都有自己的断路器。
- 缓存:SQLite WAL模式TTL缓存。
get() 返回实时数据, get_stale() 返回过期数据以备回退。 - 向量存储:Qdrant+FastEmbed(BAAI/bge-small-en-v1.5,384暗)。用于非阻塞存储的异步后台工作队列。启用所有累积情报的语义搜索。
- 收集者:并行获取所有43个源并填充向量存储的独立守护进程。运行一次或作为守护进程运行(默认间隔:5分钟)。
- 来源 (
sources/*.py):30+个模块,每个导出 async def fetch_*(fetcher, **kwargs) -> dict. - 分析 (
analysis/*.py):跨域合成——信号聚合、不稳定性索引、NLP、公司富集、宏观合成。 - 配置 (
config/*.py):整理数据集——22个热点、70多个基地、40个港口、24条管道、24个核设施、34条电缆、48个数据中心、27个太空港、82个交换站。
______________________________________________________________________
MCP工具参考
金融市场(7)
| 工具 | 说明 |
|---|
intel_market_quotes | 股票指数报价(标准普尔500指数、道琼斯指数、纳斯达克指数、富时指数、日经指数) |
intel_crypto_quotes | CoinGecko的顶级加密货币价格和市值 |
intel_stablecoin_status | 稳定币挂钩健康(USDT、USDC、DAI、FDUSD) |
intel_etf_flows | 比特币现货ETF价格和交易量 |
intel_sector_heatmap | 美国股市表现(11只SPDR ETF) |
intel_macro_signals | 7个宏观指标(恐惧与贪婪、VIX、DXY、黄金、10Y、BTC) |
intel_commodity_quotes | 商品期货(黄金、白银、原油、天然气、谷物) |
外汇与货币(3)
| 工具 | 说明 |
|---|
intel_forex_rates | 欧洲央行最新汇率。按基础/目标货币筛选 |
intel_forex_timeseries | 历史汇率与趋势分析(可配置天数) |
intel_major_crosses | 所有8个主要货币对+交叉汇率+DXY代理 |
债券与收益率(2)
| 工具 | 说明 |
|---|
intel_yield_curve | 美国国债收益率曲线(2Y-30Y),2s10s/3m10y价差,反转标志 |
intel_bond_indices | 债券ETF:AGG、TLT、HYG、LQD、TIP,含价格/变化 |
收益(2)
| 工具 | 说明 |
|---|
intel_earnings_calendar | 20只大盘股即将公布的收益与每股收益估计 |
intel_earnings_surprise | 历史收益惊喜(实际与估计、趋势) |
美国证券交易委员会文件(3)
| 工具 | 说明 |
|---|
intel_sec_filings | 在所有EDGAR文件中进行全文搜索 |
intel_company_filings | 通过CIK决议的股票代码(10-K、10-Q、8-K)提交的公司文件 |
intel_recent_8k | 最新的8-K重大事件(并购、高管变动、收益) |
公司丰富(1)
| 工具 | 说明 |
|---|
intel_company_profile | 综合配置文件:股票报价+财务+新闻+SEC+GitHub |
宏观综合(1)
| 工具 | 说明 |
|---|
intel_macro_composite | 加权市场评分(0-100),判定:风险从高到高 |
经济(3)
| 工具 | 说明 |
|---|
intel_energy_prices | 来自EIA的布伦特原油/西德克萨斯中质原油和天然气 |
intel_fred_series | FRED经济数据(GDP、CPI、失业率、利率) |
intel_world_bank_indicators | 按国家分列的世界银行发展指标 |
中央银行(1)
| 工具 | 说明 |
|---|
intel_central_bank_rates | 8家主要央行的政策利率 |
比特币技术(1)
| 工具 | 说明 |
|---|
intel_btc_technicals | 比特币SMA 50/200,黄金/死亡十字架,Mayer倍数 |
自然灾害(2)
| 工具 | 说明 |
|---|
intel_earthquakes | 美国地质调查局地震(可配置震级/时间/限制) |
intel_wildfires | 美国国家航空航天局FIRMS卫星火灾热点(全球9个地区) |
环境(2)
| 工具 | 说明 |
|---|
intel_environmental_events | 美国国家航空航天局EONET自然事件 |
intel_disaster_alerts | 带有严重性评分的GDACS灾难警报 |
冲突与安全(4)
| 工具 | 说明 |
|---|
intel_acled_events | ACLED武装冲突事件 |
intel_ucdp_events | 乌普萨拉冲突数据项目活动 |
intel_unrest_events | 哈弗辛引发的社会动荡已经平息 |
intel_humanitarian_summary | HDX人道主义危机数据集 |
军事与国防(6)
| 工具 | 说明 |
|---|
intel_military_flights | 军用飞机通过adsb.lol(OpenSky回退) |
intel_theater_posture | 5个战区(欧盟、印度-太平洋、中东、北极、韩国)的活动 |
intel_aircraft_details | 通过ICAO24十六进制(hexdb.io)查找飞机 |
intel_aircraft_batch | 批量飞机查找(多个十六进制代码) |
intel_military_surge | 国外飞机集中异常检测 |
intel_usni_fleet | USNI新闻海军舰队跟踪器 |
基础设施(4)
| 工具 | 说明 |
|---|
intel_internet_outages | Cloudflare雷达互联网中断 |
intel_cable_health | 海底电缆走廊健康状况 |
intel_cascade_analysis | 基础设施级联模拟 |
intel_service_status | 云平台健康状况(AWS、Azure、GCP、Cloudflare、GitHub) |
海事(2)
| 工具 | 说明 |
|---|
intel_nav_warnings | NGA海上航行警告 |
intel_vessel_snapshot | 9条战略水道的海军活动 |
地理空间数据集(10)
| 工具 | 说明 |
|---|
intel_military_bases | 来自9个运营商的70个军事基地 |
intel_strategic_ports | 6种类型的40个战略港口 |
intel_pipelines | 24条油气氢管道 |
intel_nuclear_facilities | 24个核电/浓缩/研究设施 |
intel_undersea_cables | 34条海底通信电缆 |
intel_ai_datacenters | 全球48个AI/HPC数据中心 |
intel_spaceports | 27个全球太空港 |
intel_critical_minerals | 27个战略性矿床 |
intel_stock_exchanges | 全球82家证券交易所 |
intel_trade_routes | 主要贸易路线和瓶颈 |
新闻与媒体(3)
| 工具 | 说明 |
|---|
intel_news_feed | 80多个全球RSS源,源代码排名为4级 |
intel_trending_keywords | 带有尖峰检测的趋势术语 |
intel_gdelt_search | GDELT 2.0全球新闻搜索 |
情报分析(8)
| 工具 | 说明 |
|---|
intel_signal_convergence | 多域信号的地理收敛 |
intel_focal_points | 多信号焦点检测 |
intel_signal_summary | 国家级信号聚合 |
intel_temporal_anomalies | 活动偏离基线 |
intel_instability_index | 国家不稳定指数v2(0-100) |
intel_risk_scores | 基于ACLED的冲突风险评分 |
intel_hotspot_escalation | 22个英特尔热点的升级分数 |
intel_country_dossier | 全面的国家情报档案 |
NLP智能(4)
| 工具 | 说明 |
|---|
intel_extract_entities | 命名实体提取(国家、领导者、组织、CVE、APT) |
intel_classify_event | 事件分为14个威胁类别 |
intel_news_clusters | 基于Jaccard相似度的主题聚类 |
intel_keyword_spikes | 基于Welford算法的关键词尖峰检测 |
战略综合(4)
| 工具 | 说明 |
|---|
intel_strategic_posture | 来自9个加权域的综合全球风险 |
intel_world_brief | 结构化的每日情报摘要 |
intel_fleet_report | 海军舰队活动报告,含战备评分 |
intel_population_exposure | 活动事件附近的高危人群(105个城市数据集) |
气候(1)
| 工具 | 说明 |
|---|
intel_climate_anomalies | 开放气象温度/降水异常 |
预测市场(1)
| 工具 | 说明 |
|---|
intel_prediction_markets | 多市场预测合约 |
选举(1)
| 工具 | 说明 |
|---|
intel_election_calendar | 带有风险评分的全球选举日历 |
位移(1)
| 工具 | 说明 |
|---|
intel_displacement_summary | 难民署难民/国内流离失所者统计 |
航空(2)
| 工具 | 说明 |
|---|
intel_airport_delays | FAA机场延误状态 |
intel_aviation_domestic | OpenSky全球空中交通快照 |
网络威胁(1)
| 工具 | 说明 |
|---|
intel_cyber_threats | 聚合网络情报(URLhaus、CISA KEV、SANS) |
空间天气(1)
| 工具 | 说明 |
|---|
intel_space_weather | 太阳活动(Kp指数、X射线通量、SWPC警报) |
人工智能与技术(4)
| 工具 | 说明 |
|---|
intel_ai_releases | arXiv人工智能论文,HuggingFace模型 |
intel_hacker_news | 黑客新闻头条 |
intel_trending_repos | GitHub趋势库 |
intel_arxiv_papers | arXiv论文搜索 |
健康(1)
| 工具 | 说明 |
|---|
intel_disease_outbreaks | 世界卫生组织DON、ProMED、CIDRAP疫情 |
社会与制裁(3)
| 工具 | 说明 |
|---|
intel_social_signals | Reddit地缘政治讨论速度 |
intel_sanctions_search | OFAC SDN列表搜索 |
intel_nuclear_monitor | 核试验场附近的地震监测 |
航运与贸易(1)
| 工具 | 说明 |
|---|
intel_shipping_index | 干散货运输压力指数 |
政府(1)
| 工具 | 说明 |
|---|
intel_usa_spending | USAspending.gov联邦合同 |
国家情报(3)
| 工具 | 说明 |
|---|
intel_country_brief | 国家情况快速摘要 |
intel_country_stocks | 按国家分列的证券交易所和上市公司 |
intel_financial_centers | 全球金融中心排名 |
扩展地理空间(1)
| 工具 | 说明 |
|---|
intel_cloud_regions | 全球云提供商区域 |
交通(2)
| 工具 | 说明 |
|---|
intel_traffic_flow | 道路交通流量数据 |
intel_traffic_incidents | 实时交通事故 |
跨域警报(2)
| 工具 | 说明 |
|---|
intel_alert_digest | 跨域警报聚合 |
intel_weekly_trends | 每周趋势分析 |
监测(2)
| 工具 | 说明 |
|---|
intel_webcams | 公共网络摄像头位置和实时预览 |
intel_status | 服务器运行状况、缓存统计数据、断路器状态 |
矢量搜索(5)
| 工具 | 说明 |
|---|
intel_semantic_search | 在所有积累的智能中进行自然语言搜索 |
intel_similar_events | 查找与给定数据点类似的事件 |
intel_timeline | 按时间顺序查看某个领域/类别的情报 |
intel_vector_stats | 矢量存储集合统计 |
intel_collect | 触发按需收集周期 |
跨域分析(3)
| 工具 | 说明 |
|---|
intel_cross_correlate | 查找给定主题的所有域中的相关信号 |
intel_domain_summary | 按类别汇总存储的情报(计数、来源、近期) |
intel_trend_detection | 通过比较最近与基线期来检测活动激增/下降 |
报告(1)
| 工具 | 说明 |
|---|
intel_generate_report | 并行生成涵盖18个域的PDF或HTML情报报告 |
______________________________________________________________________
向量存储
可选的Qdrant向量存储随着时间的推移积累了语义检索的智能。通过Fetcher获取的所有数据都会自动嵌入和存储。
设置
# Install Qdrant (Docker)
docker run -p 6333:6333 qdrant/qdrant
# Install vector dependencies
pip install -e ".[vector]"
# Run the collector daemon (populates vector store 24/7)
intel-collector --daemon # every 5 minutes
intel-collector --daemon --interval 120 # every 2 minutes
intel-collector --sources markets,cyber # specific domains only
intel-collector # single collection cycle
语义搜索示例
一旦数据积累,AI代理就可以跨所有域进行查询:
- *“台湾海峡附近的军事活动”* --查找军事飞行、海军预警、战区态势数据
- *“针对医疗保健的网络威胁”* --查找与医疗保健相关的URLhaus、CISA KEV条目
- *“经济指标显示经济衰退”* --查找收益率曲线反转、宏观信号、FRED数据
矢量存储使用FastEmbed(基于ONNX,BAAI/bge-small-en-v1.5)进行嵌入——不需要GPU,冷启动约3秒。
______________________________________________________________________
环境变量
| 变量 | 必填 | 描述 |
|---|
ACLED_ACCESS_TOKEN | 否 | ACLED冲突事件 |
NASA_FIRMS_API_KEY | 否 | 卫星野火数据 |
EIA_API_KEY | 否 | 能源价格数据 |
CLOUDFLARE_API_TOKEN | 否 | 互联网中断数据 |
FRED_API_KEY | 否 | 宏观经济数据(也用于收益率曲线) |
OPENSKY_CLIENT_ID | 否 | 军用航班回退 |
OPENSKY_CLIENT_SECRET | 否 | 军用航班回退 |
WORLD_INTEL_LOG_LEVEL | 否 | 日志记录级别(默认值:INFO) |
其他一切都使用免费的、未经身份验证的公共API。
______________________________________________________________________
发展
pip install -e ".[dev]"
pytest # 186 tests
pytest --cov=world_intel_mcp # with coverage
pytest tests/test_forex.py -v # single module
添加新源
- 创建
sources/your_source.py 随着 async def fetch_your_data(fetcher: Fetcher, **kwargs) -> dict - 使用
fetcher.get_json(url, source="your-source", cache_key=..., cache_ttl=300) --自动缓存、重试、断路、速率限制 - 在
server.py:添加 Tool(...) 到 TOOLS,添加 case 到 _dispatch() (使用内联导入) - 使用添加测试
respx 模拟HTTP(请参见 tests/test_forex.py 图案) - 可选择添加到
dashboard/app.py (苏格兰和南方能源公司)和 cli.py (点击)
______________________________________________________________________
许可证
麻省理工学院