Africa MCP Server

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

Local serverstdio

What is the Africa MCP server?

MCP server for Africa API — access data on all 54 African countries through Claude. The africa mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 8 defined tools rather than through you.

What it actually does

Sign up at africa-api.com and create an API key from your dashboard.

Its toolset

Everything the assistant can do here goes through one of these:

  • Domain — Tools
  • Countries — 4
  • Government — 6
  • Elections — 5
  • Markets — 8
  • Trade — 4
  • Policies — 6
  • Geographies — 1

Adding it to your client

africa-api-mcp on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Configuration

You will need 2 environment variables: AFRICA_API_KEY, AFRICA_API_BASE_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

When to reach for it

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Africa's toolset — Domain, Countries, Government and 5 more — is a fair guide to whether it matches your workflow. It is maintained by africa-api; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the africa mcp server does with a few real requests.

Available tools

ToolWhat it does
DomainTools
Countries4
Government6
Elections5
Markets8
Trade4
Policies6
Geographies1

How to install the Africa MCP server

{
  "mcpServers": {
    "africa-api": {
      "command": "npx",
      "args": ["-y", "africa-api-mcp"],
      "env": {
        "AFRICA_API_KEY": "your-value",
        "AFRICA_API_BASE_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
AFRICA_API_KEYCredential the server authenticates with.Yes
AFRICA_API_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Africa to Domain.
  • Use Africa to Countries.
  • Use Africa to Government.

Frequently asked questions

It connects Africa to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (Domain, Countries, Government, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Africa directly.