Africa API MCP server
io.github.africa-api/africa-api-mcp·v0.1.1MCP server for Africa API — access data on all 54 African countries through Claude
0 stars
Reviews
Write oneNobody has reviewed Africa API yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Africa API tools (40)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
get_cabinetGet the current cabinet for a country — ministers, deputy ministers, and key officials
get_countryGet detailed information about a specific African country including coordinates, borders, currencies, and languages
get_country_electionsGet an election overview for a country — recent and upcoming elections with results
get_country_policiesGet a policy overview for a country — recent and notable policies grouped by type
get_country_policy_timelineGet a chronological policy timeline for a country
get_country_profileGet a curated profile for a country — key macro, demographic, and economic indicators
get_country_signalsGet real-time signals for a country — macro snapshot, market data, FX rates, power status, humanitarian alerts
get_electionGet detailed information about a specific election
get_election_resultsGet results for a specific election — candidates, parties, and vote counts
get_exchangeGet details about a specific stock exchange
get_fx_rate_historyGet historical FX rate data for a currency pair
get_fx_ratesGet current FX rates for African currencies against a base currency
get_government_overviewGet a government overview — current head of state, head of government, and cabinet summary
get_indicatorGet detailed metadata about a specific indicator including description, unit, source, and available years
get_indicator_rankingsRank African countries by a specific indicator for a given year — great for comparisons
get_leaderGet detailed information about a specific leader including biography, terms, and political party
get_platform_infoGet Africa API platform version and status
get_policyGet detailed information about a specific policy, law, or regulation
get_policy_eventsGet all lifecycle events for a specific policy
get_sourceGet details about a specific data source — description, URL, coverage, and update frequency
get_tickerGet details about a specific listed security
get_ticker_historyGet price history (OHLC + volume) for a listed security
get_trade_flowsQuery bilateral trade flows between countries — exports and imports with values
get_trade_overviewGet a trade overview — total exports/imports, top partners, top products, and trends
get_trade_partnersGet top trading partners for a country
get_trade_productsGet top traded products for a country — what it exports and imports
get_upcoming_electionsGet upcoming elections across Africa sorted by date
list_cabinet_membersSearch cabinet members across African governments
list_countriesList all 54 African countries with key facts (capital, region, area, currencies, languages)
list_electionsList elections across Africa — filter by country, scope, status, and year range
list_exchangesList African stock exchanges — NGX, JSE, BRVM, Casablanca, etc.
list_geographiesList geographical entities — continents, regions, subregions, and countries in a hierarchy
list_government_termsList leadership terms — who governed which country and when
list_indicatorsList all available data indicators (127+) across categories like GDP, population, health, education, agriculture, energy, climate
list_policiesSearch government policies, laws, and regulations across Africa
list_policy_eventsList policy lifecycle events — when policies were announced, adopted, amended, repealed
list_sourcesList all data sources — World Bank, UN agencies, central banks, exchanges, etc.
list_tickersSearch listed securities (equities) across African exchanges
query_dataQuery time-series observations for any combination of countries and indicators
search_leadersSearch African heads of state and government — current and historical
Public scan report
scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it
- Code scan2 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 56 days ago12/15
- Maintainer identityregistry namespace matches repository owner7/10
How Africa API compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 77/100
- higher than 50% of 48,255 servers
- Tools
- 40
- the typical server has 7
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
What its tools let an agent do: 40 read
Install Africa API in Claude Code, Cursor or VS Code
Runs npx -y africa-api-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add africa-api-mcp -- npx -y africa-api-mcp
What the publisher says
From the Africa API repository's README, as published. We do not edit it. Read it on GitHub
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 mcp add africa-api -e AFRICA_API_KEY=your-api-key-here -- npx -y africa-api-mcpClaude Desktop — add to ~/Library/Application Support/Claude/claudedesktopconfig.json (macOS) or %APPDATA%\Claude\claudedesktopconfig.json (Windows), then restart:
{
"mcpServers": {
"africa-api": {
"command": "npx",
"args": ["-y", "africa-api-mcp"],
"env": { "AFRICA_API_KEY": "your-api-key-here" }
}
}
}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:
code --add-mcp '{"name":"africa-api","command":"npx","args":["-y","africa-api-mcp"],"env":{"AFRICA_API_KEY":"your-api-key-here"}}'Any other MCP client works with the same npx -y africa-api-mcp command plus the AFRICAAPIKEY 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
git clone https://github.com/africa-api/africa-api-mcp.git
cd africa-api-mcp
npm install
npm run build
# Run directly
AFRICA_API_KEY=your-key node dist/index.js
# Test with MCP inspector
AFRICA_API_KEY=your-key npx @modelcontextprotocol/inspector node dist/index.jsLicense
MIT
Nothing above is checked by us. What we check is on the safety report.
Africa API: common questions
- Is Africa API MCP server safe?
- Mostly: it is graded B (77/100). Read the Africa API safety report
- How do I install Africa API?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Africa API need an API key?
- Yes. The registry entry asks for
AFRICA_API_KEY. - Is Africa API maintained?
- The last commit was 94 days ago (2026-08-02). The latest release is v0.1.1.
- How does Africa API compare with other MCP servers?
- safety score 77/100 (higher than 50% of 48,255 servers); tools 40 (the typical server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.