# Africa Api MCP

> Africa Api MCP is an open-source MCP server. MCP server for Africa API — access data on all 54 African countries through Claude. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/africa-api/africa-api-mcp
- **MCP Registry name:** io.github.africa-api/africa-api-mcp
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add africa-api-mcp --env AFRICA_API_KEY='<AFRICA_API_KEY>' -- npx -y africa-api-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "africa-api-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "africa-api-mcp"
      ],
      "env": {
        "AFRICA_API_KEY": "<AFRICA_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "africa-api-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "africa-api-mcp"
      ],
      "env": {
        "AFRICA_API_KEY": "<AFRICA_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "africa-api-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "africa-api-mcp"
      ],
      "env": {
        "AFRICA_API_KEY": "<AFRICA_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "africa-api-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "africa-api-mcp"
      ],
      "env": {
        "AFRICA_API_KEY": "<AFRICA_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "africa-api-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "africa-api-mcp"
      ],
      "env": {
        "AFRICA_API_KEY": "<AFRICA_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Africa Api MCP free?

Yes. Africa Api MCP is open source, so you can use and self-host it for free.

### How do I add Africa Api MCP to Claude Code?

Run this command in your terminal: claude mcp add africa-api-mcp --env AFRICA_API_KEY='<AFRICA_API_KEY>' -- npx -y africa-api-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/africa-api-mcp
