
Africa Api Mcp
io.github.africa-apiPublished by GitHub account africa-apiv0.1.1Updated Oct 25, 2026
MCP server for Africa API — access data on all 54 African countries through Claude
Overview
A local MCP server that gives an assistant read-only access to Africa API data on all 54 African countries, including indicators, markets, trade, government and
- What you can do
- Look up country details, profiles and real-time signals for all 54 African nations, plus the continent/region hierarchy. Query 200+ indicators such as GDP, population, health and energy, with time-series and country rankings. Retrieve heads of state, cabinets and leadership terms, and election results or upcoming elections. Inspect stock exchanges, index levels, listed securities, price history and FX rates. Compare bilateral trade flows, top partners and product breakdowns, and review laws, regulations and policy timelines. Check data provenance and platform sources such as the World Bank, IMF, UN and central banks.
- When to use it
- Useful when you need sourced, structured facts about African economies, politics, markets or trade inside a chat, for example comparing GDP across countries, checking FX rates, or tracing a policy timeline.
- Requirements
- Runs locally via npx, so Node.js is needed; nothing to install or host. Requires an Africa API account and an API key supplied in the AFRICA_API_KEY environment variable. Network access to the Africa API endpoint is required; AFRICA_API_BASE_URL can override the default.
Installation
In SourceWeft
- Open Africa Api Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: README.md at commit 92f8a91
Tools
0Version history
1- v0.1.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts