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
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
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 36 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
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.
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
claude mcp add africa-api-africa-api-mcp -- npx -y africa-api-mcp
codex mcp add africa-api-africa-api-mcp -- npx -y africa-api-mcp
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"africa-api-africa-api-mcp": {
"type": "local",
"command": [
"npx",
"-y",
"africa-api-mcp"
],
"enabled": true
}
}
} openclaw mcp add africa-api-africa-api-mcp --command npx --arg -y --arg africa-api-mcp
mcp_servers:
africa-api-africa-api-mcp:
command: "npx"
args: ["-y", "africa-api-mcp"] {
"mcpServers": {
"africa-api-africa-api-mcp": {
"command": "npx",
"args": [
"-y",
"africa-api-mcp"
]
}
}
} 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.
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.
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.
get_cabinet ~52
Get the current cabinet for a country — ministers, deputy ministers, and key officials
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | yes | ISO 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
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | yes | ISO 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
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | yes | ISO alpha-2 code (e.g. "NG", "KE", "ZA") |
| top_limit | integer | — | Top 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
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | yes | ISO alpha-2 code (e.g. "NG", "KE", "ZA") |
| top_limit | integer | — | Top items per category |
No output schema declared.
No examples provided.
get_country_policy_timeline ~44
Get a chronological policy timeline for a country
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | yes | ISO alpha-2 code |
| top_limit | integer | — | Number 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
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | yes | ISO 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
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | yes | ISO 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
| Name | Type | Req | Description |
|---|---|---|---|
| election_wikidata_id | string | yes | Wikidata 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
| Name | Type | Req | Description |
|---|---|---|---|
| election_wikidata_id | string | yes | Wikidata ID of the election |
| limit | integer | — | Max results |
No output schema declared.
No examples provided.
get_exchange ~41
Get details about a specific stock exchange
| Name | Type | Req | Description |
|---|---|---|---|
| exchange_code | string | yes | Exchange 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
| Name | Type | Req | Description |
|---|---|---|---|
| base_currency | string | yes | Base currency (e.g. "USD") |
| end_date | string | — | End date (YYYY-MM-DD) |
| limit | integer | — | Max data points |
| quote_currency | string | yes | Quote currency (e.g. "NGN", "KES", "ZAR") |
| start_date | string | — | Start 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
| Name | Type | Req | Description |
|---|---|---|---|
| base_currency | string | — | Base currency (3-letter code) |
| country_code | string | — | Filter by country |
| limit | integer | — | Max results |
| quote_currencies | string | — | Comma-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
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | yes | ISO 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
| Name | Type | Req | Description |
|---|---|---|---|
| metric_key | string | yes | Indicator 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
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | — | Number of results |
| metric_key | string | yes | Indicator key (e.g. "gdp_current_usd", "population_total") |
| order | string | — | Sort order |
| source | string | — | Source code filter |
| year | integer | yes | Year 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
| Name | Type | Req | Description |
|---|---|---|---|
| leader_wikidata_id | string | yes | Wikidata 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
| Name | Type | Req | Description |
|---|---|---|---|
| policy_wikidata_id | string | yes | Wikidata ID of the policy |
No output schema declared.
No examples provided.
get_policy_events ~44
Get all lifecycle events for a specific policy
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | — | Max results |
| policy_wikidata_id | string | yes | Wikidata 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
| Name | Type | Req | Description |
|---|---|---|---|
| source_code | string | yes | Source code identifier |
No output schema declared.
No examples provided.
get_ticker ~53
Get details about a specific listed security
| Name | Type | Req | Description |
|---|---|---|---|
| exchange_code | string | yes | Exchange code (e.g. "NGX") |
| symbol | string | yes | Ticker symbol (e.g. "DANGCEM") |
No output schema declared.
No examples provided.
get_ticker_history ~82
Get price history (OHLC + volume) for a listed security
| Name | Type | Req | Description |
|---|---|---|---|
| end_date | string | — | End date (YYYY-MM-DD) |
| exchange_code | string | yes | Exchange code |
| limit | integer | — | Max data points |
| start_date | string | — | Start date (YYYY-MM-DD) |
| symbol | string | yes | Ticker symbol |
No output schema declared.
No examples provided.
get_trade_flows ~110
Query bilateral trade flows between countries — exports and imports with values
| Name | Type | Req | Description |
|---|---|---|---|
| end_year | integer | — | End year |
| flow_type | string | — | Flow type |
| limit | integer | — | Max results |
| partner_country_code | string | — | Partner country code |
| product_code | string | — | HS product code |
| reporter_country_code | string | — | Reporting country (ISO alpha-2) |
| start_year | integer | — | Start year |
| year | integer | — | Exact 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
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | yes | ISO alpha-2 code (e.g. "NG", "KE", "ZA") |
| end_year | integer | — | End year |
| start_year | integer | — | Start year |
| top_limit | integer | — | Top items per category |
No output schema declared.
No examples provided.
get_trade_partners ~79
Get top trading partners for a country
| Name | Type | Req | Description |
|---|---|---|---|
| end_year | integer | — | End year |
| flow_type | string | — | Flow type |
| limit | integer | — | Max results |
| reporter_country_code | string | yes | Reporting country (required) |
| start_year | integer | — | Start year |
| year | integer | — | Exact year |
No output schema declared.
No examples provided.
get_trade_products ~84
Get top traded products for a country — what it exports and imports
| Name | Type | Req | Description |
|---|---|---|---|
| end_year | integer | — | End year |
| flow_type | string | — | Flow type |
| limit | integer | — | Max results |
| reporter_country_code | string | yes | Reporting country (required) |
| start_year | integer | — | Start year |
| year | integer | — | Exact year |
No output schema declared.
No examples provided.
get_upcoming_elections ~29
Get upcoming elections across Africa sorted by date
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | — | Max results |
No output schema declared.
No examples provided.
list_cabinet_members ~70
Search cabinet members across African governments
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | — | Filter by country |
| current_only | boolean | — | Only current members |
| limit | integer | — | Max results |
| q | string | — | Search by name |
| role_category | string | — | Filter 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)
| Name | Type | Req | Description |
|---|---|---|---|
| page | integer | — | Page number for pagination |
| per_page | integer | — | Items per page |
| region | string | — | Filter by region (e.g. "Eastern Africa", "Western Africa") |
| sort | string | — | Sort field |
No output schema declared.
No examples provided.
list_elections ~85
List elections across Africa — filter by country, scope, status, and year range
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | — | Filter by country |
| election_scope | string | — | Election scope |
| end_year | integer | — | To year |
| limit | integer | — | Max results |
| start_year | integer | — | From year |
| status | string | — | Election status |
No output schema declared.
No examples provided.
list_exchanges ~47
List African stock exchanges — NGX, JSE, BRVM, Casablanca, etc.
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | — | Filter by country |
| limit | integer | — | Max results |
No output schema declared.
No examples provided.
list_geographies ~80
List geographical entities — continents, regions, subregions, and countries in a hierarchy
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | — | Filter by country code |
| limit | integer | — | Max results |
| parent_key | string | — | Filter by parent geography key |
| q | string | — | Search query |
| type | string | — | Filter by geography type |
No output schema declared.
No examples provided.
list_government_terms ~111
List leadership terms — who governed which country and when
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | — | Filter by country |
| current_only | boolean | — | Only current terms |
| end_date_to | string | — | Filter terms to date (YYYY-MM-DD) |
| leader_wikidata_id | string | — | Filter by leader |
| limit | integer | — | Max results |
| role_type | string | — | Role type filter |
| start_date_from | string | — | Filter 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
| Name | Type | Req | Description |
|---|---|---|---|
| category | string | — | Filter by category (e.g. "economy", "health", "education") |
| has_data | boolean | — | If true, only return indicators that have observations |
| source | string | — | Filter by data source code |
No output schema declared.
No examples provided.
list_policies ~91
Search government policies, laws, and regulations across Africa
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | — | Filter by country |
| document_type | string | — | Document type |
| end_year | integer | — | To year |
| limit | integer | — | Max results |
| q | string | — | Search by title or content |
| start_year | integer | — | From year |
| status | string | — | Policy status |
No output schema declared.
No examples provided.
list_policy_events ~76
List policy lifecycle events — when policies were announced, adopted, amended, repealed
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | — | Filter by country |
| end_year | integer | — | To year |
| event_type | string | — | Event type |
| limit | integer | — | Max results |
| start_year | integer | — | From 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
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | — | Filter by country |
| exchange_code | string | — | Filter by exchange (e.g. "NGX") |
| instrument_type | string | — | Filter by instrument type |
| limit | integer | — | Max results |
| q | string | — | Search 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
| Name | Type | Req | Description |
|---|---|---|---|
| category | string | — | Filter by indicator category |
| country_code | string | — | Single ISO alpha-2 code (e.g. "NG") |
| country_codes | string | — | Comma-separated codes (e.g. "NG,KE,ZA") |
| end_year | integer | — | End of year range |
| latest | boolean | — | Only return most recent observation per country+indicator |
| limit | integer | — | Max results |
| metric_key | string | — | Single indicator key (e.g. "gdp_current_usd") |
| metric_keys | string | — | Comma-separated indicator keys |
| source | string | — | Filter by source code |
| start_year | integer | — | Start of year range |
| year | integer | — | Exact 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
| Name | Type | Req | Description |
|---|---|---|---|
| country_code | string | — | Filter by country (ISO alpha-2) |
| current_only | boolean | — | Only current leaders |
| limit | integer | — | Max results |
| q | string | — | Search by name |
No output schema declared.
No examples provided.