MCP.Market

Africa API MCP server

by africa-api·io.github.africa-api/africa-api-mcp·v0.1.1

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

B77/100grade B
What users say
No reviews yet
Be the first
Safety scan
B77/100

full report

Adoption
New

0 stars

Reviews

Write one

Nobody 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 posts

Read from the package source without running it. The installed server may list more.

  • get_cabinet

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

  • get_country

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

  • get_country_elections

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

  • get_country_policies

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

  • get_country_policy_timeline

    Get a chronological policy timeline for a country

  • get_country_profile

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

  • get_country_signals

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

  • get_election

    Get detailed information about a specific election

  • get_election_results

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

  • get_exchange

    Get details about a specific stock exchange

  • get_fx_rate_history

    Get historical FX rate data for a currency pair

  • get_fx_rates

    Get current FX rates for African currencies against a base currency

  • get_government_overview

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

  • get_indicator

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

  • get_indicator_rankings

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

  • get_leader

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

  • get_platform_info

    Get Africa API platform version and status

  • get_policy

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

  • get_policy_events

    Get all lifecycle events for a specific policy

  • get_source

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

  • get_ticker

    Get details about a specific listed security

  • get_ticker_history

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

  • get_trade_flows

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

  • get_trade_overview

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

  • get_trade_partners

    Get top trading partners for a country

  • get_trade_products

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

  • get_upcoming_elections

    Get upcoming elections across Africa sorted by date

  • list_cabinet_members

    Search cabinet members across African governments

  • list_countries

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

  • list_elections

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

  • list_exchanges

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

  • list_geographies

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

  • list_government_terms

    List leadership terms — who governed which country and when

  • list_indicators

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

  • list_policies

    Search government policies, laws, and regulations across Africa

  • list_policy_events

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

  • list_sources

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

  • list_tickers

    Search listed securities (equities) across African exchanges

  • query_data

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

  • search_leaders

    Search 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

no findings
  • 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
Overall 77/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

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
Add to Cursor

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-mcp

Claude 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.js

License

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.