
Africa Api Mcp
io.github.africa-api由 GitHub 帳號 africa-api 發布v0.1.1更新於 Oct 25, 2026
MCP server for Africa API — access data on all 54 African countries through Claude
概覽
本機 MCP 伺服器,讓助理以唯讀方式存取 Africa API 關於全部 54 個非洲國家的資料,涵蓋經濟指標、市場、貿易、政府與政策。
- 可以做什麼
- 查詢全部 54 個非洲國家的國家詳情、概況與即時訊號,以及洲、區域與次區域層級。查詢 200 多項指標(如 GDP、人口、健康、能源),支援時間序列與國家排名。取得國家元首、內閣與任期資訊,以及選舉結果和即將舉行的選舉。檢視證券交易所、指數水準、上市證券、價格歷史與匯率。比較雙邊貿易流量、主要夥伴與產品組成,並查閱法律、法規與政策時間軸。查看資料來源與平台資訊,如世界銀行、IMF、聯合國與各國央行。
- 適用情境
- 適合在對話中需要取得有來源、結構化的非洲經濟、政治、市場或貿易事實時使用,例如比較各國 GDP、查詢匯率或梳理政策時間軸。
- 執行需求
- 透過 npx 在本機執行,需要 Node.js,無需安裝或自行架設。需要 Africa API 帳號,並透過 AFRICA_API_KEY 環境變數提供 API 金鑰。需要連線至 Africa API 端點的網路;可用 AFRICA_API_BASE_URL 覆寫預設位址。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Africa Api Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Africa API MCP Server
An MCP server that gives Claude direct access to the Africa API — comprehensive data on all 54 African nations including economic indicators, markets, trade, government, elections, and policies.
Quick Start
1. Get an API key
Sign up at africa-api.com and create an API key from your dashboard.
2. Connect your client
The server runs on demand via npx — nothing to install or host. Pick your client:
Claude Code (one command):
Claude Desktop — add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart:
Cursor — add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project) with the same mcpServers block as above.
VS Code (Copilot agent mode) — one command:
Any other MCP client works with the same npx -y africa-api-mcp command plus the AFRICA_API_KEY environment variable. The server is also listed in the MCP Registry as io.github.africa-api/africa-api-mcp.
What You Can Ask Claude
Once connected, Claude can answer questions like:
- "What's the GDP of Nigeria vs South Africa over the last 10 years?"
- "Show me current FX rates for East African currencies"
- "Who is the head of state of Kenya and when did they take office?"
- "What elections are coming up in Africa this year?"
- "What are Nigeria's top 5 export products?"
- "Show me the policy timeline for Rwanda"
- "Rank African countries by life expectancy"
- "What stocks are listed on the Nigerian Exchange?"
- "Compare trade flows between Kenya and Tanzania"
Available Tools
41 tools across 9 domains:
All tools are read-only (annotated readOnly + idempotent) and return both human-readable text and structured JSON output for programmatic clients.
Configuration
Development
License
MIT
來源:README.md,提交 92f8a91
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分