MCP server for Africa API β access data on all 54 African countries through Claude
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
Sign up at africa-api.com and create an API key from your dashboard.
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.
Once connected, Claude can answer questions like:
41 tools across 9 domains:
| Domain | Tools | What It Covers |
|---|---|---|
| Countries | 4 | Country details, profiles, real-time signals for all 54 nations |
| Indicators & Data | 4 | 200+ indicators (GDP, population, health, energy, trade, etc.), time-series queries, country rankings |
| Government | 6 | Heads of state, cabinets, leadership terms β current and historical |
| Elections | 5 | Election results, upcoming elections, country overviews |
| Markets | 8 | Stock exchanges, index levels, listed securities, price history, FX rates |
| Trade | 4 | Bilateral trade flows, top partners, product breakdowns |
| Policies | 6 | Laws, regulations, policy timelines, lifecycle events |
| Sources & platform | 3 | Data provenance and platform info β World Bank, IMF, UN, Ember, central banks |
| Geographies | 1 | Continent / region / subregion hierarchy |
All tools are read-only (annotated readOnly + idempotent) and return both human-readable text and structured JSON output for programmatic clients.
| Environment Variable | Required | Default | Description |
|---|---|---|---|
AFRICA_API_KEY | Yes | β | Your Africa API bearer token |
AFRICA_API_BASE_URL | No | https://api.africa-api.com | Override for local development |
MIT
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/africa-api-mcp)<a href="https://allmcps.com/mcp/africa-api-mcp"><img src="https://allmcps.com/api/badge/africa-api-mcp?style=directory" alt="Africa API MCP on AllMCPs" /></a>