Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, email [email protected] and we’ll put it right.

io.github.africa-api/africa-api-mcp

NPM · AFRICA-API-MCP · SCANNED AUG 3

MCP server for Africa API — access data on all 54 African countries through Claude

Available components

+19 this week 65 Trust /100
Trust breakdown (6 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →

Supply Chain Security86
  • No malware found by supply-chain analysis.Pass
  • Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.Partial
  • No install/post-install scripts declared.Pass
  • Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency45
Schema Quality & AI Usability77
  • AI-judged instruction clarity (excellent).Pass
  • Tool/resource definitions use about 2684 tokens (~67/item across 40 items; 40 tools + 0 resources), lean.Pass
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management0
  • Stability not yet verified: not enough scan history yet (needs a 30-day window).Unverified
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass

Unverified: 1 category

A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.

Install

Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.

npm · africa-api-mcp

# add to Claude Code
claude mcp add africa-api-africa-api-mcp -- npx -y africa-api-mcp
# add to Codex CLI
codex mcp add africa-api-africa-api-mcp -- npx -y africa-api-mcp
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "africa-api-africa-api-mcp": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "africa-api-mcp"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add africa-api-africa-api-mcp --command npx --arg -y --arg africa-api-mcp
# ~/.hermes/config.yaml
mcp_servers:
  africa-api-africa-api-mcp:
    command: "npx"
    args: ["-y", "africa-api-mcp"]
// mcp.json
{
  "mcpServers": {
    "africa-api-africa-api-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "africa-api-mcp"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 2 Aug 26 +44
    • Provenance: unverified → fail security
    • Install scripts: unverified → pass security
    • Known CVEs: unverified → partial security
    • Malware scan: unverified → pass security
    • Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window). security
    • Schema quality: unverified → excellent functional
    • License: unverified → pass functional
    • Dependency health: unverified → partial functional
    • Maintenance: unverified → pass functional
    • MCP protocol: unverified → pass functional
    • Licence: MIT functional
  • 1 Aug 26 −7
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 31 Jul 26 −18
    • Malware scan: pass → unverified security
  • 27 Jul 26 46

    First indexed and scored.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 3 Aug 2026 · Analysed npm/[email protected]

Provenance none

Ecosystem: npm · Outcome: none

Dependencies 94 packages

94 packages in the resolved dependency tree · 94 deprecated · 29 stale.

The dependency tree was only partially resolved, so these counts may be incomplete.

MCP tools — 40 exposed · ~2,684 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.

Tool Tokens
get_cabinet ~52

Get the current cabinet for a country — ministers, deputy ministers, and key officials

NameTypeReqDescription
country_codestringyesISO alpha-2 code (e.g. "NG", "KE", "ZA")

No output schema declared.

No examples provided.

get_country ~56

Get detailed information about a specific African country including coordinates, borders, currencies, and languages

NameTypeReqDescription
country_codestringyesISO 3166-1 alpha-2 code (e.g. "NG", "KE", "ZA")

No output schema declared.

No examples provided.

get_country_elections ~62

Get an election overview for a country — recent and upcoming elections with results

NameTypeReqDescription
country_codestringyesISO alpha-2 code (e.g. "NG", "KE", "ZA")
top_limitintegerTop results per category

No output schema declared.

No examples provided.

get_country_policies ~63

Get a policy overview for a country — recent and notable policies grouped by type

NameTypeReqDescription
country_codestringyesISO alpha-2 code (e.g. "NG", "KE", "ZA")
top_limitintegerTop items per category

No output schema declared.

No examples provided.

get_country_policy_timeline ~44

Get a chronological policy timeline for a country

NameTypeReqDescription
country_codestringyesISO alpha-2 code
top_limitintegerNumber of events

No output schema declared.

No examples provided.

get_country_profile ~51

Get a curated profile for a country — key macro, demographic, and economic indicators

NameTypeReqDescription
country_codestringyesISO alpha-2 code (e.g. "NG", "KE", "ZA")

No output schema declared.

No examples provided.

get_country_signals ~58

Get real-time signals for a country — macro snapshot, market data, FX rates, power status, humanitarian alerts

NameTypeReqDescription
country_codestringyesISO alpha-2 code (e.g. "NG", "KE", "ZA")

No output schema declared.

No examples provided.

get_election ~34

Get detailed information about a specific election

NameTypeReqDescription
election_wikidata_idstringyesWikidata ID of the election

No output schema declared.

No examples provided.

get_election_results ~51

Get results for a specific election — candidates, parties, and vote counts

NameTypeReqDescription
election_wikidata_idstringyesWikidata ID of the election
limitintegerMax results

No output schema declared.

No examples provided.

get_exchange ~41

Get details about a specific stock exchange

NameTypeReqDescription
exchange_codestringyesExchange code (e.g. "NGX", "JSE", "BRVM")

No output schema declared.

No examples provided.

get_fx_rate_history ~98

Get historical FX rate data for a currency pair

NameTypeReqDescription
base_currencystringyesBase currency (e.g. "USD")
end_datestringEnd date (YYYY-MM-DD)
limitintegerMax data points
quote_currencystringyesQuote currency (e.g. "NGN", "KES", "ZAR")
start_datestringStart date (YYYY-MM-DD)

No output schema declared.

No examples provided.

get_fx_rates ~80

Get current FX rates for African currencies against a base currency

NameTypeReqDescription
base_currencystringBase currency (3-letter code)
country_codestringFilter by country
limitintegerMax results
quote_currenciesstringComma-separated quote currencies (e.g. "NGN,KES,ZAR")

No output schema declared.

No examples provided.

get_government_overview ~54

Get a government overview — current head of state, head of government, and cabinet summary

NameTypeReqDescription
country_codestringyesISO alpha-2 code (e.g. "NG", "KE", "ZA")

No output schema declared.

No examples provided.

get_indicator ~55

Get detailed metadata about a specific indicator including description, unit, source, and available years

NameTypeReqDescription
metric_keystringyesIndicator key (e.g. "gdp_current_usd", "population_total", "life_expectancy")

No output schema declared.

No examples provided.

get_indicator_rankings ~90

Rank African countries by a specific indicator for a given year — great for comparisons

NameTypeReqDescription
limitintegerNumber of results
metric_keystringyesIndicator key (e.g. "gdp_current_usd", "population_total")
orderstringSort order
sourcestringSource code filter
yearintegeryesYear to rank by

No output schema declared.

No examples provided.

get_leader ~50

Get detailed information about a specific leader including biography, terms, and political party

NameTypeReqDescription
leader_wikidata_idstringyesWikidata ID of the leader (e.g. "Q7939")

No output schema declared.

No examples provided.

get_platform_info ~17

Get Africa API platform version and status

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

get_policy ~38

Get detailed information about a specific policy, law, or regulation

NameTypeReqDescription
policy_wikidata_idstringyesWikidata ID of the policy

No output schema declared.

No examples provided.

get_policy_events ~44

Get all lifecycle events for a specific policy

NameTypeReqDescription
limitintegerMax results
policy_wikidata_idstringyesWikidata ID of the policy

No output schema declared.

No examples provided.

get_source ~37

Get details about a specific data source — description, URL, coverage, and update frequency

NameTypeReqDescription
source_codestringyesSource code identifier

No output schema declared.

No examples provided.

get_ticker ~53

Get details about a specific listed security

NameTypeReqDescription
exchange_codestringyesExchange code (e.g. "NGX")
symbolstringyesTicker symbol (e.g. "DANGCEM")

No output schema declared.

No examples provided.

get_ticker_history ~82

Get price history (OHLC + volume) for a listed security

NameTypeReqDescription
end_datestringEnd date (YYYY-MM-DD)
exchange_codestringyesExchange code
limitintegerMax data points
start_datestringStart date (YYYY-MM-DD)
symbolstringyesTicker symbol

No output schema declared.

No examples provided.

get_trade_flows ~110

Query bilateral trade flows between countries — exports and imports with values

NameTypeReqDescription
end_yearintegerEnd year
flow_typestringFlow type
limitintegerMax results
partner_country_codestringPartner country code
product_codestringHS product code
reporter_country_codestringReporting country (ISO alpha-2)
start_yearintegerStart year
yearintegerExact year

No output schema declared.

No examples provided.

get_trade_overview ~86

Get a trade overview — total exports/imports, top partners, top products, and trends

NameTypeReqDescription
country_codestringyesISO alpha-2 code (e.g. "NG", "KE", "ZA")
end_yearintegerEnd year
start_yearintegerStart year
top_limitintegerTop items per category

No output schema declared.

No examples provided.

get_trade_partners ~79

Get top trading partners for a country

NameTypeReqDescription
end_yearintegerEnd year
flow_typestringFlow type
limitintegerMax results
reporter_country_codestringyesReporting country (required)
start_yearintegerStart year
yearintegerExact year

No output schema declared.

No examples provided.

get_trade_products ~84

Get top traded products for a country — what it exports and imports

NameTypeReqDescription
end_yearintegerEnd year
flow_typestringFlow type
limitintegerMax results
reporter_country_codestringyesReporting country (required)
start_yearintegerStart year
yearintegerExact year

No output schema declared.

No examples provided.

get_upcoming_elections ~29

Get upcoming elections across Africa sorted by date

NameTypeReqDescription
limitintegerMax results

No output schema declared.

No examples provided.

list_cabinet_members ~70

Search cabinet members across African governments

NameTypeReqDescription
country_codestringFilter by country
current_onlybooleanOnly current members
limitintegerMax results
qstringSearch by name
role_categorystringFilter by role

No output schema declared.

No examples provided.

list_countries ~81

List all 54 African countries with key facts (capital, region, area, currencies, languages)

NameTypeReqDescription
pageintegerPage number for pagination
per_pageintegerItems per page
regionstringFilter by region (e.g. "Eastern Africa", "Western Africa")
sortstringSort field

No output schema declared.

No examples provided.

list_elections ~85

List elections across Africa — filter by country, scope, status, and year range

NameTypeReqDescription
country_codestringFilter by country
election_scopestringElection scope
end_yearintegerTo year
limitintegerMax results
start_yearintegerFrom year
statusstringElection status

No output schema declared.

No examples provided.

list_exchanges ~47

List African stock exchanges — NGX, JSE, BRVM, Casablanca, etc.

NameTypeReqDescription
country_codestringFilter by country
limitintegerMax results

No output schema declared.

No examples provided.

list_geographies ~80

List geographical entities — continents, regions, subregions, and countries in a hierarchy

NameTypeReqDescription
country_codestringFilter by country code
limitintegerMax results
parent_keystringFilter by parent geography key
qstringSearch query
typestringFilter by geography type

No output schema declared.

No examples provided.

list_government_terms ~111

List leadership terms — who governed which country and when

NameTypeReqDescription
country_codestringFilter by country
current_onlybooleanOnly current terms
end_date_tostringFilter terms to date (YYYY-MM-DD)
leader_wikidata_idstringFilter by leader
limitintegerMax results
role_typestringRole type filter
start_date_fromstringFilter terms from date (YYYY-MM-DD)

No output schema declared.

No examples provided.

list_indicators ~86

List all available data indicators (127+) across categories like GDP, population, health, education, agriculture, energy, climate

NameTypeReqDescription
categorystringFilter by category (e.g. "economy", "health", "education")
has_databooleanIf true, only return indicators that have observations
sourcestringFilter by data source code

No output schema declared.

No examples provided.

list_policies ~91

Search government policies, laws, and regulations across Africa

NameTypeReqDescription
country_codestringFilter by country
document_typestringDocument type
end_yearintegerTo year
limitintegerMax results
qstringSearch by title or content
start_yearintegerFrom year
statusstringPolicy status

No output schema declared.

No examples provided.

list_policy_events ~76

List policy lifecycle events — when policies were announced, adopted, amended, repealed

NameTypeReqDescription
country_codestringFilter by country
end_yearintegerTo year
event_typestringEvent type
limitintegerMax results
start_yearintegerFrom year

No output schema declared.

No examples provided.

list_sources ~26

List all data sources — World Bank, UN agencies, central banks, exchanges, etc.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

list_tickers ~82

Search listed securities (equities) across African exchanges

NameTypeReqDescription
country_codestringFilter by country
exchange_codestringFilter by exchange (e.g. "NGX")
instrument_typestringFilter by instrument type
limitintegerMax results
qstringSearch by name or symbol

No output schema declared.

No examples provided.

query_data ~184

Query time-series observations for any combination of countries and indicators

NameTypeReqDescription
categorystringFilter by indicator category
country_codestringSingle ISO alpha-2 code (e.g. "NG")
country_codesstringComma-separated codes (e.g. "NG,KE,ZA")
end_yearintegerEnd of year range
latestbooleanOnly return most recent observation per country+indicator
limitintegerMax results
metric_keystringSingle indicator key (e.g. "gdp_current_usd")
metric_keysstringComma-separated indicator keys
sourcestringFilter by source code
start_yearintegerStart of year range
yearintegerExact year (cannot combine with start_year/end_year)

No output schema declared.

No examples provided.

search_leaders ~67

Search African heads of state and government — current and historical

NameTypeReqDescription
country_codestringFilter by country (ISO alpha-2)
current_onlybooleanOnly current leaders
limitintegerMax results
qstringSearch by name

No output schema declared.

No examples provided.